Class BlockingRegion
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
jsimgraph.JGraphMod.BlockingRegion
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, org.jgraph.graph.GraphCell
public class BlockingRegion
extends org.jgraph.graph.DefaultGraphCell
Title: Blocking Region Component
Description: This component is used to describe a blocking region inside a graph.
- Author:
- Bertoli Marco Date: 23-mar-2006 Time: 14.15.00
- See Also:
-
Field Summary
Fields inherited from class org.jgraph.graph.DefaultGraphCell
attributesFields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionBlockingRegion(Mediator mediator, Object key) Creates a new blocking region cell to be placed inside current graph -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStations(Object[] cells) Adds a list of station to this blocking region and inserts this into current graphgetKey()Return search's key for this componenttoString()Whenever name of this cell is asked, controls if displayed name is correct.Methods inherited from class org.jgraph.graph.DefaultGraphCell
addPort, addPort, addPort, changeAttributes, clone, getAttributes, getChildren, setAttributesMethods inherited from class 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
-
Constructor Details
-
BlockingRegion
-
-
Method Details
-
addStations
Adds a list of station to this blocking region and inserts this into current graph- Parameters:
cells- cells to be added
-
getKey
Return search's key for this component- Returns:
- search's key for this blocking region
-
toString
Whenever name of this cell is asked, controls if displayed name is correct. if it is not, changes it. This is a bit dirty but avoids to add a special listener to this component that will be even more dirty.- Overrides:
toStringin classDefaultMutableTreeNode- Returns:
- an empty String
-