|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Layer
org.tigris.gef.base.LayerDiagram
org.tigris.gef.base.LayerPerspective
org.tigris.gef.base.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 | |
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 |
private 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 |
LINK_DISTANCE
The vertical distance between two links |
static int |
OBJECT_DISTANCE
The distance between two objects on the sequence diagram. |
Fields inherited from class org.tigris.gef.base.LayerPerspectiveMutable |
|
Fields inherited from class org.tigris.gef.base.LayerPerspective |
_allowedNetClasses, _controller, _edgeRenderer, _gm, _nodeRenderer, _nodeTypeRegions, GAP |
Fields inherited from class org.tigris.gef.base.LayerDiagram |
_nextLayerNumbered |
Fields inherited from class org.tigris.gef.base.Layer |
_editors, _onMenu |
Constructor Summary | |
SequenceDiagramLayout(String name,
org.tigris.gef.graph.MutableGraphModel gm)
The constructor. |
Method Summary | |
void |
add(org.tigris.gef.presentation.Fig f)
|
void |
addNode(int position,
Node node)
|
void |
deleted(org.tigris.gef.presentation.Fig f)
|
private void |
distributeFigObjects(org.tigris.gef.presentation.Fig f)
Distributes the fig objects contained in _figObjectsX over the sequencediagram. |
List |
getFigLinks(int y)
Returns a list with all FigLink s that intersect with
the given y coordinate. |
void |
nodeAdded(org.tigris.gef.graph.GraphEvent ge)
|
void |
putInPosition(org.tigris.gef.presentation.Fig f)
|
private void |
reshuffelFigObjectsX(org.tigris.gef.presentation.Fig f)
|
void |
updateActivations()
|
Methods inherited from class org.tigris.gef.base.LayerPerspectiveMutable |
getGraphModel, getMutableGraphModel, remove, setGraphModel, setMutableGraphModel |
Methods inherited from class org.tigris.gef.base.LayerPerspective |
addNodeTypeRegion, allowNetClass, bumpOffOtherNodesIn, edgeAdded, edgeRemoved, getGraphController, getGraphEdgeRenderer, getGraphNodeRenderer, graphChanged, nodeRemoved, setGraphController, setGraphEdgeRenderer, setGraphNodeRenderer, shouldShow |
Methods inherited from class org.tigris.gef.base.LayerDiagram |
bringForward, bringInFrontOf, bringToFront, elements, getContents, getContents, getPortFig, hit, indexOf, insertAt, numberWordFor, paintContents, paintContents, postLoad, postSave, preSave, presentationCountFor, presentationFor, removeAll, reorder, sendBackward, sendToBack |
Methods inherited from class org.tigris.gef.base.Layer |
addEditor, adjust, calcDrawingArea, clone, damageAll, elementsIn, getContentsEdgesOnly, getContentsEdgesOnly, getContentsNoEdges, getContentsNoEdges, getEditors, getEditors, getGrayed, getHidden, getLocked, getName, getOnMenu, getPerspectiveType, getScale, isAlwaysOnTop, nodesIn, paint, paint, paintGrayContents, print, refreshEditors, removeEditor, setAlwaysOnTop, setGrayed, setHidden, setLocked, setName, setOnMenu, setPerspectiveType, setScale, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, 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 LinkedList figObjectsX
private int heighestObjectHeight
Constructor Detail |
public SequenceDiagramLayout(String name, org.tigris.gef.graph.MutableGraphModel gm)
name
- the namegm
- the graph modelMethod Detail |
public void putInPosition(org.tigris.gef.presentation.Fig f)
LayerPerspective.putInPosition(Fig)
private void distributeFigObjects(org.tigris.gef.presentation.Fig f)
f
- public void nodeAdded(org.tigris.gef.graph.GraphEvent ge)
GraphListener.nodeAdded(GraphEvent)
public void add(org.tigris.gef.presentation.Fig f)
Layer.add(org.tigris.gef.presentation.Fig)
private void reshuffelFigObjectsX(org.tigris.gef.presentation.Fig f)
public void deleted(org.tigris.gef.presentation.Fig f)
Layer.deleted(org.tigris.gef.presentation.Fig)
public void updateActivations()
public List getFigLinks(int y)
FigLink
s that intersect with
the given y coordinate.
y
- is the given y coordinate.
FigLink
s.public void addNode(int position, Node node)
position
- the position for the nodenode
- the node to be added
|
|||||||||||
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 |