Class SynthToggleButtonPainter

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

    public class SynthToggleButtonPainter
    extends de.javasoft.plaf.synthetica.painter.ToggleButtonPainter
    A Synthetica ToggleButtonPainter so we can set the Synthetica.background client prop before painting the background if the user has applied a background color with no alpha. It also account for the buttons SyntheticaState
    • 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.ToggleButtonPainter

        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 paintToggleButtonBackground​(javax.swing.JComponent c, de.javasoft.plaf.synthetica.SyntheticaState state, java.lang.String segmentPosition, java.awt.Graphics g, int x, int y, int w, int h)  
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.ToggleButtonPainter

        getCacheHash, getInstance, getInstance, paintCheck, paintFocus, paintToggleButtonBackground, paintToggleButtonBorder
      • Methods inherited from class de.javasoft.plaf.synthetica.painter.SyntheticaComponentPainter

        calcRelativeArc, calcRelativeGradientPos, calcRelativeLength, calcRelativePos, createAlphaColor, createLinearGradientPaint, createStroke, 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

      • SynthToggleButtonPainter

        public SynthToggleButtonPainter()
    • Method Detail

      • paintToggleButtonBackground

        public void paintToggleButtonBackground​(javax.swing.JComponent c,
                                                de.javasoft.plaf.synthetica.SyntheticaState state,
                                                java.lang.String segmentPosition,
                                                java.awt.Graphics g,
                                                int x,
                                                int y,
                                                int w,
                                                int h)
        Overrides:
        paintToggleButtonBackground in class de.javasoft.plaf.synthetica.painter.ToggleButtonPainter