|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.uml.diagram.static_structure.layout.ClassdiagramLayouter.NodeRow
This class keeps all the nodes in one row together and provides basic functionality for them.
Field Summary | |
private Vector |
nodes
Keeps all nodes of this row |
private int |
rowNumber
The row number of this row |
Constructor Summary | |
ClassdiagramLayouter.NodeRow(int aRowNumber)
Construct an empty NodeRow with the given row number |
Method Summary | |
void |
addNode(ClassdiagramNode node)
Add a node to this NodeRow. |
private void |
adjustRowNodes()
Adjust the properties for all nodes in this row: rank, column, offset for edges |
ClassdiagramLayouter.NodeRow |
doSplit(int maxWidth,
int gap)
Splittable are packages and stanalone-nodes. |
Vector |
getNodes()
|
int |
getRowNumber()
|
Iterator |
getSortedIterator()
Get an Iterator for the nodes of this row, sorted by their natural order |
int |
getWidth(int gap)
Get the width for this row using the given horizontal gap between nodes. |
void |
setRowNumber(int rowNum)
Set the row number of this row |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vector nodes
private int rowNumber
Constructor Detail |
public ClassdiagramLayouter.NodeRow(int aRowNumber)
Method Detail |
public void addNode(ClassdiagramNode node)
node
- The node to be addedpublic ClassdiagramLayouter.NodeRow doSplit(int maxWidth, int gap)
maxWidth
- The maximum allowed row widthgap
- The horizontal gab between two nodes
public Vector getNodes()
public int getRowNumber()
public Iterator getSortedIterator()
public int getWidth(int gap)
gap
- The horizontal gap between nodes
public void setRowNumber(int rowNum)
rowNum
- The rowNumber to set.private void adjustRowNodes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |