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..
javax.swing.plaf.UIResource
| Access | Constructor and Description |
|---|---|
| public | IconUIResource(Icon
the icon being wrapped delegate)Creates a UIResource icon object which wraps an existing Icon instance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public void | paintIcon(Component c, Graphics g, int x, int y)
Implements javax. Draw the icon at the specified location. |
| delegate | back to summary |
|---|---|
| private Icon delegate | |
| IconUIResource | back to summary |
|---|---|
| public IconUIResource(Icon delegate) Creates a UIResource icon object which wraps an existing Icon instance.
| |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight() Implements javax. Doc from javax. Returns the icon's height. | |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth() Implements javax. Doc from javax. Returns the icon's width. | |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(Component c, Graphics g, int x, int y) Implements javax. Doc from javax. Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color. | |