Class SynthProgressBarPainter

  • All Implemented Interfaces:
    de.javasoft.plaf.synthetica.painter.Cacheable

    public class SynthProgressBarPainter
    extends de.javasoft.plaf.synthetica.painter.ProgressBarPainter
    A Synthetica ProgressBarPainter so we can set the Synthetica.background client prop before painting the progress bar foreground. This is necessary since ImagePainter always looks at this client prop, otherwise it just uses the background value which matches the progress bar background.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface de.javasoft.plaf.synthetica.painter.Cacheable

        de.javasoft.plaf.synthetica.painter.Cacheable.ScaleType
    • Field Summary

      • Fields inherited from class de.javasoft.plaf.synthetica.painter.ProgressBarPainter

        UI_KEY
      • Fields inherited from class de.javasoft.plaf.synthetica.painter.SyntheticaComponentPainter

        instances
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paintProgressBarForeground​(javax.swing.plaf.synth.SynthContext sc, java.awt.Graphics g, int x, int y, int w, int h, int orient)  
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.ProgressBarPainter

        getCacheHash, getInstance, getInstance, isBorderPainted, paintProgressBarBackground, paintProgressBarBackground, paintProgressBarBorder
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.SyntheticaComponentPainter

        blend, calcRelativeArc, calcRelativeGradientPos, calcRelativeLength, calcRelativePos, createAlphaColor, createLinearGradientPaint, createStroke, getCacheScaleInsets, getCacheScaleType, getImageInsets, getImageInsets, getInstance, getPainterClassName, getScale, getSyntheticaBackgroundBlendMode, getSyntheticaBackgroundColor, prepareGraphics2D, prepareGraphics2D, prepareGraphics2D, prepareGraphics2D, prepareGraphics2D, resolveImagePath, restoreGraphics2D, scaleArc, subtractStroke
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SynthProgressBarPainter

        public SynthProgressBarPainter()
    • Method Detail

      • paintProgressBarForeground

        public void paintProgressBarForeground​(javax.swing.plaf.synth.SynthContext sc,
                                               java.awt.Graphics g,
                                               int x,
                                               int y,
                                               int w,
                                               int h,
                                               int orient)
        Overrides:
        paintProgressBarForeground in class de.javasoft.plaf.synthetica.painter.ProgressBarPainter