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:
  • Constructor Details

    • BlockingRegion

      public BlockingRegion(Mediator mediator, Object key)
      Creates a new blocking region cell to be placed inside current graph
      Parameters:
      mediator - reference to current mediator
      key - search's key for this region
  • Method Details

    • addStations

      public void addStations(Object[] cells)
      Adds a list of station to this blocking region and inserts this into current graph
      Parameters:
      cells - cells to be added
    • getKey

      public Object getKey()
      Return search's key for this component
      Returns:
      search's key for this blocking region
    • toString

      public String 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:
      toString in class DefaultMutableTreeNode
      Returns:
      an empty String