|
||||||||||||
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
UMLMutableGraphSupport is a helper class which extends MutableGraphSupport to provide additional helper and common methods for UML Diagrams.
Field Summary | |
---|---|
protected java.util.Vector |
_edges
constains all the edges in the graphmodel/diagram. |
protected java.util.Vector |
_nodes
contains all the nodes in the graphmodel/diagram. |
protected static Category |
cat
|
Constructor Summary | |
---|---|
UMLMutableGraphSupport()
constructor. |
Method Summary | |
---|---|
boolean |
canConnect(java.lang.Object fromP,
java.lang.Object toP)
Assume that anything can be connected to anything unless overridden in a subclass. |
java.lang.Object |
connect(java.lang.Object fromPort,
java.lang.Object toPort)
The connect method without specifying a connection type is unavailable by default |
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 and connect the given ports. |
boolean |
constainsEdge(java.lang.Object edge)
|
boolean |
containsNode(java.lang.Object node)
|
java.util.Vector |
getEdges()
get all the edges from the graphmodel/diagram |
java.util.Vector |
getNodes()
get all the nodes from the graphmodel/diagram |
void |
removeEdge(java.lang.Object edge)
remove an edge from the graphmodel and notify GEF |
void |
removeNode(java.lang.Object node)
remove a node from the diagram and notify GEF |
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 java.util.Vector _nodes
protected java.util.Vector _edges
Constructor Detail |
public UMLMutableGraphSupport()
org.tigris.gef.graph.MutableGraphSupport
Method Detail |
public java.util.Vector getNodes()
org.tigris.gef.graph.MutableGraphSupport#getNodes()
public java.util.Vector getEdges()
public boolean containsNode(java.lang.Object node)
public boolean constainsEdge(java.lang.Object edge)
public void removeNode(java.lang.Object node)
node
- node to removepublic void removeEdge(java.lang.Object edge)
edge
- edge to removepublic boolean canConnect(java.lang.Object fromP, java.lang.Object toP)
public java.lang.Object connect(java.lang.Object fromPort, java.lang.Object toPort)
public java.lang.Object connect(java.lang.Object fromPort, java.lang.Object toPort, java.lang.Class edgeClass)
fromPort
- The originating port to connecttoPort
- The destination port to connectedgeClass
- The NSUML type of edge to create.
edgeClass
if we succeeded,
null
otherwise)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |