|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.sarasvati.visual.DefaultProcessLookAndFeel
public class DefaultProcessLookAndFeel
Generates widgets using a TaskIcon for nodes of type 'task', and DefaultNodeIcon for all other node types.
| Field Summary | |
|---|---|
protected boolean |
drawArcLabels
|
protected boolean |
drawSelfArcs
|
static DefaultProcessLookAndFeel |
INSTANCE
|
| Constructor Summary | |
|---|---|
DefaultProcessLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels)
|
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultProcessLookAndFeel INSTANCE
protected boolean drawSelfArcs
protected boolean drawArcLabels
| Constructor Detail |
|---|
public DefaultProcessLookAndFeel(boolean drawSelfArcs,
boolean drawArcLabels)
| Method Detail |
|---|
public boolean drawArcLabels(Arc arc)
ProcessLookAndFeel
drawArcLabels in interface ProcessLookAndFeelarc - An arc in a process definition
public boolean drawSelfArcs(Arc arc)
ProcessLookAndFeel
drawSelfArcs in interface ProcessLookAndFeelarc - An arc in a process definition
public 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 in
protected String getTaskType()
public boolean isBackArc(Arc arc,
boolean defaultValue)
ProcessLookAndFeel
isBackArc in interface ProcessLookAndFeelarc - An arc in a process definitiondefaultValue - The calculated value based on the relative positions in a GraphTree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||