Class BasePainter
java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
- All Implemented Interfaces:
Observer
- Direct Known Subclasses:
ErrorPainter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Pointprivate static final Stringprivate Fontprivate static final Stringprivate static final Stringprivate intprotected static final Colorprotected Colorprotected booleanprivate static final float[]private static final BasicStrokeprivate final intprivate static final Stringprivate Fontprivate static final Loggerprotected final BasicComponentSplashScreenprotected TextWithWaterLevelprotected static final Colorprotected Colorprivate Fontprotected static final Colorprotected Colorprivate Fontprotected BufferedImageprivate booleanprivate booleanprotected booleanprivate static final Stringprotected static final Colorprotected static final Colorprotected Colorprivate Fontprotected Colorprotected TextWithWaterLevelstatic final Colorprotected Colorprivate intprivate static final Stringprivate final intExperimentally measured best left position for painted parts of vectorsprivate final intExperimentally measured best top position for painted parts of vectorsprivate Font -
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 voidintprivate Threadstatic doublegetRatio(double origSize, double currentSize) private doubleprivate doubleintprivate Threadvoidprivate doubleminRatio()voidprotected voidpaintNiceTexts(Graphics2D g2d) protected voidprotected voidpaintStillTo(Graphics2D g2d, InformationElement ic, String version) private voidprepareFonts(int w, int h) protected BufferedImagestatic doublescale(double origSize, double currentSize, double origValue) private intscaleMin(double origValue) private intscaleX(double origValue) private static doublescaleX(double currentSize, double origValue) private intscaleY(double origValue) private static doublescaleY(double currentSize, double origValue) private voidprivate voidsetEnablings(int w, int h, String version, InformationElement ic, Graphics2D g2d) voidsetWaterLevel(int level) final void(package private) static StringstripCommitFromVersion(String version) voidupdate(Observable o, Object arg)
-
Field Details
-
LOG
-
master
-
waterLevel
private int waterLevel -
animationsPosition
private int animationsPosition -
greyTextIncrement
private final int greyTextIncrement- See Also:
-
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
-
teaFont
-
icedFont
-
webFont
-
pluginFont
-
plainTextsFont
-
alternativeTextFont
-
alternativeICED
- See Also:
-
alternativeWeb
- See Also:
-
alternativeTtea
- See Also:
-
ICED
- See Also:
-
web
- See Also:
-
tea
- See Also:
-
WEB_TOP_ALIGMENT
private final int WEB_TOP_ALIGMENTExperimentally measured best top position for painted parts of vectors- See Also:
-
WEB_LEFT_ALIGMENT
private final int WEB_LEFT_ALIGMENTExperimentally measured best left position for painted parts of vectors- See Also:
-
showNiceTexts
protected boolean showNiceTexts -
showLeaf
private boolean showLeaf -
showInfo
private boolean showInfo -
twl
-
oldTwl
-
canWave
protected boolean canWave -
aboutOffset
-
dash1
private static final float[] dash1 -
dashed
-
-
Constructor Details
-
BasePainter
-
BasePainter
-
-
Method Details
-
paintNiceTexts
-
paintPlainTexts
-
scaleMin
private int scaleMin(double origValue) -
minRatio
private double minRatio() -
scaleY
private int scaleY(double origValue) -
scaleX
private int scaleX(double origValue) -
getRatioY
private double getRatioY() -
getRatioX
private double getRatioX() -
scaleY
private static double scaleY(double currentSize, double origValue) -
scaleX
private static double scaleX(double currentSize, double origValue) -
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) -
setEnablings
-
startAnimationThreads
public final void startAnimationThreads() -
prepareFonts
private void prepareFonts(int w, int h) -
setColors
private void setColors() -
prerenderStill
-
paintStillTo
-
drawTextAroundCenter
-
getMovingTextThread
-
stripCommitFromVersion
-
getWaterLevelThread
-
drawBase
-
getWaterLevel
public int getWaterLevel() -
setWaterLevel
public void setWaterLevel(int level) -
getAnimationsPosition
public int getAnimationsPosition() -
clearCachedWaterTextImage
public void clearCachedWaterTextImage() -
update
-
getAboutOffset
-
getWaterColor
-
getBackgroundColor
-