public static class MetalIconFactory.FileIcon16 extends Object implements Icon, Serializable
Constructor and Description |
---|
MetalIconFactory.FileIcon16() |
Modifier and Type | Method and Description |
---|---|
int |
getAdditionalHeight()
Returns the additional height for the icon.
|
int |
getIconHeight()
Returns the height of the icon, in pixels.
|
int |
getIconWidth()
Returns the width of the icon, in pixels.
|
int |
getShift()
Returns the vertical shift, in pixels, applied when painting the icon.
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon at the location (x, y).
|
public MetalIconFactory.FileIcon16()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
16
plus the value returned by
getAdditionalHeight()
.getIconHeight
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
public int getAdditionalHeight()
getIconHeight()
method adds this value to the icon height it
returns. Subclasses can override this method to adjust the icon height.0
unless overridden).public int getShift()
MetalIconFactory.TreeLeafIcon
).