org.jvnet.substance
Class SubstanceToggleButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.metal.MetalToggleButtonUI
org.jvnet.substance.SubstanceToggleButtonUI
public class SubstanceToggleButtonUI
- extends MetalToggleButtonUI
UI for toggle buttons in Substance look and feel.
- Author:
- Kirill Grouchnikov
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstanceToggleButtonUI
public SubstanceToggleButtonUI()
- Simple constructor.
createUI
public static ComponentUI createUI(JComponent b)
installDefaults
public void installDefaults(AbstractButton b)
- Overrides:
installDefaults
in class MetalToggleButtonUI
createButtonListener
protected BasicButtonListener createButtonListener(AbstractButton b)
- Overrides:
createButtonListener
in class BasicButtonUI
update
public void update(Graphics g,
JComponent c)
- Overrides:
update
in class MetalToggleButtonUI
paintFocus
protected void paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
- Overrides:
paintFocus
in class MetalToggleButtonUI
paintButtonPressed
protected void paintButtonPressed(Graphics g,
AbstractButton b)
- Overrides:
paintButtonPressed
in class MetalToggleButtonUI
paintText
protected void paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
- Overrides:
paintText
in class MetalToggleButtonUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class BasicButtonUI