|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalIconFactory.FolderIcon16
public static class MetalIconFactory.FolderIcon16
An icon representing a folder.
| Constructor Summary | |
|---|---|
MetalIconFactory.FolderIcon16()
|
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetalIconFactory.FolderIcon16()
| Method Detail |
|---|
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
16 plus the value returned by
getAdditionalHeight().
getIconHeight in interface Icon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface 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).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||