|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MutableGraphSupport | +--org.argouml.uml.diagram.UMLMutableGraphSupport | +--org.argouml.uml.diagram.sequence.SequenceDiagramGraphModel
This class defines a bridge between the UML meta-model representation of the design and the GraphModel interface used by GEF. This class handles only UML Sequence Digrams.
Field Summary | |
---|---|
protected MNamespace |
_Sequence
The Sequence / interaction we are diagramming |
protected static Category |
cat
|
Fields inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
---|
_edges, _nodes |
Constructor Summary | |
---|---|
SequenceDiagramGraphModel()
|
Method Summary | |
---|---|
void |
addEdge(java.lang.Object edge)
Add the given edge to the graph, if valid. |
void |
addNode(java.lang.Object node)
Add the given node to the graph, if valid. |
void |
addNodeRelatedEdges(java.lang.Object node)
|
boolean |
canAddEdge(java.lang.Object edge)
Return true if the given object is a valid edge in this graph |
boolean |
canAddNode(java.lang.Object node)
Return true if the given object is a valid node in this graph |
boolean |
canConnect(java.lang.Object fromP,
java.lang.Object toP)
Return true if the two given ports can be connected by a kind of edge to be determined by the ports. |
java.lang.Object |
connect(java.lang.Object fromPort,
java.lang.Object toPort,
java.lang.Class edgeClass)
Contruct and add a new edge of the given kind |
java.lang.Object |
getDestPort(java.lang.Object edge)
Return the other end of an edge |
java.util.Vector |
getEdges()
Return all nodes in the graph |
java.util.Vector |
getInEdges(java.lang.Object port)
Return all edges going to given port |
MNamespace |
getNamespace()
|
java.util.Vector |
getNodes()
Return all nodes in the graph |
java.util.Vector |
getOutEdges(java.lang.Object port)
Return all edges going from given port |
java.lang.Object |
getOwner(java.lang.Object port)
Return the node or edge that owns the given port |
java.util.Vector |
getPorts(java.lang.Object nodeOrEdge)
Return all ports on node or edge |
java.lang.Object |
getSourcePort(java.lang.Object edge)
Return one end of an edge |
void |
setNamespace(MNamespace m)
|
void |
vetoableChange(java.beans.PropertyChangeEvent pce)
|
Methods inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
---|
connect, constainsEdge, containsNode, removeEdge, removeNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Category cat
protected MNamespace _Sequence
Constructor Detail |
public SequenceDiagramGraphModel()
Method Detail |
public MNamespace getNamespace()
public void setNamespace(MNamespace m)
public java.util.Vector getNodes()
getNodes
in class UMLMutableGraphSupport
org.tigris.gef.graph.MutableGraphSupport#getNodes()
public java.util.Vector getEdges()
getEdges
in class UMLMutableGraphSupport
public java.util.Vector getPorts(java.lang.Object nodeOrEdge)
public java.lang.Object getOwner(java.lang.Object port)
public java.util.Vector getInEdges(java.lang.Object port)
public java.util.Vector getOutEdges(java.lang.Object port)
public java.lang.Object getSourcePort(java.lang.Object edge)
public java.lang.Object getDestPort(java.lang.Object edge)
public boolean canAddNode(java.lang.Object node)
public boolean canAddEdge(java.lang.Object edge)
public void addNode(java.lang.Object node)
public void addEdge(java.lang.Object edge)
public void addNodeRelatedEdges(java.lang.Object node)
public boolean canConnect(java.lang.Object fromP, java.lang.Object toP)
canConnect
in class UMLMutableGraphSupport
public java.lang.Object connect(java.lang.Object fromPort, java.lang.Object toPort, java.lang.Class edgeClass)
connect
in class UMLMutableGraphSupport
fromPort
- The originating port to connecttoPort
- The destination port to connectedgeClass
- The NSUML type of edge to create.
edgeClass
if we succeeded,
null
otherwise)public void vetoableChange(java.beans.PropertyChangeEvent pce)
vetoableChange
in interface java.beans.VetoableChangeListener
|
||||||||||||
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 |