com.googlecode.sarasvati.visual
Interface GraphLookAndFeel

All Known Implementing Classes:
DefaultGraphLookAndFeel

public interface GraphLookAndFeel

Controls how a graph will be drawn, including generating an appropriate Widget for each Node.

Author:
Paul Lorenz

Method Summary
 boolean drawArcLabels(Arc arc)
          Controls if arc labels should be drawn.
 boolean drawSelfArcs(Arc arc)
          Controls if self arcs should be drawn.
 org.netbeans.api.visual.widget.Widget newWidget(Node node, SarasvatiGraphScene scene)
          Returns a new Widget to represent the given node.
 

Method Detail

drawSelfArcs

boolean drawSelfArcs(Arc arc)
Controls if self arcs should be drawn.

Parameters:
arc -
Returns:
True if self arcs should be drawn, false otherwise

drawArcLabels

boolean drawArcLabels(Arc arc)
Controls if arc labels should be drawn.

Parameters:
arc -
Returns:
True if arc labels should be drawn, false otherwise

newWidget

org.netbeans.api.visual.widget.Widget newWidget(Node node,
                                                SarasvatiGraphScene scene)
Returns a new Widget to represent the given node.

Parameters:
node - The node we need a widget for
scene - The scene the widget is created in
Returns:
A new widget for the given node


Copyright © 2012. All Rights Reserved.