|
|||||||||||
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.collaboration.CollabDiagramGraphModel
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 Collaboration Diagrams.
Field Summary | |
private Object |
collab
The collaboration / interaction we are diagramming |
private Object |
interaction
|
private static Logger |
LOG
|
Fields inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
|
Fields inherited from class org.tigris.gef.graph.MutableGraphSupport |
|
Constructor Summary | |
CollabDiagramGraphModel()
|
Method Summary | |
void |
addEdge(Object edge)
Add the given edge to the graph, if valid. |
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 |
getCollaboration()
|
List |
getInEdges(Object port)
Return all edges going to given port |
Object |
getNamespace()
|
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 collaboration)
|
void |
vetoableChange(PropertyChangeEvent pce)
|
Methods inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport |
buildCommentConnection, buildConnection, connect, connect, constainsEdge, containsNode, getDestPort, getEdges, getNodes, 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 collab
private Object interaction
Constructor Detail |
public CollabDiagramGraphModel()
Method Detail |
public Object getNamespace()
getNamespace
in class UMLMutableGraphSupport
UMLMutableGraphSupport.getNamespace()
public void setCollaboration(Object collaboration)
collaboration
- the collaboration to be set for this diagrampublic 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 void vetoableChange(PropertyChangeEvent pce)
vetoableChange
in interface VetoableChangeListener
VetoableChangeListener.vetoableChange(java.beans.PropertyChangeEvent)
public Object getCollaboration()
|
|||||||||||
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 |