public static class MetalIconFactory.FolderIcon16 extends java.lang.Object implements javax.swing.Icon, java.io.Serializable
| Constructor and Description |
|---|
MetalIconFactory.FolderIcon16() |
| 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(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints the icon at the location (x, y).
|
public MetalIconFactory.FolderIcon16()
public int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
16 plus the value returned by
getAdditionalHeight().getIconHeight in interface javax.swing.Iconpublic void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon in interface javax.swing.Iconc - the component.g - the graphics device.x - the x coordinate.y - the y coordinate.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.TreeFolderIcon).