public class ClassNode extends RectangularNode
Modifier and Type | Field and Description |
---|---|
private MultiLineString |
attributes |
private double |
botHeight |
private static int |
DEFAULT_COMPARTMENT_HEIGHT |
private static int |
DEFAULT_HEIGHT |
private static int |
DEFAULT_WIDTH |
private MultiLineString |
methods |
private double |
midHeight |
private MultiLineString |
name |
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
private double midHeight
private double botHeight
private MultiLineString name
private MultiLineString attributes
private MultiLineString methods
private static int DEFAULT_COMPARTMENT_HEIGHT
private static int DEFAULT_WIDTH
private static int DEFAULT_HEIGHT
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