org.vrjuggler.vrjconfig.commoneditors.devicegraph
Class ProxiedDeviceCellViewFactory
java.lang.Object
org.jgraph.graph.DefaultCellViewFactory
org.vrjuggler.vrjconfig.commoneditors.devicegraph.ProxiedDeviceCellViewFactory
- All Implemented Interfaces:
- CellViewFactory
public class ProxiedDeviceCellViewFactory
- extends DefaultCellViewFactory
|
Method Summary |
protected VertexView |
createVertexView(Object cell)
Creates a VertexView for the given cell, which is expected
to be for a vertex in the graph. |
void |
registerCreator(ConfigDefinition def,
Class creator)
Pairs up the given ConfigDefinition with the given
Class instance for later creation of custom views for cells
holding ConfigElement objects with the given definition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxiedDeviceCellViewFactory
public ProxiedDeviceCellViewFactory()
ProxiedDeviceCellViewFactory
public ProxiedDeviceCellViewFactory(Map creatorMap)
registerCreator
public void registerCreator(ConfigDefinition def,
Class creator)
- Pairs up the given
ConfigDefinition with the given
Class instance for later creation of custom views for cells
holding ConfigElement objects with the given definition.
The Class instance must be for a type that is a subclass
of org.jgraph.graph.AbstractCellView.
- Parameters:
def - the config definition that will be used for looking
up the Class reference in the view
creation methodscreator - the creator class reference- See Also:
AbstractCellView
createVertexView
protected VertexView createVertexView(Object cell)
- Creates a
VertexView for the given cell, which is expected
to be for a vertex in the graph. If the cell is a type we are expecting
and it holds a user object that we know how to handle, we determine if a
custom renderer has been registered with us for that cell type. If no
custom view is found, we fall back on the superclass version of this
method.
- Overrides:
createVertexView in class DefaultCellViewFactory
- Returns:
- An instance of
VertexView (or a subclass thereof)
for the given cell. - See Also:
VertexView,
DefaultCellViewFactory.createVertexView(Object)
Copyright © 1998–2005 Iowa State University. All rights reserved.