public class CustomButtonUI extends BasicButtonUI implements PlafConstants
Usage:
JButton b = new JButton(); b.setUI((ButtonUI) CustomButtonUI.createUI(b)); b.setBorder(new BackdropBorder(....));
defaultTextIconGap, defaultTextShiftOffsetALL, CENTER, EAST, NONE, PROP_BEVEL, WEST| Constructor and Description |
|---|
CustomButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
protected BasicButtonListener |
createButtonListener(AbstractButton b) |
static ComponentUI |
createUI(JComponent c) |
void |
installDefaults(AbstractButton b) |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintButtonPressed(Graphics g,
AbstractButton b) |
protected void |
paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect) |
protected void |
paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text) |
void |
uninstallDefaults(AbstractButton b) |
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults in class BasicButtonUIpublic void uninstallDefaults(AbstractButton b)
uninstallDefaults in class BasicButtonUIprotected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener in class BasicButtonUIpublic void paint(Graphics g, JComponent c)
paint in class BasicButtonUIprotected void paintButtonPressed(Graphics g, AbstractButton b)
paintButtonPressed in class BasicButtonUIprotected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus in class BasicButtonUIprotected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
paintText in class BasicButtonUICopyright © 2014. All Rights Reserved.