Name
NodeItem -- A class for displaying a node on a Canvas.
Description
A class for displaying a node on a Canvas. A NodeItem has a position, a font, color, border color and width.
Methods
Phase: Creating
-
createBindings Set the mouse bindings for a NodeItem (e.g. dragging).
Phase: Using
-
setX: (int)
x Y: (int)
y Set the position of the node.
- (int)
getX Get the x position of the node on the canvas.
- (int)
getY Get the y position of the node on the canvas.
-
setString: (const char *)
string Set the label to put on the node.
-
setFont: (const char *)
the_font Set the font with which to draw the label.
-
setColor: (const char *)
aColor Set the color of the node.
-
setBorderColor: (const char *)
aColor Set the border color of the node.
-
setBorderWidth: (int)
aVal Set the width of the border.
-
createText Create the text for the node.
-
createPaddedText Create the space for the text for the node.