VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.devicegraph
Class ProxiedDeviceCellViewFactory

java.lang.Object
  extended by org.jgraph.graph.DefaultCellViewFactory
      extended by org.vrjuggler.vrjconfig.commoneditors.devicegraph.ProxiedDeviceCellViewFactory
All Implemented Interfaces:
CellViewFactory

public class ProxiedDeviceCellViewFactory
extends DefaultCellViewFactory


Constructor Summary
ProxiedDeviceCellViewFactory()
           
ProxiedDeviceCellViewFactory(Map creatorMap)
           
 
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 org.jgraph.graph.DefaultCellViewFactory
createEdgeView, createEdgeView, createPortView, createPortView, createView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxiedDeviceCellViewFactory

public ProxiedDeviceCellViewFactory()

ProxiedDeviceCellViewFactory

public ProxiedDeviceCellViewFactory(Map creatorMap)
Method Detail

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 methods
creator - 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)

VRJConfig UI API
v2.0


Copyright © 1998–2005 Iowa State University. All rights reserved.