javax.swing.plaf.metal

Class MetalIconFactory.TreeFolderIcon

public static class MetalIconFactory.TreeFolderIcon extends MetalIconFactory.FolderIcon16

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

Constructor Detail

TreeFolderIcon

public TreeFolderIcon()
Creates a new instance.

Method Detail

getAdditionalHeight

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

Returns: 2.

getShift

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

Returns: The shift.