public class DefaultCellViewFactory extends java.lang.Object implements CellViewFactory, java.io.Serializable
Constructor and Description |
---|
DefaultCellViewFactory() |
Modifier and Type | Method and Description |
---|---|
protected EdgeView |
createEdgeView(Edge cell)
Deprecated.
replaced by
createEdgeView(Object) since
JGraph no longer exposes dependecies on GraphCell subclasses
(Port, Edge) |
protected EdgeView |
createEdgeView(java.lang.Object cell)
Constructs an EdgeView view for the specified object.
|
protected PortView |
createPortView(java.lang.Object cell)
Constructs a PortView view for the specified object.
|
protected PortView |
createPortView(Port cell)
Deprecated.
replaced by
createPortView(Object) since
JGraph no longer exposes dependecies on GraphCell subclasses
(Port, Edge) |
protected VertexView |
createVertexView(java.lang.Object cell)
Constructs a VertexView view for the specified object.
|
CellView |
createView(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 CellView createView(GraphModel model, java.lang.Object cell)
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 CellViewFactory
cell
- reference to the object in the modelprotected VertexView createVertexView(java.lang.Object cell)
protected EdgeView createEdgeView(java.lang.Object cell)
protected PortView createPortView(java.lang.Object cell)
protected EdgeView createEdgeView(Edge cell)
createEdgeView(Object)
since
JGraph no longer exposes dependecies on GraphCell subclasses
(Port, Edge)protected PortView createPortView(Port cell)
createPortView(Object)
since
JGraph no longer exposes dependecies on GraphCell subclasses
(Port, Edge)Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.