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. |
| protected Color | selectColor
The color of the selected button. |
| private static final ComponentUI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected BasicButtonListener | createButtonListener(AbstractButton b)
Overrides javax. Returns a new instance of |
| public static ComponentUI | Returns: an instance ofMetalButtonUIa component c)Hides javax. Returns an instance of |
| protected Color | |
| protected Color | |
| protected Color | |
| public void | installDefaults(AbstractButton b)
Overrides javax. Installs default properties. |
| protected void | paintButtonPressed(Graphics g, AbstractButton b)
Overrides javax. Paints a pressed button. |
| protected void | paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
Overrides javax. Paints a focused button. |
| protected void | paintText(Graphics g, JComponent c, Rectangle textRect, String text)
Overrides javax. Method which renders the text of the current button. |
| public void | uninstallDefaults(AbstractButton 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. | |
| selectColor | back to summary |
|---|---|
| protected Color selectColor The color of the selected button. | |
| UI | back to summary |
|---|---|
| private static final ComponentUI UI | |
| 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
| |