javax.swing.plaf.metal

Class MetalIconFactory.TreeLeafIcon

public static class MetalIconFactory.TreeLeafIcon extends MetalIconFactory.FileIcon16

A tree leaf icon.
Constructor Summary
TreeLeafIcon()
Creates a new instance.
Method Summary
intgetAdditionalHeight()
Returns the additional height for this icon, in this case 4 pixels.
intgetShift()
Returns the vertical shift, in pixels, applied when painting the icon.

Constructor Detail

TreeLeafIcon

public TreeLeafIcon()
Creates a new instance.

Method Detail

getAdditionalHeight

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

Returns: 4.

getShift

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

Returns: The shift.