|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.horstmann.violet.framework.ShapeEdge
com.horstmann.violet.StateTransitionEdge
public class StateTransitionEdge
A curved edge for a state transition in a state diagram.
Constructor Summary | |
---|---|
StateTransitionEdge()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
connect(Node s,
Node e)
Connect this edge to two nodes. |
void |
draw(java.awt.Graphics2D g2)
Draw the edge. |
java.awt.geom.Rectangle2D |
getBounds(java.awt.Graphics2D g2)
Gets the smallest rectangle that bounds this edge. |
java.awt.geom.Line2D |
getConnectionPoints()
Gets the points at which this edge is connected to its nodes. |
Node |
getEnd()
Gets the ending node. |
java.lang.String |
getLabel()
Gets the label property value. |
java.awt.Shape |
getShape()
Returns the path that should be stroked to draw this edge. |
Node |
getStart()
Gets the starting node. |
void |
setLabel(java.lang.String newValue)
Sets the label property value. |
Methods inherited from class com.horstmann.violet.framework.ShapeEdge |
---|
contains |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateTransitionEdge()
Method Detail |
---|
public void setLabel(java.lang.String newValue)
newValue
- the new valuepublic java.lang.String getLabel()
public void draw(java.awt.Graphics2D g2)
Edge
g2
- the graphics contextpublic java.awt.Shape getShape()
ShapeEdge
getShape
in class ShapeEdge
public java.awt.geom.Rectangle2D getBounds(java.awt.Graphics2D g2)
Edge
getBounds
in interface Edge
getBounds
in class ShapeEdge
public java.awt.geom.Line2D getConnectionPoints()
Edge
getConnectionPoints
in interface Edge
public java.lang.Object clone()
clone
in interface Edge
clone
in class java.lang.Object
public void connect(Node s, Node e)
Edge
connect
in interface Edge
s
- the starting nodee
- the ending nodepublic Node getStart()
Edge
getStart
in interface Edge
public Node getEnd()
Edge
getEnd
in interface Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |