|
||||||||||
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.InterfaceNode
public class InterfaceNode
An interface node in a class diagram.
Field Summary |
---|
Fields inherited from class com.horstmann.violet.framework.AbstractNode |
---|
SHADOW_GAP |
Constructor Summary | |
---|---|
InterfaceNode()
Construct an interface node with a default size and the text < |
Method Summary | |
---|---|
boolean |
addNode(Node n,
java.awt.geom.Point2D p)
Adds a node as a child node to this node. |
java.lang.Object |
clone()
|
void |
draw(java.awt.Graphics2D g2)
Draw the node. |
MultiLineString |
getMethods()
Gets the methods property value. |
MultiLineString |
getName()
Gets the name property value. |
void |
layout(Graph g,
java.awt.Graphics2D g2,
Grid grid)
Lays out the node and its children. |
void |
setMethods(MultiLineString newValue)
Sets the methods property value. |
void |
setName(MultiLineString newValue)
Sets the name property value. |
Methods inherited from class com.horstmann.violet.framework.RectangularNode |
---|
contains, getBounds, getConnectionPoint, getShape, setBounds, translate |
Methods inherited from class com.horstmann.violet.framework.AbstractNode |
---|
addChild, addChild, addEdge, getChildren, getParent, removeChild, removeEdge, removeNode, setParent, setPersistenceDelegate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterfaceNode()
Method Detail |
---|
public void draw(java.awt.Graphics2D g2)
Node
draw
in interface Node
draw
in class AbstractNode
g2
- the graphics contextpublic 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 setName(MultiLineString newValue)
newValue
- the interface namepublic MultiLineString getName()
public void setMethods(MultiLineString newValue)
newValue
- the methods of this interfacepublic MultiLineString getMethods()
public java.lang.Object clone()
clone
in interface Node
clone
in class RectangularNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |