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