org.argouml.uml.diagram.deployment
Class DeploymentDiagramGraphModel

java.lang.Object
  extended byorg.tigris.gef.graph.MutableGraphSupport
      extended byorg.argouml.uml.diagram.UMLMutableGraphSupport
          extended byorg.argouml.uml.diagram.deployment.DeploymentDiagramGraphModel
All Implemented Interfaces:
org.tigris.gef.graph.BaseGraphModel, java.util.EventListener, org.tigris.gef.graph.GraphModel, org.tigris.gef.graph.MutableGraphModel, java.io.Serializable, java.beans.VetoableChangeListener

public class DeploymentDiagramGraphModel
extends UMLMutableGraphSupport
implements java.beans.VetoableChangeListener

See Also:
Serialized Form

Field Summary
protected  java.lang.Object _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 static org.apache.log4j.Logger cat
           
(package private) static long serialVersionUID
           
 
Fields inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport
_edges, _nodes
 
Fields inherited from class org.tigris.gef.graph.MutableGraphSupport
_graphListeners
 
Constructor Summary
DeploymentDiagramGraphModel()
           
 
Method Summary
 void addEdge(java.lang.Object edge)
          Add the given edge to the graph, if valid.
 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
 java.lang.Object getDestPort(java.lang.Object edge)
          Return the other end of an edge
 java.util.Vector getInEdges(java.lang.Object port)
          Return all edges going to given port
 java.lang.Object getNamespace()
          get the homemodel.
 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 setNamespace(java.lang.Object namespace)
          set the homemodel.
 void vetoableChange(java.beans.PropertyChangeEvent pce)
           
 
Methods inherited from class org.argouml.uml.diagram.UMLMutableGraphSupport
canConnect, connect, connect, constainsEdge, containsNode, getEdges, getNodes, 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

cat

protected static org.apache.log4j.Logger cat

_model

protected java.lang.Object _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". Also, elements from other models will have their FigNodes add a line to say what their model is.


serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DeploymentDiagramGraphModel

public DeploymentDiagramGraphModel()
Method Detail

getNamespace

public java.lang.Object getNamespace()
get the homemodel.


setNamespace

public void setNamespace(java.lang.Object namespace)
set the homemodel.


getPorts

public java.util.Vector getPorts(java.lang.Object nodeOrEdge)
Return all ports on node or edge

Specified by:
getPorts in interface org.tigris.gef.graph.GraphModel

getOwner

public java.lang.Object getOwner(java.lang.Object port)
Return the node or edge that owns the given port

Specified by:
getOwner in interface org.tigris.gef.graph.BaseGraphModel

getInEdges

public java.util.Vector getInEdges(java.lang.Object port)
Return all edges going to given port

Specified by:
getInEdges in interface org.tigris.gef.graph.GraphModel

getOutEdges

public java.util.Vector getOutEdges(java.lang.Object port)
Return all edges going from given port

Specified by:
getOutEdges in interface org.tigris.gef.graph.GraphModel

getSourcePort

public java.lang.Object getSourcePort(java.lang.Object edge)
Return one end of an edge

Specified by:
getSourcePort in interface org.tigris.gef.graph.BaseGraphModel

getDestPort

public java.lang.Object getDestPort(java.lang.Object edge)
Return the other end of an edge

Specified by:
getDestPort in interface org.tigris.gef.graph.BaseGraphModel

canAddNode

public boolean canAddNode(java.lang.Object node)
Return true if the given object is a valid node in this graph

Specified by:
canAddNode in interface org.tigris.gef.graph.MutableGraphModel

canAddEdge

public boolean canAddEdge(java.lang.Object edge)
Return true if the given object is a valid edge in this graph

Specified by:
canAddEdge in interface org.tigris.gef.graph.MutableGraphModel

addNode

public void addNode(java.lang.Object node)
Add the given node to the graph, if valid.

Specified by:
addNode in interface org.tigris.gef.graph.MutableGraphModel

addEdge

public void addEdge(java.lang.Object edge)
Add the given edge to the graph, if valid.

Specified by:
addEdge in interface org.tigris.gef.graph.MutableGraphModel

addNodeRelatedEdges

public void addNodeRelatedEdges(java.lang.Object node)
Specified by:
addNodeRelatedEdges in interface org.tigris.gef.graph.MutableGraphModel

vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent pce)
Specified by:
vetoableChange in interface java.beans.VetoableChangeListener


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook