Package com.jtattoo.plaf
Class BaseButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
com.jtattoo.plaf.BaseButtonUI
- Direct Known Subclasses:
AcrylButtonUI
,AluminiumButtonUI
,BernsteinButtonUI
,FastButtonUI
,GraphiteButtonUI
,HiFiButtonUI
,LunaButtonUI
,McWinButtonUI
,MintButtonUI
,SmartButtonUI
,TextureButtonUI
BaseButtonUI class.
Author Michael Hagen-
Field Summary
Modifier and TypeFieldDescriptionprotected static Color[]
Constant defaultColorsprotected static final Rectangle
Constant iconRectprotected static final Rectangle
Constant textRectprotected static final Rectangle
Constant viewRectFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListener
static ComponentUI
void
protected 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) protected void
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installListeners, installUI, paintButtonPressed, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
viewRect
Constant viewRect -
textRect
Constant textRect -
iconRect
Constant iconRect -
defaultColors
Constant defaultColors
-
-
Constructor Details
-
BaseButtonUI
public BaseButtonUI()
-
-
Method Details
-
createUI
-
createButtonListener
- Overrides:
createButtonListener
in classBasicButtonUI
-
installDefaults
- Overrides:
installDefaults
in classBasicButtonUI
-
installKeyboardActions
- Overrides:
installKeyboardActions
in classBasicButtonUI
-
paint
- Overrides:
paint
in classBasicButtonUI
-
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
-