public class BaseButtonUI extends BasicButtonUI
| Modifier and Type | Field and Description |
|---|---|
protected static Color[] |
defaultColors |
protected static Rectangle |
iconRect |
protected static Rectangle |
textRect |
protected static Rectangle |
viewRect |
defaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
BaseButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
protected BasicButtonListener |
createButtonListener(AbstractButton b) |
static ComponentUI |
createUI(JComponent c) |
void |
installDefaults(AbstractButton b) |
protected void |
installKeyboardActions(AbstractButton b) |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintBackground(Graphics g,
AbstractButton b) |
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 |
uninstallDefaults(AbstractButton b) |
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installListeners, installUI, paintButtonPressed, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected static Rectangle viewRect
protected static Rectangle textRect
protected static Rectangle iconRect
protected static Color[] defaultColors
public static ComponentUI createUI(JComponent c)
protected void installKeyboardActions(AbstractButton b)
installKeyboardActions in class BasicButtonUIpublic void installDefaults(AbstractButton b)
installDefaults in class BasicButtonUIprotected void uninstallDefaults(AbstractButton b)
uninstallDefaults in class BasicButtonUIprotected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener in class BasicButtonUIprotected void paintBackground(Graphics g, AbstractButton b)
protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
paintText in class BasicButtonUIprotected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus in class BasicButtonUIpublic void paint(Graphics g, JComponent c)
paint in class BasicButtonUICopyright © 2014. All Rights Reserved.