javax.swing.plaf.metal
Class MetalIconFactory.TreeFolderIcon

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

public static class MetalIconFactory.TreeFolderIcon
extends MetalIconFactory.FolderIcon16

A tree folder icon.

See Also:
Serialized Form

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

Constructor Detail

MetalIconFactory.TreeFolderIcon

public MetalIconFactory.TreeFolderIcon()
Creates a new instance.

Method Detail

getAdditionalHeight

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

Overrides:
getAdditionalHeight in class MetalIconFactory.FolderIcon16
Returns:
2.

getShift

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

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