|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.horstmann.violet.framework.AbstractNode
com.horstmann.violet.framework.RectangularNode
com.horstmann.violet.CallNode
public class CallNode
A method call node in a scenario diagram.
Field Summary | |
---|---|
static int |
CALL_YGAP
|
Fields inherited from class com.horstmann.violet.framework.AbstractNode |
---|
SHADOW_GAP |
Constructor Summary | |
---|---|
CallNode()
Construct a call node with a default size |
Method Summary | |
---|---|
boolean |
addEdge(Edge e,
java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Adds an edge that originates at this node. |
boolean |
addNode(Node n,
java.awt.geom.Point2D p)
Adds a node as a child node to this node. |
void |
draw(java.awt.Graphics2D g2)
Draw the node. |
java.awt.geom.Point2D |
getConnectionPoint(Direction d)
Get the best connection point to connect this node with another node. |
ImplicitParameterNode |
getImplicitParameter()
Gets the implicit parameter of this call. |
boolean |
isOpenBottom()
Gets the openBottom property. |
void |
layout(Graph g,
java.awt.Graphics2D g2,
Grid grid)
Lays out the node and its children. |
void |
removeEdge(Graph g,
Edge e)
Notifies this node that an edge is being removed. |
void |
removeNode(Graph g,
Node n)
Notifies this node that a node is being removed. |
void |
setImplicitParameter(ImplicitParameterNode newValue)
Sets the implicit parameter of this call. |
void |
setOpenBottom(boolean newValue)
Sets the openBottom property. |
void |
setSignaled(boolean newValue)
Sets the signaled property. |
Methods inherited from class com.horstmann.violet.framework.RectangularNode |
---|
clone, contains, getBounds, getShape, setBounds, translate |
Methods inherited from class com.horstmann.violet.framework.AbstractNode |
---|
addChild, addChild, getChildren, getParent, removeChild, setParent, setPersistenceDelegate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int CALL_YGAP
Constructor Detail |
---|
public CallNode()
Method Detail |
---|
public void draw(java.awt.Graphics2D g2)
Node
draw
in interface Node
draw
in class AbstractNode
g2
- the graphics contextpublic ImplicitParameterNode getImplicitParameter()
public void setImplicitParameter(ImplicitParameterNode newValue)
newValue
- the implicit parameter nodepublic java.awt.geom.Point2D getConnectionPoint(Direction d)
Node
getConnectionPoint
in interface Node
getConnectionPoint
in class RectangularNode
d
- the direction from the center
of the bounding rectangle towards the boundary
public boolean addEdge(Edge e, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
Node
addEdge
in interface Node
addEdge
in class AbstractNode
e
- the edge to add
public void removeEdge(Graph g, Edge e)
Node
removeEdge
in interface Node
removeEdge
in class AbstractNode
g
- the ambient graphe
- the edge to be removedpublic void removeNode(Graph g, Node n)
Node
removeNode
in interface Node
removeNode
in class AbstractNode
g
- the ambient graphn
- the node to be removedpublic void layout(Graph g, java.awt.Graphics2D g2, Grid grid)
Node
layout
in interface Node
layout
in class RectangularNode
g
- the ambient graphg2
- the graphics contextgrid
- the grid to snap topublic boolean addNode(Node n, java.awt.geom.Point2D p)
Node
addNode
in interface Node
addNode
in class AbstractNode
n
- the child nodep
- the point at which the node is being added
public void setSignaled(boolean newValue)
newValue
- true if this node is the target of a signal edgepublic boolean isOpenBottom()
public void setOpenBottom(boolean newValue)
newValue
- true if this node is the target of a signal edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |