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 SyntheticaToggleButtonPainter
so we can set theSynthetica.background
client prop before painting the background if the user has applied a background color with no alpha. It also account for the buttonsSyntheticaState
-
-
Constructor Summary
Constructors Constructor Description SynthToggleButtonPainter()
-
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
-
-
-
-
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 classde.javasoft.plaf.synthetica.painter.ToggleButtonPainter
-
-