|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.metal.MetalIconFactory.TreeControlIcon
public static class MetalIconFactory.TreeControlIcon
A tree control icon. This icon can be in one of two states: expanded and collapsed.
Field Summary | |
---|---|
protected boolean |
isLight
???. |
Constructor Summary | |
---|---|
MetalIconFactory.TreeControlIcon(boolean isCollapsed)
Creates a new icon. |
Method Summary | |
---|---|
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) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean isLight
Constructor Detail |
---|
public MetalIconFactory.TreeControlIcon(boolean isCollapsed)
isCollapsed
- a flag that controls whether the icon is in the
collapsed state or the expanded state.Method Detail |
---|
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- the component.g
- the graphics device.x
- the x coordinate.y
- the y coordinate.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |