Package org.jgraph.graph
Interface CellMapper
-
- All Known Implementing Classes:
GraphContext,GraphLayoutCache
public interface CellMapperDefines 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CellViewgetMapping(java.lang.Object cell, boolean create)Returns the view that is associated withcell.voidputMapping(java.lang.Object cell, CellView view)Inserts the association betweencellandview.
-
-
-
Method Detail
-
getMapping
CellView getMapping(java.lang.Object cell, boolean create)
Returns the view that is associated withcell.- Parameters:
create- whether a new view should created if a view does not already exist
-
putMapping
void putMapping(java.lang.Object cell, CellView view)Inserts the association betweencellandview.- Parameters:
cell- the cell that constitutes the model elementview- the view that constitutes the view element
-
-