|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nodenet.NodeNetIcon
An icon to draw nodes reflecting their selection status. This was formerly an inner class of ControlPanel.
Constructor Summary | |
NodeNetIcon()
Creates a new instance of NodeNetIcon |
|
NodeNetIcon(java.awt.Color c,
boolean s)
Creates a new instance of NodeNetIcon with the specified color and state. |
Method Summary | |
java.awt.Color |
getColor()
Getter for property color. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
void |
setColor(java.awt.Color color)
Setter for property color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeNetIcon()
public NodeNetIcon(java.awt.Color c, boolean s)
Method Detail |
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- New value of property color.
|
Nodenet Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |