All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgraph.graph.CellMapper Maven / Gradle / Ivy

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