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
-
Field Summary
Fields inherited from class net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
BACKGROUND_LIVE_COLOR, backgroundColor, canWave, master, oldTwl, PLAIN_TEXT_LIVE_COLOR, plainTextColor, PLUGIN_LIVE_COLOR, pluginColor, prerenderedStuff, showNiceTexts, TEA_LEAFS_STALKS_LIVE_COLOR, TEA_LIVE_COLOR, teaColor, teaLeafsStalksColor, twl, WATER_LIVE_COLOR, waterColor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleinterpol(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 ratiostatic ColorinterpolateColor(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,avoidprotected voidpaintStillTo(Graphics2D g2d, InformationElement ic, String version) voidMethods inherited from class net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
adjustForSize, clearCachedWaterTextImage, drawBase, drawTextAroundCenter, ensurePrerenderedStuff, getAboutOffset, getAnimationsPosition, getBackgroundColor, getRatio, getWaterColor, getWaterLevel, increaseAnimationPosition, paintNiceTexts, paintPlainTexts, prerenderStill, scale, setWaterLevel, startAnimationThreads, update
-
Constructor Details
-
ErrorPainter
-
ErrorPainter
-
-
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
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
- Overrides:
paintin classBasePainter
-
getErrorCorner
-
paintStillTo
- Overrides:
paintStillToin classBasePainter
-