Class ErrorPainter

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.ErrorPainter
All Implemented Interfaces:
Observer

public final class ErrorPainter extends BasePainter
  • Field Details

    • LOG

      private static final Logger LOG
    • TEA_DEAD_COLOR

      private static final Color TEA_DEAD_COLOR
    • BACKGROUND_DEAD_COLOR

      private static final Color BACKGROUND_DEAD_COLOR
    • TEA_LEAFS_STALKS_DEAD_COLOR

      private static final Color TEA_LEAFS_STALKS_DEAD_COLOR
    • PLUGIN_DEAD_COLOR

      private static final Color PLUGIN_DEAD_COLOR
    • WATER_DEAD_COLOR

      private static final Color WATER_DEAD_COLOR
    • PLAIN_TEXT_DEAD_COLOR

      private static final Color PLAIN_TEXT_DEAD_COLOR
    • ERROR_MESSAGE_KEY

      private static final String ERROR_MESSAGE_KEY
      See Also:
    • ERROR_FLY_MESSAGE_KEY

      private static final String ERROR_FLY_MESSAGE_KEY
      See Also:
    • ERROR_FLY_COLOR

      private static final Color ERROR_FLY_COLOR
    • errorCorner

      private Point errorCorner
    • errorIsFlying

      private boolean errorIsFlying
    • errorFlyPercentage

      private int errorFlyPercentage
  • Constructor Details

  • Method Details

    • interpol

      public static double interpol(double origSize, double currentSize, double from, double to)
      Interpolation is root ratio is r= (currentSize / origSize) then value to-from is interpolated from to to from according to ratio
      Parameters:
      origSize -
      currentSize -
      from -
      to -
      Returns:
      interpolated value
    • interpolateColor

      public static Color interpolateColor(double origSize, double currentSize, Color from, Color to)
      is interpolating one color to another based on ration current/orig Each (r,g,b,a) part of color is interpolated separately returned is new color composed form new r,g,b,a
      Parameters:
      origSize -
      currentSize -
      from -
      to -
      Returns:
      interpolated Color
    • startErrorScream

      public void startErrorScream()
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class BasePainter
    • drawBigError

      private void drawBigError(Graphics2D g2d)
    • getErrorCorner

      public Point getErrorCorner()
    • setColors

      private void setColors()
    • interpolateColor

      private void interpolateColor(int origSize, int currentSize)
    • paintStillTo

      protected void paintStillTo(Graphics2D g2d, InformationElement ic, String version)
      Overrides:
      paintStillTo in class BasePainter
    • getErrorMessage

      private String getErrorMessage()
    • geFlyingErrorMessage

      private String geFlyingErrorMessage()
    • getFlyingRedErrorTextThread

      private Thread getFlyingRedErrorTextThread()
    • drawError

      private void drawError(Graphics2D g2d, InformationElement ic, String version, FontMetrics fm)