Class SynthCheckboxPainter

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

    public class SynthCheckboxPainter
    extends de.javasoft.plaf.synthetica.painter.CheckBoxPainter
    A Synthetica CheckBoxPainter so we can set the Synthetica.background client prop before painting the selector. This is necessary since ImagePainter always looks at this client prop, otherwise it just uses the background value which matches the checkbox 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.CheckBoxPainter

        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 paintCheckBoxBackground​(javax.swing.plaf.synth.SynthContext sc, java.awt.Graphics g, int x, int y, int w, int h)  
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.CheckBoxPainter

        getInstance, getInstance, paintCheckBoxBorder, reinitialize
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.SyntheticaComponentPainter

        calcRelativeArc, calcRelativeGradientPos, calcRelativeLength, calcRelativePos, createAlphaColor, createLinearGradientPaint, createStroke, getCacheHash, getCacheScaleInsets, getCacheScaleType, getImageInsets, getImageInsets, getInstance, getPainterClassName, getScale, 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

      • SynthCheckboxPainter

        public SynthCheckboxPainter()
    • Method Detail

      • paintCheckBoxBackground

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