borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

GraphViewManager interface

borland.jbcl.model.GraphViewManager

About the GraphViewManager interface

Methods  

Implemented by BasicViewManager, TypedViewManager

A class implementing GraphViewManager selects item painters and item editors for graph data structures.

Although you can implement this interface directly, JBCL provides BasicViewManager and TypedViewManager classes that implement it for you.


GraphViewManager methods

Methods defined in this interface


GraphViewManager methods

getEditor(borland.jbcl.model.GraphLocation, java.lang.Object, int)

  public ItemEditor getEditor(borland.jbcl.model.GraphLocation node, java.lang.Object data, int state)
Returns an item editor. Classes that implement VectorViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

node
The node that holds the data object that needs editing.
data
The data object to be edited.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.

getPainter(borland.jbcl.model.GraphLocation, java.lang.Object, int)

  public ItemPainter getPainter(borland.jbcl.model.GraphLocation node, java.lang.Object data, int state)
Returns an item painter. Classes that implement VectorViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

node
The node that contains the data object that is to be painted.
data
The data object to be painted.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.