com.jgraph.example.mycellview
Class GPCellViewFactory

java.lang.Object
  extended by org.jgraph.graph.DefaultCellViewFactory
      extended by com.jgraph.example.mycellview.GPCellViewFactory
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellViewFactory

public class GPCellViewFactory
extends org.jgraph.graph.DefaultCellViewFactory

A default view factory for a JGraph. This simple factory associate a given cell class to a cell view. This is a javabean, just parameter it correctly in order it meets your requirements (else subclass it or subclass DefaultCellViewFactory). You can also recover the gpConfiguration of that javabean via an XML file via XMLEncoder/XMLDecoder.

Author:
rvalyi, license of this file: LGPL as stated by the Free Software Foundation
See Also:
Serialized Form

Field Summary
static java.lang.String VIEW_CLASS_KEY
           
 
Constructor Summary
GPCellViewFactory()
           
 
Method Summary
static void setViewClass(java.util.Map map, java.lang.String viewClass)
           
 
Methods inherited from class org.jgraph.graph.DefaultCellViewFactory
createView
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_CLASS_KEY

public static final java.lang.String VIEW_CLASS_KEY
See Also:
Constant Field Values
Constructor Detail

GPCellViewFactory

public GPCellViewFactory()
Method Detail

setViewClass

public static final void setViewClass(java.util.Map map,
                                      java.lang.String viewClass)