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 |
|---|---|
| private boolean | |
| protected Color | disabledTextColor
The color of a disabled text. |
| protected Color | focusColor
The color of a focused toggle button. |
| protected Color | selectColor
The color of a selected button. |
| private static final ComponentUI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: theMetalToggleButtonUI.a component b)Hides javax. Constructs the |
| protected Color | |
| protected Color | Returns: the color of a focused toggle buttonReturns the color of a focused toggle button. |
| 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 | paintIcon(Graphics
Graphics to paint to g, AbstractButton Button to render for b, Rectangle space to render in iconRect)Overrides javax. Paints the appropriate icon of the button |
| protected void | paintText(Graphics g, JComponent c, Rectangle textRect, String text)
Overrides javax. Method which renders the text of the current button. |
| protected 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
|
| defaults_initialized | back to summary |
|---|---|
| private boolean defaults_initialized | |
| disabledTextColor | back to summary |
|---|---|
| protected Color disabledTextColor The color of a disabled text. | |
| focusColor | back to summary |
|---|---|
| protected Color focusColor The color of a focused toggle button. | |
| selectColor | back to summary |
|---|---|
| protected Color selectColor The color of a selected button. | |
| UI | back to summary |
|---|---|
| private static final ComponentUI UI | |
| MetalToggleButtonUI | back to summary |
|---|---|
| public MetalToggleButtonUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent b) Hides javax. Constructs the
| |
| 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 a focused toggle button.
| |
| getSelectColor | back to summary |
|---|---|
| protected Color getSelectColor() Returns the color of a 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. | |
| paintIcon | back to summary |
|---|---|
| protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) Overrides javax. Paints the appropriate icon of the 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 |
|---|---|
| protected 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
| |