|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tigris.gef.graph.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.
| Nested Class Summary | |
private class |
SequenceDiagramGraphModel.CanConnectCallActionCmd
|
private class |
SequenceDiagramGraphModel.CanConnectCmd
|
private class |
SequenceDiagramGraphModel.CanConnectCreateActionCmd
|
private class |
SequenceDiagramGraphModel.CanConnectDestroyActionCmd
|
private class |
SequenceDiagramGraphModel.CanConnectReturnActionCmd
|
| Field Summary | |
private java.lang.Object |
_collaboration
The collaboration this sequence diagram belongs too. |
private java.lang.Object |
_interaction
The interaction that is shown on the sequence diagram |
protected static org.apache.log4j.Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
| Fields inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
_edges, _nodes |
| Fields inherited from class org.tigris.gef.graph.MutableGraphSupport |
_graphListeners |
| Constructor Summary | |
SequenceDiagramGraphModel(java.lang.Object collaboration)
Default constructor. |
|
| Method Summary | |
void |
addEdge(java.lang.Object edge)
Adds an edge to the model if this is allowed. |
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)
Creates a link based on the given from and toPort. |
java.lang.Object |
getCollaboration()
Gets the collaboration that is shown on the sequence diagram. |
java.lang.Object |
getDestPort(java.lang.Object edge)
Return the other end of an edge |
java.util.Vector |
getEdges()
Return all edges in the graph |
java.util.Vector |
getInEdges(java.lang.Object port)
Return all edges going to given port |
private java.lang.Object |
getInteraction()
|
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 |
setCollaboration(java.lang.Object collaboration)
Sets the collaboration that is shown at the sequence diagram. |
void |
vetoableChange(java.beans.PropertyChangeEvent pce)
|
| Methods inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
connect, constainsEdge, containsNode, removeEdge, removeNode |
| Methods inherited from class org.tigris.gef.graph.MutableGraphSupport |
addGraphEventListener, canChangeConnectedNode, canConnect, canDragNode, changeConnectedNode, containsEdge, containsEdgePort, containsNodePort, containsPort, createNode, dragNode, fireEdgeAdded, fireEdgeRemoved, fireGraphChanged, fireNodeAdded, fireNodeRemoved, getGraphListeners, removeGraphEventListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Logger cat
private java.lang.Object _collaboration
private java.lang.Object _interaction
| Constructor Detail |
public SequenceDiagramGraphModel(java.lang.Object collaboration)
| Method Detail |
public java.util.Vector getNodes()
getNodes in interface org.tigris.gef.graph.GraphModelgetNodes in class UMLMutableGraphSupportGraphModel.getNodes()public java.util.Vector getEdges()
getEdges in interface org.tigris.gef.graph.GraphModelgetEdges in class UMLMutableGraphSupportpublic java.util.Vector getPorts(java.lang.Object nodeOrEdge)
getPorts in interface org.tigris.gef.graph.GraphModelpublic java.lang.Object getOwner(java.lang.Object port)
getOwner in interface org.tigris.gef.graph.BaseGraphModelpublic java.util.Vector getInEdges(java.lang.Object port)
getInEdges in interface org.tigris.gef.graph.GraphModelpublic java.util.Vector getOutEdges(java.lang.Object port)
getOutEdges in interface org.tigris.gef.graph.GraphModelpublic java.lang.Object getSourcePort(java.lang.Object edge)
getSourcePort in interface org.tigris.gef.graph.BaseGraphModelpublic java.lang.Object getDestPort(java.lang.Object edge)
getDestPort in interface org.tigris.gef.graph.BaseGraphModelpublic boolean canAddNode(java.lang.Object node)
canAddNode in interface org.tigris.gef.graph.MutableGraphModelpublic boolean canAddEdge(java.lang.Object edge)
canAddEdge in interface org.tigris.gef.graph.MutableGraphModelpublic void addNode(java.lang.Object node)
addNode in interface org.tigris.gef.graph.MutableGraphModelpublic void addEdge(java.lang.Object edge)
addEdge in interface org.tigris.gef.graph.MutableGraphModelMutableGraphModel.addEdge(java.lang.Object)public void addNodeRelatedEdges(java.lang.Object node)
addNodeRelatedEdges in interface org.tigris.gef.graph.MutableGraphModel
public boolean canConnect(java.lang.Object fromP,
java.lang.Object toP)
canConnect in interface org.tigris.gef.graph.MutableGraphModelcanConnect in class UMLMutableGraphSupport
public java.lang.Object connect(java.lang.Object fromPort,
java.lang.Object toPort,
java.lang.Class edgeClass)
connect in interface org.tigris.gef.graph.MutableGraphModelconnect in class UMLMutableGraphSupportfromPort - The originating port to connecttoPort - The destination port to connectedgeClass - The NSUML type of edge to create.
edgeClass if we succeeded,
null otherwise)MutableGraphModel.connect(
Object, Object, Class)public void vetoableChange(java.beans.PropertyChangeEvent pce)
vetoableChange in interface java.beans.VetoableChangeListenerpublic java.lang.Object getCollaboration()
public void setCollaboration(java.lang.Object collaboration)
collaboration - private java.lang.Object getInteraction()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |