com.googlecode.sarasvati.visual
Interface ProcessLookAndFeel

All Known Implementing Classes:
DefaultProcessLookAndFeel

public interface ProcessLookAndFeel

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

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 to the given arc.
 boolean isBackArc(Arc arc, boolean defaultValue)
          Controls if this arc should point backwards or forwards.
 org.netbeans.api.visual.widget.Widget newWidget(VisualProcessNode node, SarasvatiProcessScene scene)
          Returns a new Widget to represent the given VisualProcessNode.
 

Method Detail

drawSelfArcs

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

Parameters:
arc - An arc in a process definition
Returns:
True if self arcs should be drawn, false otherwise

drawArcLabels

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

Parameters:
arc - An arc in a process definition
Returns:
True if arc labels should be drawn, false otherwise

newWidget

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

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

isBackArc

boolean isBackArc(Arc arc,
                  boolean defaultValue)
Controls if this arc should point backwards or forwards.

Parameters:
arc - An arc in a process definition
defaultValue - The calculated value based on the relative positions in a GraphTree
Returns:
True if the the arc is generally traversed going back to a previous point in the workflow


Copyright © 2012. All Rights Reserved.