public class DefaultProcessLookAndFeel extends Object implements ProcessLookAndFeel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drawArcLabels |
protected boolean |
drawSelfArcs |
static DefaultProcessLookAndFeel |
INSTANCE |
| Constructor and Description |
|---|
DefaultProcessLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String |
getTaskType() |
boolean |
isBackArc(Arc arc,
boolean defaultValue)
Controls if this arc should point backwards or forwards.
|
Icon |
newIconForNode(VisualProcessNode node) |
org.netbeans.api.visual.widget.Widget |
newWidget(VisualProcessNode node,
SarasvatiProcessScene scene)
Returns a new Widget to represent the given
VisualProcessNode. |
public static final DefaultProcessLookAndFeel INSTANCE
protected boolean drawSelfArcs
protected boolean drawArcLabels
public DefaultProcessLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels)
public boolean drawArcLabels(Arc arc)
ProcessLookAndFeeldrawArcLabels in interface ProcessLookAndFeelarc - An arc in a process definitionpublic boolean drawSelfArcs(Arc arc)
ProcessLookAndFeeldrawSelfArcs in interface ProcessLookAndFeelarc - An arc in a process definitionpublic Icon newIconForNode(VisualProcessNode node)
public org.netbeans.api.visual.widget.Widget newWidget(VisualProcessNode node, SarasvatiProcessScene scene)
ProcessLookAndFeelVisualProcessNode.newWidget in interface ProcessLookAndFeelnode - The node we need a widget forscene - The scene the widget is created inprotected String getTaskType()
public boolean isBackArc(Arc arc, boolean defaultValue)
ProcessLookAndFeelisBackArc in interface ProcessLookAndFeelarc - An arc in a process definitiondefaultValue - The calculated value based on the relative positions in a GraphTreeCopyright © 2012. All Rights Reserved.