Class BasePainter

java.lang.Object
net.adoptopenjdk.icedteaweb.client.parts.splashscreen.impls.defaultsplashscreen2012.BasePainter
All Implemented Interfaces:
Observer
Direct Known Subclasses:
ErrorPainter

public class BasePainter extends Object implements Observer
  • Field Details

    • LOG

      private static final Logger LOG
    • master

      protected final BasicComponentSplashScreen master
    • waterLevel

      private int waterLevel
    • animationsPosition

      private int animationsPosition
    • greyTextIncrement

      private final int greyTextIncrement
      See Also:
    • TEA_LIVE_COLOR

      protected static final Color TEA_LIVE_COLOR
    • BACKGROUND_LIVE_COLOR

      protected static final Color BACKGROUND_LIVE_COLOR
    • TEA_LEAFS_STALKS_LIVE_COLOR

      protected static final Color TEA_LEAFS_STALKS_LIVE_COLOR
    • PLUGIN_LIVE_COLOR

      protected static final Color PLUGIN_LIVE_COLOR
    • WATER_LIVE_COLOR

      public static final Color WATER_LIVE_COLOR
    • PLAIN_TEXT_LIVE_COLOR

      protected static final Color PLAIN_TEXT_LIVE_COLOR
    • teaColor

      protected Color teaColor
    • backgroundColor

      protected Color backgroundColor
    • teaLeafsStalksColor

      protected Color teaLeafsStalksColor
    • pluginColor

      protected Color pluginColor
    • waterColor

      protected Color waterColor
    • plainTextColor

      protected Color plainTextColor
    • prerenderedStuff

      protected BufferedImage prerenderedStuff
    • teaFont

      private Font teaFont
    • icedFont

      private Font icedFont
    • webFont

      private Font webFont
    • pluginFont

      private Font pluginFont
    • plainTextsFont

      private Font plainTextsFont
    • alternativeTextFont

      private Font alternativeTextFont
    • alternativeICED

      private static final String alternativeICED
      See Also:
    • alternativeWeb

      private static final String alternativeWeb
      See Also:
    • alternativeTtea

      private static final String alternativeTtea
      See Also:
    • ICED

      private static final String ICED
      See Also:
    • web

      private static final String web
      See Also:
    • tea

      private static final String tea
      See Also:
    • WEB_TOP_ALIGMENT

      private final int WEB_TOP_ALIGMENT
      Experimentally measured best top position for painted parts of vectors
      See Also:
    • WEB_LEFT_ALIGMENT

      private final int WEB_LEFT_ALIGMENT
      Experimentally measured best left position for painted parts of vectors
      See Also:
    • showNiceTexts

      protected boolean showNiceTexts
    • showLeaf

      private boolean showLeaf
    • showInfo

      private boolean showInfo
    • twl

      protected TextWithWaterLevel twl
    • oldTwl

      protected TextWithWaterLevel oldTwl
    • canWave

      protected boolean canWave
    • aboutOffset

      private Point aboutOffset
    • dash1

      private static final float[] dash1
    • dashed

      private static final BasicStroke dashed
  • Constructor Details

  • Method Details

    • paintNiceTexts

      protected void paintNiceTexts(Graphics2D g2d)
    • paintPlainTexts

      protected void paintPlainTexts(Graphics2D g2d)
    • 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

      public void paint(Graphics g)
    • adjustForSize

      public final void adjustForSize(int width, int height)
    • setEnablings

      private void setEnablings(int w, int h, String version, InformationElement ic, Graphics2D g2d)
    • startAnimationThreads

      public final void startAnimationThreads()
    • prepareFonts

      private void prepareFonts(int w, int h)
    • setColors

      private void setColors()
    • prerenderStill

      protected BufferedImage prerenderStill()
    • paintStillTo

      protected void paintStillTo(Graphics2D g2d, InformationElement ic, String version)
    • drawTextAroundCenter

      protected void drawTextAroundCenter(Graphics2D g2d, double heightOffset, String msg)
    • getMovingTextThread

      private Thread getMovingTextThread()
    • stripCommitFromVersion

      static String stripCommitFromVersion(String version)
    • getWaterLevelThread

      private Thread getWaterLevelThread()
    • drawBase

      protected FontMetrics drawBase(Graphics2D g2d, InformationElement ic, String version)
    • getWaterLevel

      public int getWaterLevel()
    • setWaterLevel

      public void setWaterLevel(int level)
    • getAnimationsPosition

      public int getAnimationsPosition()
    • clearCachedWaterTextImage

      public void clearCachedWaterTextImage()
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer
    • getAboutOffset

      public Point getAboutOffset()
    • getWaterColor

      public Color getWaterColor()
    • getBackgroundColor

      public Color getBackgroundColor()