com.jgraph.example.fastgraph
Class FastCellViewFactory

java.lang.Object
  extended by com.jgraph.example.fastgraph.FastCellViewFactory
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellViewFactory

public class FastCellViewFactory
extends java.lang.Object
implements org.jgraph.graph.CellViewFactory, java.io.Serializable

The implementation of a cell view factory that allows for ports also being vertices

See Also:
Serialized Form

Constructor Summary
FastCellViewFactory()
           
 
Method Summary
 org.jgraph.graph.CellView createView(org.jgraph.graph.GraphModel model, java.lang.Object cell)
          Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastCellViewFactory

public FastCellViewFactory()
Method Detail

createView

public org.jgraph.graph.CellView createView(org.jgraph.graph.GraphModel model,
                                            java.lang.Object cell)
Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper. This calls refresh on the created CellView to create all dependent views.

Note: The mapping needs to be available before the views of child cells and ports are created. Note: This method must return new instances!

Specified by:
createView in interface org.jgraph.graph.CellViewFactory
Parameters:
cell - reference to the object in the model