TWE 2.4-1 API

org.enhydra.jawe.components.graph
Class DefaultGraphPort

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jgraph.graph.DefaultGraphCell
          extended byorg.jgraph.graph.DefaultPort
              extended byorg.enhydra.jawe.components.graph.GraphPortInterface
                  extended byorg.enhydra.jawe.components.graph.DefaultGraphPort
All Implemented Interfaces:
java.lang.Cloneable, org.jgraph.graph.GraphCell, javax.swing.tree.MutableTreeNode, org.jgraph.graph.Port, java.io.Serializable, javax.swing.tree.TreeNode

public class DefaultGraphPort
extends GraphPortInterface

Used to define Port object in graph.

Author:
Sasa Bojanic
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
protected  java.lang.String type
           
 
Fields inherited from class org.jgraph.graph.DefaultPort
anchor, edges
 
Fields inherited from class org.jgraph.graph.DefaultGraphCell
attributes
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultGraphPort(java.lang.String name, java.lang.String type)
          Creates activity with given userObject.
 
Method Summary
 GraphActivityInterface getActivity()
           
 java.lang.String getType()
           
 
Methods inherited from class org.jgraph.graph.DefaultPort
addEdge, clone, edges, getAnchor, getEdges, removeEdge, setAnchor, setEdges
 
Methods inherited from class org.jgraph.graph.DefaultGraphCell
changeAttributes, getAttributes, getChildren, setAttributes
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgraph.graph.GraphCell
changeAttributes, getAttributes, setAttributes
 

Field Detail

type

protected java.lang.String type
Constructor Detail

DefaultGraphPort

public DefaultGraphPort(java.lang.String name,
                        java.lang.String type)
Creates activity with given userObject. Also creates default port for holding activity transitions.

Method Detail

getActivity

public GraphActivityInterface getActivity()
Specified by:
getActivity in class GraphPortInterface

getType

public java.lang.String getType()
Specified by:
getType in class GraphPortInterface

TWE 2.4-1 API