|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalIconFactory.FileIcon16
public static class MetalIconFactory.FileIcon16
An icon representing a file (drawn as a piece of paper with the top-right corner turned down).
| Constructor Summary | |
|---|---|
MetalIconFactory.FileIcon16()
|
|
| 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.FileIcon16()
| 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 context.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.TreeLeafIcon).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||