org.jgraph.graph.CellMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingeniasjgraphmod Show documentation
Show all versions of ingeniasjgraphmod Show documentation
A modified version of some JGraph files
The newest version!
/*
* @(#)CellMapper.java 1.0 03-JUL-04
*
* Copyright (c) 2001-2005 Gaudenz Alder
*
*/
package org.jgraph.graph;
/**
* 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
*/
public interface CellMapper {
/**
* Returns the view that is associated with cell
.
*
* @param create
* whether a new view should created if a view does not already
* exist
*/
CellView getMapping(Object cell, boolean create);
/**
* Inserts the association between cell
and view
.
*
* @param cell
* the cell that constitutes the model element
* @param view
* the view that constitutes the view element
*/
void putMapping(Object cell, CellView view);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy