uk.ac.essex.ia.graph.jgraph
Class IAPort

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.jgraph.graph.DefaultGraphCell
          extended by com.jgraph.graph.DefaultPort
              extended by uk.ac.essex.ia.graph.jgraph.IAPort
All Implemented Interfaces:
com.jgraph.graph.GraphCell, com.jgraph.graph.Port, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
IASourcePort, IATargetPort

public abstract class IAPort
extends com.jgraph.graph.DefaultPort

Abstract port class to provide some common functions not provided by DefaultPort
Date: 15-Jul-2002

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jgraph.graph.DefaultGraphCell
com.jgraph.graph.DefaultGraphCell.ValueChangeHandler
 
Field Summary
 
Fields inherited from class com.jgraph.graph.DefaultPort
anchor, edges
 
Fields inherited from class com.jgraph.graph.DefaultGraphCell
attributes
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
IAPort()
           
IAPort(java.lang.Object userObject)
           
IAPort(java.lang.Object userObject, com.jgraph.graph.Port anchor)
           
 
Method Summary
 boolean add(java.lang.Object edge)
          Adds edge to the list of ports.
 boolean hasEdges()
           
 boolean remove(java.lang.Object edge)
          Removes edge from the list of ports.
 
Methods inherited from class com.jgraph.graph.DefaultPort
clone, edges, getAnchor, getEdges, setAnchor, setEdges
 
Methods inherited from class com.jgraph.graph.DefaultGraphCell
cloneUserObject, getAttributes, getChildren, setAttributes, setUserObject
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jgraph.graph.GraphCell
getAttributes, setAttributes
 

Constructor Detail

IAPort

public IAPort()

IAPort

public IAPort(java.lang.Object userObject)

IAPort

public IAPort(java.lang.Object userObject,
              com.jgraph.graph.Port anchor)
Method Detail

add

public boolean add(java.lang.Object edge)
Adds edge to the list of ports.

Specified by:
add in interface com.jgraph.graph.Port
Overrides:
add in class com.jgraph.graph.DefaultPort

remove

public boolean remove(java.lang.Object edge)
Removes edge from the list of ports.

Specified by:
remove in interface com.jgraph.graph.Port
Overrides:
remove in class com.jgraph.graph.DefaultPort

hasEdges

public boolean hasEdges()
Returns:
true if ths port has any edges attached to it, false otherwise