Package org.jgraph.graph
Class DefaultCellViewFactory
- java.lang.Object
-
- org.jgraph.graph.DefaultCellViewFactory
-
- All Implemented Interfaces:
java.io.Serializable
,CellViewFactory
public class DefaultCellViewFactory extends java.lang.Object implements CellViewFactory, java.io.Serializable
The default implementation of a cell view factory that returns the default views for vertices, edges and ports.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCellViewFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected EdgeView
createEdgeView(java.lang.Object cell)
Constructs an EdgeView view for the specified object.protected EdgeView
createEdgeView(Edge cell)
Deprecated.replaced bycreateEdgeView(Object)
since JGraph no longer exposes dependecies on GraphCell subclasses (Port, Edge)protected PortView
createPortView(java.lang.Object cell)
Constructs a PortView view for the specified object.protected PortView
createPortView(Port cell)
Deprecated.replaced bycreatePortView(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.
-
-
-
Method Detail
-
createView
public 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. 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 interfaceCellViewFactory
- Parameters:
cell
- reference to the object in the model
-
createVertexView
protected VertexView createVertexView(java.lang.Object cell)
Constructs a VertexView view for the specified object.
-
createEdgeView
protected EdgeView createEdgeView(java.lang.Object cell)
Constructs an EdgeView view for the specified object.
-
createPortView
protected PortView createPortView(java.lang.Object cell)
Constructs a PortView view for the specified object.
-
createEdgeView
protected EdgeView createEdgeView(Edge cell)
Deprecated.replaced bycreateEdgeView(Object)
since JGraph no longer exposes dependecies on GraphCell subclasses (Port, Edge)Constructs an EdgeView view for the specified object.
-
createPortView
protected PortView createPortView(Port cell)
Deprecated.replaced bycreatePortView(Object)
since JGraph no longer exposes dependecies on GraphCell subclasses (Port, Edge)Constructs a PortView view for the specified object.
-
-