javax.swing.plaf.metal
Class MetalIconFactory.TreeLeafIcon

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

public static class MetalIconFactory.TreeLeafIcon
extends MetalIconFactory.FileIcon16

A tree leaf icon.

See Also:
Serialized Form

Constructor Summary
MetalIconFactory.TreeLeafIcon()
          Creates a new instance.
 
Method Summary
 int getAdditionalHeight()
          Returns the additional height for this icon, in this case 4 pixels.
 int getShift()
          Returns the vertical shift, in pixels, applied when painting the icon.
 
Methods inherited from class javax.swing.plaf.metal.MetalIconFactory.FileIcon16
getIconHeight, getIconWidth, paintIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalIconFactory.TreeLeafIcon

public MetalIconFactory.TreeLeafIcon()
Creates a new instance.

Method Detail

getAdditionalHeight

public int getAdditionalHeight()
Returns the additional height for this icon, in this case 4 pixels.

Overrides:
getAdditionalHeight in class MetalIconFactory.FileIcon16
Returns:
4.

getShift

public int getShift()
Returns the vertical shift, in pixels, applied when painting the icon. This overridden method returns 2.

Overrides:
getShift in class MetalIconFactory.FileIcon16
Returns:
The shift.