public class MyCellViewFactory
extends org.jgraph.graph.DefaultCellViewFactory
implements org.jgraph.graph.CellViewFactory
Constructor and Description |
---|
MyCellViewFactory() |
Modifier and Type | Method and Description |
---|---|
protected org.jgraph.graph.EdgeView |
createEdgeView(java.lang.Object cell)
Constructs an EdgeView view for the specified object.
|
protected org.jgraph.graph.PortView |
createPortView(java.lang.Object cell)
Constructs a PortView view for the specified object.
|
protected org.jgraph.graph.VertexView |
createVertexView(java.lang.Object cell)
Constructs a VertexView view for the specified object.
|
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.
|
public org.jgraph.graph.CellView createView(org.jgraph.graph.GraphModel model, java.lang.Object cell)
org.jgraph.graph.DefaultCellViewFactory
Note: The mapping needs to be available before the views of child cells and ports are created. Note: This method must return new instances!
createView
in interface org.jgraph.graph.CellViewFactory
createView
in class org.jgraph.graph.DefaultCellViewFactory
cell
- reference to the object in the modelprotected org.jgraph.graph.VertexView createVertexView(java.lang.Object cell)
org.jgraph.graph.DefaultCellViewFactory
createVertexView
in class org.jgraph.graph.DefaultCellViewFactory
protected org.jgraph.graph.EdgeView createEdgeView(java.lang.Object cell)
org.jgraph.graph.DefaultCellViewFactory
createEdgeView
in class org.jgraph.graph.DefaultCellViewFactory
protected org.jgraph.graph.PortView createPortView(java.lang.Object cell)
org.jgraph.graph.DefaultCellViewFactory
createPortView
in class org.jgraph.graph.DefaultCellViewFactory