com.horstmann.violet
Class CircularStateNode
java.lang.Object
   com.horstmann.violet.framework.AbstractNode
com.horstmann.violet.framework.AbstractNode
       com.horstmann.violet.framework.RectangularNode
com.horstmann.violet.framework.RectangularNode
           com.horstmann.violet.CircularStateNode
com.horstmann.violet.CircularStateNode
- All Implemented Interfaces: 
- Node, java.io.Serializable, java.lang.Cloneable
- public class CircularStateNode 
- extends RectangularNode
An initial or final node (bull's eye) in a state or activity diagram.
- See Also:
- Serialized Form
 
 
 
 
 
| Methods inherited from class com.horstmann.violet.framework.AbstractNode | 
| addChild, addChild, addEdge, addNode, getChildren, getParent, removeChild, removeEdge, removeNode, setParent, setPersistenceDelegate | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CircularStateNode
public CircularStateNode()
- Construct a node with a default size
 
isFinal
public boolean isFinal()
- 
 
setFinal
public void setFinal(boolean newValue)
- 
 
getConnectionPoint
public java.awt.geom.Point2D getConnectionPoint(Direction d)
- Description copied from interface: Node
- Get the best connection point to connect this node 
      with another node. This should be a point on the boundary
      of the shape of this node.
 
- 
- Specified by:
- getConnectionPointin interface- Node
- Overrides:
- getConnectionPointin class- RectangularNode
 
- 
- Parameters:
- d- the direction from the center 
      of the bounding rectangle towards the boundary
- Returns:
- the recommended connection point
 
draw
public void draw(java.awt.Graphics2D g2)
- Description copied from interface: Node
- Draw the node.
 
- 
- Specified by:
- drawin interface- Node
- Overrides:
- drawin class- AbstractNode
 
- 
- Parameters:
- g2- the graphics context
 
getShape
public java.awt.Shape getShape()
- 
- Overrides:
- getShapein class- RectangularNode
 
- 
- Returns:
- the shape to be used for computing the drop shadow