easik.sketch.util.graph
Class ExtendableCellViewFactory.CellViewMapping

java.lang.Object
  extended by easik.sketch.util.graph.ExtendableCellViewFactory.CellViewMapping
Enclosing class:
ExtendableCellViewFactory

private static class ExtendableCellViewFactory.CellViewMapping
extends java.lang.Object

A mapping of cell classes to view classes. An instance of this class is added through the addCellType(Class, Class) method. When a cell is to be rendered, the view type associated with it through an object of this class is used.

Since:
2006-05-23 William Belanger
Version:
2006-05-23 William Belanger
Author:
code taken from an example that comes with JGraph

Field Summary
private  java.lang.Class cellClass
          The cell class
private  java.lang.Class viewClass
          The view class
 
Constructor Summary
private ExtendableCellViewFactory.CellViewMapping()
           
 
Method Summary
 java.lang.Class getCellClass()
           
 java.lang.Class getViewClass()
           
 void setCellClass(java.lang.Class c)
          Sets the class of the cell.
 void setViewClass(java.lang.Class v)
          Sets the class of the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellClass

private java.lang.Class cellClass
The cell class


viewClass

private java.lang.Class viewClass
The view class

Constructor Detail

ExtendableCellViewFactory.CellViewMapping

private ExtendableCellViewFactory.CellViewMapping()
Method Detail

getCellClass

public java.lang.Class getCellClass()
Returns:
The class of the cell.

setCellClass

public void setCellClass(java.lang.Class c)
Sets the class of the cell.

Parameters:
c - The class to set the cell as having.

getViewClass

public java.lang.Class getViewClass()
Returns:
The class of the view.

setViewClass

public void setViewClass(java.lang.Class v)
Sets the class of the view.

Parameters:
v - The class to set the view as having.