org.tigris.gef.graph
Interface GraphNodeRenderer

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultGraphNodeRenderer

public interface GraphNodeRenderer
extends java.io.Serializable

An interface for FigNode factories. Similiar in concept to the Swing class TreeCellRenderer.


Method Summary
 FigNode getFigNodeFor(GraphModel graphmodel, Layer layer, java.lang.Object node, java.util.Map attributeMap)
          Factory for a FigNode that can be used to represent the given node
 FigNode getFigNodeFor(java.lang.Object node, java.util.Map attributeMap)
          Factory for a FigNode that can be used to represent the given node
 

Method Detail

getFigNodeFor

FigNode getFigNodeFor(GraphModel graphmodel,
                      Layer layer,
                      java.lang.Object node,
                      java.util.Map attributeMap)
Factory for a FigNode that can be used to represent the given node

Parameters:
graphmodel - the model in which to place the FigNode
layer - the layer in which to place the FigNode
node - the model element from which to create the FigNode
attributeMap - an optional map of attributes to style the fig. return the new FigNode

getFigNodeFor

FigNode getFigNodeFor(java.lang.Object node,
                      java.util.Map attributeMap)
Factory for a FigNode that can be used to represent the given node

Parameters:
node - the model element from which to create the FigNode
attributeMap - an optional map of attributes to style the fig. return the new FigNode