public static class MetalIconFactory.TreeControlIcon extends Object implements Icon, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isLight
???.
|
| Constructor and Description |
|---|
MetalIconFactory.TreeControlIcon(boolean isCollapsed)
Creates a new icon.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight()
Returns the height of the icon, in pixels.
|
int |
getIconWidth()
Returns the width of the icon, in pixels.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon at the location (x, y).
|
void |
paintMe(Component c,
Graphics g,
int x,
int y)
Simply calls
paintIcon(Component, Graphics, int, int). |
protected boolean isLight
public MetalIconFactory.TreeControlIcon(boolean isCollapsed)
isCollapsed - a flag that controls whether the icon is in the
collapsed state or the expanded state.public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Iconpublic void paintIcon(Component c, Graphics g, int x, int y)
public void paintMe(Component c, Graphics g, int x, int y)
paintIcon(Component, Graphics, int, int).c - the component.g - the graphics device.x - the x coordinate.y - the y coordinate.