public class ClassNode extends RectangularNode
Constructor and Description |
---|
ClassNode()
Construct a class node with a default size
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
draw(java.awt.Graphics2D g2)
Draw the node.
|
MultiLineString |
getAttributes()
Gets the attributes property value.
|
MultiLineString |
getMethods()
Gets the methods property value.
|
MultiLineString |
getName()
Gets the name property value.
|
void |
layout(java.awt.Graphics2D g2)
Recomputes the layout of this node.
|
void |
setAttributes(MultiLineString newValue)
Sets the attributes property value.
|
void |
setMethods(MultiLineString newValue)
Sets the methods property value.
|
void |
setName(MultiLineString newValue)
Sets the name property value.
|
contains, getBounds, getConnectionPoint, setBounds, translate
public ClassNode()
public void draw(java.awt.Graphics2D g2)
Node
g2
- the graphics contextpublic void layout(java.awt.Graphics2D g2)
g2
- the graphics contextpublic void setName(MultiLineString newValue)
newValue
- the class namepublic MultiLineString getName()
public void setAttributes(MultiLineString newValue)
newValue
- the attributes of this classpublic MultiLineString getAttributes()
public void setMethods(MultiLineString newValue)
newValue
- the methods of this classpublic MultiLineString getMethods()
public java.lang.Object clone()
clone
in interface Node
clone
in class RectangularNode