org.jgraph.graph.GraphContext Class Reference

Inheritance diagram for org.jgraph.graph.GraphContext:

org.jgraph.graph.CellMapper List of all members.

Public Member Functions

 GraphContext (JGraph graph, Object[] cells)
boolean isEmpty ()
int getDescendantCount ()
JGraph getGraph ()
Object[] getCells ()
boolean contains (Object node)
CellView[] createTemporaryCellViews ()
CellView[] createTemporaryPortViews ()
CellView[] createTemporaryContextViews ()
CellView[] createTemporaryContextViews (Set cellSet)
CellView getMapping (Object cell, boolean create)
CellView createMapping (Object cell)
ConnectionSet disconnect (CellView[] cells)
void putMapping (Object cell, CellView view)

Protected Attributes

JGraph graph
transient GraphLayoutCache graphLayoutCache
Object[] cells
Set allCells
Set cellSet
int cellCount
Map views = new Hashtable()

Constructor & Destructor Documentation

org.jgraph.graph.GraphContext.GraphContext JGraph  graph,
Object[]  cells
 

Constructs a graph context for cells with respect to the connections defined in the model, and the views in the view of graph.


Member Function Documentation

boolean org.jgraph.graph.GraphContext.contains Object  node  ) 
 

Returns true if node or one of its ancestors is contained in this object and visible in the original graph.

CellView org.jgraph.graph.GraphContext.createMapping Object  cell  ) 
 

CellView [] org.jgraph.graph.GraphContext.createTemporaryCellViews  ) 
 

Returns an new consistent array of views for cells.

CellView [] org.jgraph.graph.GraphContext.createTemporaryContextViews Set  cellSet  ) 
 

Returns an new consistent array of views for the edges that are connected to and not contained in cellSet.

CellView [] org.jgraph.graph.GraphContext.createTemporaryContextViews  ) 
 

Returns an new consistent array of views for the edges that are connected to and not contained in cells.

CellView [] org.jgraph.graph.GraphContext.createTemporaryPortViews  ) 
 

Returns an new consistent array of views for the ports.

ConnectionSet org.jgraph.graph.GraphContext.disconnect CellView[]  cells  ) 
 

Disconnects the edges in cells from the sources and targets that are not in this context and returns a ConnectionSet that defines the disconnection.

Object [] org.jgraph.graph.GraphContext.getCells  ) 
 

Returns the array that was passed to the constructor.

int org.jgraph.graph.GraphContext.getDescendantCount  ) 
 

Returns the number of all objects (cells and children) in this object.

JGraph org.jgraph.graph.GraphContext.getGraph  ) 
 

Returns the graph that was passed to the constructor.

CellView org.jgraph.graph.GraphContext.getMapping Object  cell,
boolean  create
 

Returns the CellView that is mapped to cell in the graph context. New views are created based on whether cell is contained in the context. The create-flag is ignored.

Implements org.jgraph.graph.CellMapper.

boolean org.jgraph.graph.GraphContext.isEmpty  ) 
 

Returns true if this object contains no cells.

void org.jgraph.graph.GraphContext.putMapping Object  cell,
CellView  view
 

Associates cell with view in the graph context.

Implements org.jgraph.graph.CellMapper.


Member Data Documentation

Set org.jgraph.graph.GraphContext.allCells [protected]
 

Set of all cells including all descendants.

int org.jgraph.graph.GraphContext.cellCount [protected]
 

Number of all descendants without ports.

Object [] org.jgraph.graph.GraphContext.cells [protected]
 

Reference to the cells.

Set org.jgraph.graph.GraphContext.cellSet [protected]
 

JGraph org.jgraph.graph.GraphContext.graph [protected]
 

Reference to the parent graph.

transient GraphLayoutCache org.jgraph.graph.GraphContext.graphLayoutCache [protected]
 

Reference to the graphs GraphLayoutCache.

Map org.jgraph.graph.GraphContext.views = new Hashtable() [protected]
 

Map of (cell, view) pairs including ports.


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:16 2006 for Digimod by  doxygen 1.4.6-NO