|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.uml.diagram.static_structure.layout.ClassdiagramLayouter
This class implements a layout algoritms for class diagrams.
Field Summary | |
---|---|
static Category |
cat
Category for logging events |
Constructor Summary | |
---|---|
ClassdiagramLayouter(UMLDiagram theDiagram)
This constructor is mainly for convenience, so we don't have add every node manually to the layouter. |
Method Summary | |
---|---|
void |
add(org.argouml.uml.diagram.static_structure.layout.ClassdiagramNode obj)
Add a ClassdiagramNode to layout. |
void |
add(LayoutedObject obj)
Add a object to layout. |
org.argouml.uml.diagram.static_structure.layout.ClassdiagramNode |
getClassdiagramNode(int index)
Get a ClassdiagramNode from the layouted objects. |
protected int |
getHGap()
Get the horizontal gap between nodes. |
java.awt.Dimension |
getMinimumDiagramSize()
Operation getMinimumDiagramSize returns the minimum diagram size after the layout process. |
LayoutedObject |
getObject(int index)
Operation getObject returns a object with a given index from the layouter. |
LayoutedObject[] |
getObjects()
Operation getObjects returns all the objects currently participating in the layout process. |
protected int |
getVGap()
Get the vertical gap between nodes. |
void |
layout()
Operation layout implements the actual layout algorithm |
void |
remove(LayoutedObject obj)
Remove a object from the layout process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Category cat
Constructor Detail |
public ClassdiagramLayouter(UMLDiagram theDiagram)
Method Detail |
public void add(LayoutedObject obj)
add
in interface Layouter
obj
- represents the object to layout.public void add(org.argouml.uml.diagram.static_structure.layout.ClassdiagramNode obj)
obj
- represents the object to layout.public void remove(LayoutedObject obj)
remove
in interface Layouter
obj
- represents the object to remove.public LayoutedObject[] getObjects()
getObjects
in interface Layouter
public LayoutedObject getObject(int index)
getObject
in interface Layouter
index
- represents the index of this object in the layouter.
public org.argouml.uml.diagram.static_structure.layout.ClassdiagramNode getClassdiagramNode(int index)
index
- represents the index of this ClassdiagramNode.
public void layout()
layout
in interface Layouter
public java.awt.Dimension getMinimumDiagramSize()
getMinimumDiagramSize
in interface Layouter
protected int getVGap()
protected int getHGap()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |