Package com.jtattoo.plaf
Class BaseToggleButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
com.jtattoo.plaf.BaseToggleButtonUI
- Direct Known Subclasses:
AluminiumToggleButtonUI
,FastToggleButtonUI
,HiFiToggleButtonUI
,McWinToggleButtonUI
,MintToggleButtonUI
,SmartToggleButtonUI
,TextureToggleButtonUI
BaseToggleButtonUI class.
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListener
static ComponentUI
void
void
paint
(Graphics g, JComponent c) protected void
paintBackground.protected void
paintFocus
(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) protected void
paintText
(Graphics g, AbstractButton b, Rectangle textRect, String text) void
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getPropertyPrefix, getTextShiftOffset, paintIcon
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
BaseToggleButtonUI
public BaseToggleButtonUI()
-
-
Method Details
-
createUI
-
createButtonListener
- Overrides:
createButtonListener
in classBasicButtonUI
-
installDefaults
- Overrides:
installDefaults
in classBasicButtonUI
-
paint
- Overrides:
paint
in classBasicToggleButtonUI
-
paintBackground
paintBackground.
- Parameters:
g
- aGraphics
object.b
- aAbstractButton
object.
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Overrides:
paintFocus
in classBasicButtonUI
-
paintText
- Overrides:
paintText
in classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classBasicButtonUI
-