Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see java.
.
Modifier and Type | Field and Description |
---|---|
protected Color | disabledTextColor
The color of the disabled color. |
protected Color | focusColor
The color of the focused button. |
private static final Object | |
protected Color | selectColor
The color of the selected button. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected BasicButtonListener | createButtonListener(AbstractButton
an abstract button b)Overrides javax. Returns a new instance of |
public static ComponentUI | Returns: an instance ofMetalButtonUI a component c)Hides javax. Returns an instance of |
protected Color | |
protected Color | |
protected Color | |
public void | installDefaults(AbstractButton
an abstract button b)Overrides javax. Installs default properties. |
protected void | paintButtonPressed(Graphics
an instance of g, AbstractButton Graphics an abstract button b)Overrides javax. Paints a pressed button. |
protected void | paintFocus(Graphics
an instance of g, AbstractButton Graphics an abstract button b, Rectangle a bounding rectangle to render the button viewRect, Rectangle a bounding rectangle to render the text textRect, Rectangle a bounding rectangle to render the icon iconRect)Overrides javax. Paints a focused button. |
protected void | paintText(Graphics
an instance of g, JComponent Graphics a component c, Rectangle a bounding rectangle to render the text textRect, String a string to render text)Overrides javax. Method which renders the text of the current button. |
public void | uninstallDefaults(AbstractButton
an abstract button b)Overrides javax. Uninstalls default properties. |
public void | update(Graphics
Graphics to paint to g, JComponent JComponent painting on c)Overrides javax. If necessary paints the background of the component, then
invokes |
disabledTextColor | back to summary |
---|---|
protected Color disabledTextColor The color of the disabled color. |
focusColor | back to summary |
---|---|
protected Color focusColor The color of the focused button. |
METAL_BUTTON_UI_KEY | back to summary |
---|---|
private static final Object METAL_BUTTON_UI_KEY |
selectColor | back to summary |
---|---|
protected Color selectColor The color of the selected button. |
MetalButtonUI | back to summary |
---|---|
public MetalButtonUI() Constructs a |
createButtonListener | back to summary |
---|---|
protected BasicButtonListener createButtonListener(AbstractButton b) Overrides javax. Doc from javax. Returns a new instance of
|
createUI | back to summary |
---|---|
public static ComponentUI createUI(JComponent c) Hides javax. Returns an instance of
|
getDisabledTextColor | back to summary |
---|---|
protected Color getDisabledTextColor() Returns the color of a disabled text.
|
getFocusColor | back to summary |
---|---|
protected Color getFocusColor() Returns the color of the focused button.
|
getSelectColor | back to summary |
---|---|
protected Color getSelectColor() Returns the color of the selected button.
|
installDefaults | back to summary |
---|---|
public void installDefaults(AbstractButton b) Overrides javax. Doc from javax. Installs default properties.
|
paintButtonPressed | back to summary |
---|---|
protected void paintButtonPressed(Graphics g, AbstractButton b) Overrides javax. Doc from javax. Paints a pressed button.
|
paintFocus | back to summary |
---|---|
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) Overrides javax. Doc from javax. Paints a focused button.
|
paintText | back to summary |
---|---|
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) Overrides javax. Doc from javax. Method which renders the text of the current button. As of Java 2 platform v 1.4 this method should not be used or overridden. Use the paintText method which takes the AbstractButton argument.
|
uninstallDefaults | back to summary |
---|---|
public void uninstallDefaults(AbstractButton b) Overrides javax. Doc from javax. Uninstalls default properties.
|
update | back to summary |
---|---|
public void update(Graphics g, JComponent c) Overrides javax. If necessary paints the background of the component, then
invokes
|