Class BasePainter
java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
- All Implemented Interfaces:
Observer
- Direct Known Subclasses:
ErrorPainter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Colorprotected Colorprotected booleanprotected final BasicComponentSplashScreenprotected TextWithWaterLevelprotected static final Colorprotected Colorprotected static final Colorprotected Colorprotected BufferedImageprotected booleanprotected static final Colorprotected static final Colorprotected Colorprotected Colorprotected TextWithWaterLevelstatic final Colorprotected Color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidadjustForSize(int width, int height) voidprotected FontMetricsdrawBase(Graphics2D g2d, InformationElement ic, String version) protected voiddrawTextAroundCenter(Graphics2D g2d, double heightOffset, String msg) protected voidintstatic doublegetRatio(double origSize, double currentSize) intvoidvoidprotected voidpaintNiceTexts(Graphics2D g2d) protected voidprotected voidpaintStillTo(Graphics2D g2d, InformationElement ic, String version) protected BufferedImagestatic doublescale(double origSize, double currentSize, double origValue) voidsetWaterLevel(int level) final voidvoidupdate(Observable o, Object arg)
-
Field Details
-
master
-
TEA_LIVE_COLOR
-
BACKGROUND_LIVE_COLOR
-
TEA_LEAFS_STALKS_LIVE_COLOR
-
PLUGIN_LIVE_COLOR
-
WATER_LIVE_COLOR
-
PLAIN_TEXT_LIVE_COLOR
-
teaColor
-
backgroundColor
-
teaLeafsStalksColor
-
pluginColor
-
waterColor
-
plainTextColor
-
prerenderedStuff
-
showNiceTexts
protected boolean showNiceTexts -
twl
-
oldTwl
-
canWave
protected boolean canWave
-
-
Constructor Details
-
BasePainter
-
BasePainter
-
-
Method Details
-
paintNiceTexts
-
paintPlainTexts
-
scale
public static double scale(double origSize, double currentSize, double origValue) -
getRatio
public static double getRatio(double origSize, double currentSize) -
increaseAnimationPosition
public void increaseAnimationPosition() -
ensurePrerenderedStuff
protected void ensurePrerenderedStuff() -
paint
-
adjustForSize
public final void adjustForSize(int width, int height) -
startAnimationThreads
public final void startAnimationThreads() -
prerenderStill
-
paintStillTo
-
drawTextAroundCenter
-
drawBase
-
getWaterLevel
public int getWaterLevel() -
setWaterLevel
public void setWaterLevel(int level) -
getAnimationsPosition
public int getAnimationsPosition() -
clearCachedWaterTextImage
public void clearCachedWaterTextImage() -
update
-
getAboutOffset
-
getWaterColor
-
getBackgroundColor
-