javax.swing.plaf.metal
Class MetalIconFactory.TreeControlIcon

java.lang.Object
  extended by javax.swing.plaf.metal.MetalIconFactory.TreeControlIcon
All Implemented Interfaces:
Serializable, Icon
Enclosing class:
MetalIconFactory

public static class MetalIconFactory.TreeControlIcon
extends Object
implements Icon, Serializable

A tree control icon. This icon can be in one of two states: expanded and collapsed.

See Also:
Serialized Form

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

isLight

protected boolean isLight
???.

Constructor Detail

MetalIconFactory.TreeControlIcon

public MetalIconFactory.TreeControlIcon(boolean isCollapsed)
Creates a new icon.

Parameters:
isCollapsed - a flag that controls whether the icon is in the collapsed state or the expanded state.
Method Detail

getIconWidth

public int getIconWidth()
Returns the width of the icon, in pixels.

Specified by:
getIconWidth in interface Icon
Returns:
The width of the icon.

getIconHeight

public int getIconHeight()
Returns the height of the icon, in pixels.

Specified by:
getIconHeight in interface Icon
Returns:
The height of the icon.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints the icon at the location (x, y).

Specified by:
paintIcon in interface Icon
Parameters:
c - the component.
g - the graphics device.
x - the x coordinate.
y - the y coordinate.

paintMe

public void paintMe(Component c,
                    Graphics g,
                    int x,
                    int y)
Simply calls paintIcon(Component, Graphics, int, int).

Parameters:
c - the component.
g - the graphics device.
x - the x coordinate.
y - the y coordinate.