javax.swing.plaf.metal
Class MetalIconFactory.TreeFolderIcon
java.lang.Object
javax.swing.plaf.metal.MetalIconFactory.FolderIcon16
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalIconFactory.TreeFolderIcon
public MetalIconFactory.TreeFolderIcon()
- Creates a new instance.
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.