org.jgraph.graph

Class DefaultCellViewFactory

public class DefaultCellViewFactory extends Object implements CellViewFactory, Serializable

The default implementation of a cell view factory that returns the default views for vertices, edges and ports.
Method Summary
protected EdgeViewcreateEdgeView(Object cell)
Constructs an EdgeView view for the specified object.
protected EdgeViewcreateEdgeView(Edge cell)
Constructs an EdgeView view for the specified object.
protected PortViewcreatePortView(Object cell)
Constructs a PortView view for the specified object.
protected PortViewcreatePortView(Port cell)
Constructs a PortView view for the specified object.
protected VertexViewcreateVertexView(Object cell)
Constructs a VertexView view for the specified object.
CellViewcreateView(GraphModel model, Object cell)
Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper.

Method Detail

createEdgeView

protected EdgeView createEdgeView(Object cell)
Constructs an EdgeView view for the specified object.

createEdgeView

protected EdgeView createEdgeView(Edge cell)

Deprecated: replaced by createEdgeViewsince JGraph no longer exposes dependecies on GraphCell subclasses (Port, Edge)

Constructs an EdgeView view for the specified object.

createPortView

protected PortView createPortView(Object cell)
Constructs a PortView view for the specified object.

createPortView

protected PortView createPortView(Port cell)

Deprecated: replaced by createPortViewsince JGraph no longer exposes dependecies on GraphCell subclasses (Port, Edge)

Constructs a PortView view for the specified object.

createVertexView

protected VertexView createVertexView(Object cell)
Constructs a VertexView view for the specified object.

createView

public CellView createView(GraphModel model, 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!

Parameters: cell reference to the object in the model

Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.