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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Colorprivate static final Colorprivate static final Stringprivate static final Stringprivate Pointprivate intprivate booleanprivate static final Loggerprivate static final Colorprivate static final Colorprivate static final Colorprivate static final Colorprivate static final ColorFields inherited from class 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 TypeMethodDescriptionprivate voiddrawBigError(Graphics2D g2d) private voiddrawError(Graphics2D g2d, InformationElement ic, String version, FontMetrics fm) private Stringprivate Stringprivate Threadstatic 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,aprivate voidinterpolateColor(int origSize, int currentSize) voidprotected voidpaintStillTo(Graphics2D g2d, InformationElement ic, String version) private voidvoidMethods inherited from class BasePainter
adjustForSize, clearCachedWaterTextImage, drawBase, drawTextAroundCenter, ensurePrerenderedStuff, getAboutOffset, getAnimationsPosition, getBackgroundColor, getRatio, getWaterColor, getWaterLevel, increaseAnimationPosition, paintNiceTexts, paintPlainTexts, prerenderStill, scale, setWaterLevel, startAnimationThreads, stripCommitFromVersion, update
-
Field Details
-
LOG
-
TEA_DEAD_COLOR
-
BACKGROUND_DEAD_COLOR
-
TEA_LEAFS_STALKS_DEAD_COLOR
-
PLUGIN_DEAD_COLOR
-
WATER_DEAD_COLOR
-
PLAIN_TEXT_DEAD_COLOR
-
ERROR_MESSAGE_KEY
- See Also:
-
ERROR_FLY_MESSAGE_KEY
- See Also:
-
ERROR_FLY_COLOR
-
errorCorner
-
errorIsFlying
private boolean errorIsFlying -
errorFlyPercentage
private int errorFlyPercentage
-
-
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
-
drawBigError
-
getErrorCorner
-
setColors
private void setColors() -
interpolateColor
private void interpolateColor(int origSize, int currentSize) -
paintStillTo
- Overrides:
paintStillToin classBasePainter
-
getErrorMessage
-
geFlyingErrorMessage
-
getFlyingRedErrorTextThread
-
drawError
-