public class PlasticButtonUI extends MetalButtonUI
ButtonUI
.
It differs from the superclass MetalButtonUI
in that
it can add a pseudo 3D effect and that the border can paint the focus.disabledTextColor, focusColor, selectColor
defaultTextIconGap, defaultTextShiftOffset
Constructor and Description |
---|
PlasticButtonUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent b) |
void |
installDefaults(AbstractButton b)
Installs defaults.
|
protected boolean |
is3D(AbstractButton b)
Checks and answers if this button shall use a pseudo 3D effect.
|
protected boolean |
isToolBarButton(AbstractButton b)
Checks and answers if this is button is in a tool bar.
|
protected void |
paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
Paints the focus with close to the button's border.
|
void |
update(Graphics g,
JComponent c) |
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintButtonPressed, paintText, uninstallDefaults
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount
public static ComponentUI createUI(JComponent b)
public void installDefaults(AbstractButton b)
installDefaults
in class MetalButtonUI
public void update(Graphics g, JComponent c)
update
in class MetalButtonUI
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus
in class MetalButtonUI
protected boolean isToolBarButton(AbstractButton b)
b
- the button to checkprotected boolean is3D(AbstractButton b)
b
- the button to checkCopyright © 2016 JGoodies Software GmbH. All rights reserved.