public class IconicButtonUI
extends oracle.bali.ewt.olaf2.OracleButtonUI
install(AbstractButton).
JButton b = new JButton(); IconicButtonUI.install( b );Although this class is not final, extension writers should not subclass this class..
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_PROPERTY_TINY
The action property ACTION_PROPERTY_TINY can be set to true on any
button which should have minimal top and bottom padding.
|
static java.lang.String |
CLIENT_PROPERTY_ACTIVE
The CLIENT_PROPERTY_ACTIVE client property can be set on any button
instance that should change the cursor as the mouse moves over it.
|
static java.lang.String |
CLIENT_PROPERTY_NO_BACKGROUND
Client property key that will ensure that no background will be painted in any state.
|
| Constructor and Description |
|---|
IconicButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
install(javax.swing.AbstractButton button)
Make the specified button iconic.
|
void |
installDefaults(javax.swing.AbstractButton b) |
void |
installListeners(javax.swing.AbstractButton b) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintButtonPressed(java.awt.Graphics g,
javax.swing.AbstractButton b) |
protected void |
paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect) |
protected void |
paintThemeBackground(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
uninstallListeners(javax.swing.AbstractButton b) |
static void |
updateCursor(javax.swing.AbstractButton b)
Updates the cursor for a button, setting it to the hand cursor if the
button is enabled and the "iconicButtonUIActive" client property is
true.
|
is3D, isToolBarButton, updategetDisabledTextColor, getFocusColor, getSelectColor, paintText, uninstallDefaultsclearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIpublic static final java.lang.String CLIENT_PROPERTY_ACTIVE
public static final java.lang.String CLIENT_PROPERTY_NO_BACKGROUND
public static final java.lang.String ACTION_PROPERTY_TINY
public static void install(javax.swing.AbstractButton button)
button - public void installDefaults(javax.swing.AbstractButton b)
installDefaults in class com.jgoodies.looks.plastic.PlasticButtonUIpublic static void updateCursor(javax.swing.AbstractButton b)
b - a button to update the cursor of. Must not be null.public void installListeners(javax.swing.AbstractButton b)
installListeners in class javax.swing.plaf.basic.BasicButtonUIpublic void uninstallListeners(javax.swing.AbstractButton b)
uninstallListeners in class javax.swing.plaf.basic.BasicButtonUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicButtonUIprotected void paintThemeBackground(java.awt.Graphics g,
javax.swing.JComponent c)
protected void paintButtonPressed(java.awt.Graphics g,
javax.swing.AbstractButton b)
paintButtonPressed 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 com.jgoodies.looks.plastic.PlasticButtonUI