Package com.jtattoo.plaf.base
Class BaseButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
com.jtattoo.plaf.base.BaseButtonUI
- Direct Known Subclasses:
AcrylButtonUI,AluminiumButtonUI,BernsteinButtonUI,FastButtonUI,GraphiteButtonUI,HiFiButtonUI,LunaButtonUI,McWinButtonUI,MintButtonUI,SmartButtonUI,TextureButtonUI
BaseButtonUI class.
Author Michael Hagen-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Color[]Constant defaultColorsprotected static final RectangleConstant iconRectprotected static final RectangleConstant textRectprotected static final RectangleConstant viewRectFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListenerstatic ComponentUIvoidprotected voidvoidpaint(Graphics g, JComponent c) protected voidpaintBackground.protected voidpaintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) protected voidpaintText(Graphics g, AbstractButton b, Rectangle textRect, String text) protected voidMethods 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, uninstallUIMethods 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:
createButtonListenerin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classBasicButtonUI
-
installKeyboardActions
- Overrides:
installKeyboardActionsin classBasicButtonUI
-
paint
- Overrides:
paintin classBasicButtonUI
-
paintBackground
paintBackground.
- Parameters:
g- aGraphicsobject.b- aAbstractButtonobject.
-
paintFocus
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Overrides:
paintFocusin classBasicButtonUI
-
paintText
- Overrides:
paintTextin classBasicButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classBasicButtonUI
-