com.jgraph.example.mycellview
Class GPCellViewFactory
java.lang.Object
org.jgraph.graph.DefaultCellViewFactory
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
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 |
VIEW_CLASS_KEY
public static final java.lang.String VIEW_CLASS_KEY
- See Also:
- Constant Field Values
GPCellViewFactory
public GPCellViewFactory()
setViewClass
public static final void setViewClass(java.util.Map map,
java.lang.String viewClass)