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

    • master

      protected final BasicComponentSplashScreen master
    • 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
    • showNiceTexts

      protected boolean showNiceTexts
    • twl

      protected TextWithWaterLevel twl
    • oldTwl

      protected TextWithWaterLevel oldTwl
    • canWave

      protected boolean canWave
  • Constructor Details

  • Method Details

    • paintNiceTexts

      protected void paintNiceTexts(Graphics2D g2d)
    • paintPlainTexts

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

      public final void startAnimationThreads()
    • prerenderStill

      protected BufferedImage prerenderStill()
    • paintStillTo

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

      protected void drawTextAroundCenter(Graphics2D g2d, double heightOffset, String msg)
    • 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()