|
|||||||||||
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 Object |
collaboration
The collaboration this sequence diagram belongs too. |
private Object |
interaction
The interaction that is shown on the sequence diagram |
private static Logger |
LOG
Logger. |
Fields inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
|
Fields inherited from class org.tigris.gef.graph.MutableGraphSupport |
|
Constructor Summary | |
SequenceDiagramGraphModel(Object c)
Default constructor. |
Method Summary | |
void |
addEdge(Object edge)
Adds an edge to the model if this is allowed. |
void |
addNode(Object node)
Add the given node to the graph, if valid. |
void |
addNodeRelatedEdges(Object node)
|
boolean |
canAddEdge(Object edge)
Return true if the given object is a valid edge in this graph. |
boolean |
canAddNode(Object node)
Return true if the given object is a valid node in this graph. |
boolean |
canConnect(Object fromP,
Object toP)
Return true if the two given ports can be connected by a kind of edge to be determined by the ports. |
Object |
connect(Object fromPort,
Object toPort,
Class edgeType)
Creates a link based on the given from and toPort. |
Object |
getCollaboration()
Gets the collaboration that is shown on the sequence diagram. |
List |
getEdges()
Return all edges in the graph. |
List |
getInEdges(Object port)
Return all edges going to given port. |
private Object |
getInteraction()
|
Object |
getNamespace()
|
List |
getNodes()
Return all nodes in the graph. |
List |
getOutEdges(Object port)
Return all edges going from given port. |
Object |
getOwner(Object port)
Return the node or edge that owns the given port. |
List |
getPorts(Object nodeOrEdge)
Return all ports on node or edge. |
void |
setCollaboration(Object c)
Sets the collaboration that is shown at the sequence diagram. |
void |
vetoableChange(PropertyChangeEvent pce)
|
Methods inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
buildCommentConnection, buildConnection, connect, constainsEdge, containsNode, getDestPort, getSourcePort, isConnectionValid, 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, getConnectionConstrainer, getGraphListeners, removeAll, removeAllEdges, removeAllNodes, removeFig, removeGraphEventListener, setConnectionConstrainer, setSaveAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private Object collaboration
private Object interaction
Constructor Detail |
public SequenceDiagramGraphModel(Object c)
c
- the collaborationMethod Detail |
public List getNodes()
getNodes
in interface org.tigris.gef.graph.GraphModel
getNodes
in class UMLMutableGraphSupport
GraphModel.getNodes()
public List getEdges()
getEdges
in interface org.tigris.gef.graph.GraphModel
getEdges
in class UMLMutableGraphSupport
GraphModel.getEdges()
public List getPorts(Object nodeOrEdge)
getPorts
in interface org.tigris.gef.graph.GraphModel
GraphModel.getPorts(java.lang.Object)
public Object getOwner(Object port)
getOwner
in interface org.tigris.gef.graph.BaseGraphModel
BaseGraphModel.getOwner(java.lang.Object)
public List getInEdges(Object port)
getInEdges
in interface org.tigris.gef.graph.GraphModel
GraphModel.getInEdges(java.lang.Object)
public List getOutEdges(Object port)
getOutEdges
in interface org.tigris.gef.graph.GraphModel
GraphModel.getOutEdges(java.lang.Object)
public boolean canAddNode(Object node)
canAddNode
in interface org.tigris.gef.graph.MutableGraphModel
canAddNode
in class UMLMutableGraphSupport
MutableGraphModel.canAddNode(java.lang.Object)
public boolean canAddEdge(Object edge)
canAddEdge
in interface org.tigris.gef.graph.MutableGraphModel
canAddEdge
in class UMLMutableGraphSupport
MutableGraphModel.canAddEdge(java.lang.Object)
public void addNode(Object node)
addNode
in interface org.tigris.gef.graph.MutableGraphModel
MutableGraphModel.addNode(java.lang.Object)
public void addEdge(Object edge)
addEdge
in interface org.tigris.gef.graph.MutableGraphModel
MutableGraphModel.addEdge(java.lang.Object)
public void addNodeRelatedEdges(Object node)
addNodeRelatedEdges
in interface org.tigris.gef.graph.MutableGraphModel
addNodeRelatedEdges
in class UMLMutableGraphSupport
MutableGraphModel.addNodeRelatedEdges(java.lang.Object)
public boolean canConnect(Object fromP, Object toP)
canConnect
in interface org.tigris.gef.graph.MutableGraphModel
canConnect
in class UMLMutableGraphSupport
MutableGraphModel.canConnect(
java.lang.Object, java.lang.Object)
public Object connect(Object fromPort, Object toPort, Class edgeType)
connect
in interface org.tigris.gef.graph.MutableGraphModel
connect
in class UMLMutableGraphSupport
fromPort
- The originating port to connecttoPort
- The destination port to connectedgeType
- The NSUML type of edge to create.
edgeClass
if we succeeded,
null
otherwise)MutableGraphModel.connect(
Object, Object, Class)
public void vetoableChange(PropertyChangeEvent pce)
vetoableChange
in interface VetoableChangeListener
VetoableChangeListener.vetoableChange(java.beans.PropertyChangeEvent)
public Object getCollaboration()
public void setCollaboration(Object c)
c
- the collaborationprivate Object getInteraction()
public Object getNamespace()
getNamespace
in class UMLMutableGraphSupport
UMLMutableGraphSupport.getNamespace()
|
|||||||||||
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 |