Class 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.SynthButtonUI
    Overrides the 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      protected void paint​(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
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IgnitionSynthButtonUI

        public IgnitionSynthButtonUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • paint

        protected void paint​(javax.swing.plaf.synth.SynthContext context,
                             java.awt.Graphics g)
        Overrides:
        paint in class javax.swing.plaf.synth.SynthButtonUI