|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsysteminformationmonitor.swing.ShapeIcon
public class ShapeIcon
ShapeIcon
| Constructor Summary | |
|---|---|
ShapeIcon()
|
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Returns the shape's height. |
int |
getIconWidth()
Returns the shape's width. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draws the icon at the x,y using the Graphis object passed. |
void |
setColor(java.awt.Color color)
Set the color of the icon. |
void |
setShape(java.awt.Shape shape)
Set the scape of the icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeIcon()
| Method Detail |
|---|
public void setShape(java.awt.Shape shape)
shape - Shape to set.public void setColor(java.awt.Color color)
color - Color to set.public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconc - Component which is not used.g - Graphics Object used to draw the icon.x - X position to draw the shape.y - Y position to draw the shape.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||