public class PlasticButtonUI
extends javax.swing.plaf.metal.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.| Constructor and Description |
|---|
PlasticButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
void |
installDefaults(javax.swing.AbstractButton b)
Installs defaults.
|
protected boolean |
is3D(javax.swing.AbstractButton b)
Checks and answers if this button shall use a pseudo 3D effect.
|
protected boolean |
isToolBarButton(javax.swing.AbstractButton b)
Checks and answers if this is button is in a tool bar.
|
protected void |
paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
Paints the focus with close to the button's border.
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintButtonPressed, paintText, uninstallDefaultsclearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
public void installDefaults(javax.swing.AbstractButton b)
installDefaults in class javax.swing.plaf.metal.MetalButtonUIpublic void update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class javax.swing.plaf.metal.MetalButtonUIprotected void paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
paintFocus in class javax.swing.plaf.metal.MetalButtonUIprotected boolean isToolBarButton(javax.swing.AbstractButton b)
b - the button to checkprotected boolean is3D(javax.swing.AbstractButton b)
b - the button to checkCopyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.