swarm.gui
Interface NodeItemC
- All Known Subinterfaces:
- OvalNodeItemC, RectangleNodeItemC
- All Known Implementing Classes:
- NodeItemCImpl, OvalNodeItemCImpl, RectangleNodeItemCImpl
- public interface NodeItemC
- extends CompositeItemC, CompositeItemS
A class for displaying a node on a Canvas..
A class for displaying a node on a Canvas. A NodeItem has a position, a font, color, border color and width.
Method Summary |
java.lang.Object |
setFont(java.lang.String font)
Set the font with which to draw the label. |
java.lang.Object |
setString(java.lang.String label)
Set the label to put on the node. |
java.lang.Object |
setX$Y(int x,
int y)
Set the position of the node. |
setString
public java.lang.Object setString(java.lang.String label)
- Set the label to put on the node.
setFont
public java.lang.Object setFont(java.lang.String font)
- Set the font with which to draw the label.
setX$Y
public java.lang.Object setX$Y(int x,
int y)
- Set the position of the node.