|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uci.graph.MutableGraphSupport
|
+--uci.uml.visual.UseCaseDiagramGraphModel
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 Use Case Digrams.
| Field Summary | |
protected Vector |
_edges
|
protected Namespace |
_model
The "home" UML model of this diagram, not all ModelElements in this graph are in the home model, but if they are added and don't already have a model, they are placed in the "home model". |
protected Vector |
_nodes
|
| Fields inherited from class uci.graph.MutableGraphSupport |
_graphListeners |
| Constructor Summary | |
UseCaseDiagramGraphModel()
|
|
| 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. |
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)
Contruct and add a new edge of a kind determined by the ports |
Object |
connect(Object fromPort,
Object toPort,
Class edgeClass)
Contruct and add a new edge of the given kind |
Object |
getDestPort(Object edge)
Return the other end of an edge |
Vector |
getEdges()
Return all nodes in the graph |
Vector |
getInEdges(Object port)
Return all edges going to given port |
Namespace |
getNamespace()
|
Vector |
getNodes()
Return all nodes in the graph |
Vector |
getOutEdges(Object port)
Return all edges going from given port |
Object |
getOwner(Object port)
Return the node or edge that owns the given port |
Vector |
getPorts(Object nodeOrEdge)
Return all ports on node or edge |
Object |
getSourcePort(Object edge)
Return one end of an edge |
void |
removeEdge(Object edge)
Remove the given edge from the graph. |
void |
removeNode(Object node)
Remove the given node from the graph. |
void |
setNamespace(Namespace m)
|
void |
vetoableChange(PropertyChangeEvent pce)
|
| Methods inherited from class uci.graph.MutableGraphSupport |
addGraphEventListener,
canConnect,
containsEdge,
containsEdgePort,
containsNode,
containsNodePort,
containsPort,
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 Vector _nodes
protected Vector _edges
protected Namespace _model
| Constructor Detail |
public UseCaseDiagramGraphModel()
| Method Detail |
public Namespace getNamespace()
public void setNamespace(Namespace m)
public Vector getNodes()
public Vector getEdges()
public Vector getPorts(Object nodeOrEdge)
public Object getOwner(Object port)
public Vector getInEdges(Object port)
public Vector getOutEdges(Object port)
public Object getSourcePort(Object edge)
public Object getDestPort(Object edge)
public boolean canAddNode(Object node)
public boolean canAddEdge(Object edge)
public void removeNode(Object node)
public void addNode(Object node)
public void addEdge(Object edge)
public void removeEdge(Object edge)
public boolean canConnect(Object fromP,
Object toP)
public Object connect(Object fromPort,
Object toPort)
public Object connect(Object fromPort,
Object toPort,
Class edgeClass)
public void vetoableChange(PropertyChangeEvent pce)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||