com.horstmann.violet
Class UseCaseNode
java.lang.Object
com.horstmann.violet.framework.AbstractNode
com.horstmann.violet.framework.RectangularNode
com.horstmann.violet.UseCaseNode
- All Implemented Interfaces:
- Node, java.io.Serializable, java.lang.Cloneable
public class UseCaseNode
- extends RectangularNode
A use case node in a use case diagram.
- See Also:
- Serialized Form
Constructor Summary |
UseCaseNode()
Construct a use case node with a default size |
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 |
UseCaseNode
public UseCaseNode()
- Construct a use case node with a default size
draw
public void draw(java.awt.Graphics2D g2)
- Description copied from interface:
Node
- Draw the node.
- Specified by:
draw
in interface Node
- Overrides:
draw
in class AbstractNode
- Parameters:
g2
- the graphics context
getShape
public java.awt.Shape getShape()
- Overrides:
getShape
in class RectangularNode
- Returns:
- the shape to be used for computing the drop shadow
setName
public void setName(MultiLineString newValue)
- Sets the name property value.
- Parameters:
newValue
- the new use case name
getName
public MultiLineString getName()
- Gets the name property value.
- Parameters:
the
- use case name
clone
public java.lang.Object clone()
- Specified by:
clone
in interface Node
- Overrides:
clone
in class RectangularNode