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
 org.tigris.gef.presentation.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
 org.tigris.gef.presentation.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

public org.tigris.gef.presentation.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

public org.tigris.gef.presentation.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