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:
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
Overrides the
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.
SynthButtonUI
and performs some additional checks on the component state to ensure that the
correct foreground color is set on the Graphics
object before painting the buttons text. Both the
SynthConstants.DEFAULT
and SynthConstants.DISABLED
states 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.
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
Fields inherited from interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
protected void
paint
(SynthContext context, 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
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Constructor Details
-
IgnitionSynthButtonUI
public IgnitionSynthButtonUI()
-
-
Method Details
-
createUI
-
paint
- Overrides:
paint
in classSynthButtonUI
-