|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.graph.uml.classdiagram.ClassdiagramLayouter
public class ClassdiagramLayouter
This class implements a layout algorithm for class diagrams.
The layout process is performed in a row by row way. The position of the nodes in a row are set using the sequence given by the natural order of the nodes.
The resulting layout sequence:
ClassdiagramNode.compareTo(java.lang.Object)| Constructor Summary | |
|---|---|
ClassdiagramLayouter()
Constructor for the layouter. |
|
| Method Summary | |
|---|---|
void |
add(LayoutedObject obj)
Add an object to layout. |
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. |
void |
layout()
Operation layout implements the actual layout algorithm. |
void |
remove(LayoutedObject obj)
Remove an object from the layout process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassdiagramLayouter()
theDiagram - The diagram to layout.| Method Detail |
|---|
public void add(LayoutedObject obj)
add in interface Layouterobj - represents the object to layout.public java.awt.Dimension getMinimumDiagramSize()
getMinimumDiagramSize in interface Layouterpublic LayoutedObject getObject(int index)
getObject in interface Layouterindex - represents the index of this object in the layouter.
public LayoutedObject[] getObjects()
getObjects in interface Layouterpublic void layout()
layout in interface Layouterpublic void remove(LayoutedObject obj)
remove in interface Layouterobj - represents the object to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||