|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LayerPerspectiveMutable | +--org.argouml.uml.diagram.sequence.ui.SequenceDiagramLayout
The layer on which the figs in a sequence diagram are placed. Also responsible for distributing figs on the diagram if a fig is added or removed.
Field Summary | |
---|---|
private java.util.LinkedList |
_figObjectsX
Linked list with all fig objects sorted by x coordinate in it |
private int |
_heighestObjectHeight
The heighest height of the outer box of a figobject. |
static int |
DIAGRAM_LEFT_MARGE
The distance between the left side of the diagram and the first FigObject . |
static int |
DIAGRAM_TOP_MARGE
The distance between the top side of the diagram and the top of the highest FigObject |
static int |
LINK_DISTANCE
The vertical distance between two links |
static int |
OBJECT_DISTANCE
The distance between two objects on the sequence diagram. |
Constructor Summary | |
---|---|
SequenceDiagramLayout(java.lang.String name,
MutableGraphModel gm)
|
Method Summary | |
---|---|
void |
add(Fig f)
|
void |
addNode(int position,
Node node)
|
void |
deleted(Fig f)
|
private void |
distributeFigObjects(Fig f)
Distributes the fig objects contained in _figObjectsX over the sequencediagram. |
java.util.List |
getFigLinks(int y)
Returns a list with all FigLink s that intersect with
the given y coordinate. |
void |
nodeAdded(GraphEvent ge)
|
void |
putInPosition(Fig f)
|
private void |
reshuffelFigObjectsX(Fig f)
|
void |
updateActivations()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OBJECT_DISTANCE
public static final int DIAGRAM_LEFT_MARGE
FigObject
.
public static final int DIAGRAM_TOP_MARGE
FigObject
public static final int LINK_DISTANCE
private java.util.LinkedList _figObjectsX
private int _heighestObjectHeight
Constructor Detail |
public SequenceDiagramLayout(java.lang.String name, MutableGraphModel gm)
Method Detail |
public void putInPosition(Fig f)
org.tigris.gef.base.LayerPerspective#putInPosition(Fig)
private void distributeFigObjects(Fig f)
f
- public void nodeAdded(GraphEvent ge)
org.tigris.gef.graph.GraphListener#nodeAdded(GraphEvent)
public void add(Fig f)
org.tigris.gef.base.Layer#add(org.tigris.gef.presentation.Fig)
private void reshuffelFigObjectsX(Fig f)
public void deleted(Fig f)
org.tigris.gef.base.Layer#deleted(org.tigris.gef.presentation.Fig)
public void updateActivations()
public java.util.List getFigLinks(int y)
FigLink
s that intersect with
the given y coordinate.
y
-
FigLink
s.public void addNode(int position, Node node)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |