org.jgraph.graph.CellMapper Interface Reference

Inheritance diagram for org.jgraph.graph.CellMapper:

org.jgraph.graph.GraphContext org.jgraph.graph.GraphLayoutCache List of all members.

Public Member Functions

CellView getMapping (Object cell, boolean create)
void putMapping (Object cell, CellView view)

Detailed Description

Defines the requirements for objects that may be used as a cell mapper. A cell mapper is able to return the view of a cell, given a reference to that cell object. It is basically a cell to cell view mapping


Member Function Documentation

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

Returns the view that is associated with cell.

Parameters:
create whether a new view should created if a view does not already exist

Implemented in org.jgraph.graph.GraphContext, and org.jgraph.graph.GraphLayoutCache.

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

Inserts the association between cell and view.

Parameters:
cell the cell that constitutes the model element
view the view that constitutes the view element

Implemented in org.jgraph.graph.GraphContext, and org.jgraph.graph.GraphLayoutCache.


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