Class SynthToggleButtonPainter

java.lang.Object
de.javasoft.plaf.synthetica.painter.SyntheticaComponentPainter
de.javasoft.plaf.synthetica.painter.ToggleButtonPainter
com.inductiveautomation.ignition.client.util.gui.painters.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paintToggleButtonBackground(JComponent c, de.javasoft.plaf.synthetica.SyntheticaState state, String segmentPosition, Graphics g, int x, int y, int w, int h)
     

    Methods inherited from class de.javasoft.plaf.synthetica.painter.ToggleButtonPainter

    drawButton, getCacheHash, getInstance, getInstance, paintCheck, paintCheckContentBorder, paintFocus, paintToggleButtonBackground, paintToggleButtonBorder

    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 Details

    • SynthToggleButtonPainter

      public SynthToggleButtonPainter()
  • Method Details

    • paintToggleButtonBackground

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