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
  • 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
    • getErrorCorner

      public Point getErrorCorner()
    • paintStillTo

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