|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--diva.canvas.AbstractFigure
|
+--fcmodeler.view.NodeFigure
A Figure representing a node. NodeFigure consists of
an arbitrary shape with a string label. The shape is backed by a BasicFigure
and the label is backed by a LabelFigure.
| Constructor Summary | |
NodeFigure()
Creates a new NodeFigure using an empty label. |
|
NodeFigure(diva.canvas.toolbox.LabelFigure label)
Creates a new NodeFigure using the specified LabelFigure. |
|
| Method Summary | |
diva.canvas.toolbox.BasicFigure |
getFigure()
Returns the BasicFigure used for rendering this node figure. |
diva.canvas.toolbox.LabelFigure |
getLabelFigure()
Returns the LabelFigure used for the label of this node. |
NodeShape |
getNodeShape()
Returns the NodeShape used to determine the shape of this node. |
diva.canvas.toolbox.BasicFigure |
getPermanentFigure()
Returns the permanent BasicFigure for this node. |
NodeShape |
getPermanentNodeShape()
Returns the permanent NodeShape for this node. |
java.awt.Shape |
getShape()
Returns the outline Shape of this node. |
void |
paint(java.awt.Graphics2D g)
Paints this node figure. |
void |
setLabel(java.lang.String label)
Sets the label for this node to the specified String. |
void |
setNodeShape(NodeShape nodeShape)
Sets the NodeShape for this node to the specified NodeShape. |
void |
setPermanentNodeShape(NodeShape nodeShape)
Sets the permanent NodeShape for this node to the specified
NodeShape. |
void |
transform(java.awt.geom.AffineTransform affineTransform)
Transforms this node using the specifed AffineTransform. |
void |
translate(double x,
double y)
Translates this node by the specified x and y distances. |
void |
usePermanents()
Sets the visual attributes for this node to those stored in the permanent BasicFigure. |
| Methods inherited from class diva.canvas.AbstractFigure |
contains, getBounds, getInteractor, getLayer, getParent, getTransformContext, getUserObject, hit, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setUserObject, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeFigure()
Creates a new NodeFigure using an empty label. Equivalent to calling
new NodeFigure(new LabelFigure(" "));public NodeFigure(diva.canvas.toolbox.LabelFigure label)
NodeFigure using the specified LabelFigure.label - the label to use for this NodeFigure.| Method Detail |
public diva.canvas.toolbox.BasicFigure getFigure()
BasicFigure used for rendering this node figure.BasicFigure used for rendering this node figure.public diva.canvas.toolbox.LabelFigure getLabelFigure()
LabelFigure used for the label of this node.LabelFigure used for the label of this node.public NodeShape getNodeShape()
NodeShape used to determine the shape of this node.NodeShape used to determine the shape of this node.public diva.canvas.toolbox.BasicFigure getPermanentFigure()
BasicFigure for this node.BasicFigure for this node.public NodeShape getPermanentNodeShape()
NodeShape for this node.NodeShape for this node.public java.awt.Shape getShape()
Shape of this node.getShape in class diva.canvas.AbstractFigureShape of this node.public void paint(java.awt.Graphics2D g)
BasicFigure is painted first, followed
by the LabelFigure.paint in class diva.canvas.AbstractFigureg - the graphics context to paint to.public void setLabel(java.lang.String label)
String.label - the new label for this node.public void setNodeShape(NodeShape nodeShape)
NodeShape for this node to the specified NodeShape.nodeShape - the new NodeShape for this node.public void setPermanentNodeShape(NodeShape nodeShape)
NodeShape for this node to the specified
NodeShape.nodeShape - the new permanent NodeShape for this node.public void transform(java.awt.geom.AffineTransform affineTransform)
AffineTransform.transform in class diva.canvas.AbstractFigureaffineTransform - the transform to apply to this node.
public void translate(double x,
double y)
translate in class diva.canvas.AbstractFigurex - the x-distance to translate.y - the y-distance to translate.public void usePermanents()
BasicFigure. This can be used to revert back to a permanent visual
state after modifying the appearance of this node.usePermanents in interface PermanentFigure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||