Class IgnitionSynthButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.synth.SynthButtonUI
-
- com.inductiveautomation.ignition.client.util.gui.ui.IgnitionSynthButtonUI
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener,javax.swing.plaf.synth.SynthConstants,javax.swing.plaf.synth.SynthUI
public class IgnitionSynthButtonUI extends javax.swing.plaf.synth.SynthButtonUIOverrides theSynthButtonUIand performs some additional checks on the component state to ensure that the correct foreground color is set on theGraphicsobject before painting the buttons text. Both theSynthConstants.DEFAULTandSynthConstants.DISABLEDstates are used to determine the expected default color.
Any future changes to this class should be handled with care as this is applied in the UIManager and will affect all buttons who use the default ButtonUI.
-
-
Constructor Summary
Constructors Constructor Description IgnitionSynthButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected voidpaint(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g)-
Methods inherited from class javax.swing.plaf.synth.SynthButtonUI
getBaseline, getContext, getDefaultIcon, getIcon, getMaximumSize, getMinimumSize, getPreferredSize, getSizingIcon, installDefaults, installListeners, paint, paintBorder, propertyChange, uninstallDefaults, uninstallListeners, update
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaselineResizeBehavior, getDefaultTextIconGap, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
-
-