Class FlowGraphToGraphDotConverterSettings.Builder
- java.lang.Object
-
- de.xima.fc.workflow.designer.logic.FlowGraphToGraphDotConverterSettings.Builder
-
- Enclosing class:
- FlowGraphToGraphDotConverterSettings
public static final class FlowGraphToGraphDotConverterSettings.Builder extends Object
Builder to buildFlowGraphToGraphDotConverterSettings
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowGraphToGraphDotConverterSettings
build()
FlowGraphToGraphDotConverterSettings.Builder
constrainLayoutToFlow(boolean constrainLayoutToFlow)
FlowGraphToGraphDotConverterSettings.Builder
constrainLayoutToHierarchy(boolean constrainLayoutToHierarchy)
FlowGraphToGraphDotConverterSettings.Builder
direction(ERankDirection direction)
FlowGraphToGraphDotConverterSettings.Builder
ignoreBackwardsEdgesForLayout(boolean ignoreBackwardsEdgesForLayout)
FlowGraphToGraphDotConverterSettings.Builder
locale(Locale locale)
FlowGraphToGraphDotConverterSettings.Builder
separateUnreachableNodes(boolean separateUnreachableNodes)
FlowGraphToGraphDotConverterSettings.Builder
showAllNodeNames(boolean showAllNodeNames)
FlowGraphToGraphDotConverterSettings.Builder
showHierarchyEdges(boolean showHierarchyEdges)
-
-
-
Method Detail
-
build
public FlowGraphToGraphDotConverterSettings build()
- Returns:
- A new settings instance with the current settings.
-
constrainLayoutToFlow
public FlowGraphToGraphDotConverterSettings.Builder constrainLayoutToFlow(boolean constrainLayoutToFlow)
- Parameters:
constrainLayoutToFlow
-true
to take the computed flow edges into account when computing the layout.- Returns:
- builder This builder instance for chaining method calls.
-
constrainLayoutToHierarchy
public FlowGraphToGraphDotConverterSettings.Builder constrainLayoutToHierarchy(boolean constrainLayoutToHierarchy)
- Parameters:
constrainLayoutToHierarchy
-true
to take the hierarchy from the abstract syntax tree into account when computing the layout.- Returns:
- builder This builder instance for chaining method calls.
-
direction
public FlowGraphToGraphDotConverterSettings.Builder direction(ERankDirection direction)
- Parameters:
direction
- Direction of the layout.- Returns:
- builder This builder instance for chaining method calls.
-
ignoreBackwardsEdgesForLayout
public FlowGraphToGraphDotConverterSettings.Builder ignoreBackwardsEdgesForLayout(boolean ignoreBackwardsEdgesForLayout)
- Parameters:
ignoreBackwardsEdgesForLayout
-true
to ignore backwards edges when computing the layout.- Returns:
- builder This builder instance for chaining method calls.
-
locale
public FlowGraphToGraphDotConverterSettings.Builder locale(Locale locale)
- Parameters:
locale
- Locale for localizing node types etc.- Returns:
- builder This builder instance for chaining method calls.
-
separateUnreachableNodes
public FlowGraphToGraphDotConverterSettings.Builder separateUnreachableNodes(boolean separateUnreachableNodes)
- Parameters:
separateUnreachableNodes
- Whether to draw unreachable nodes as a separate cluster.- Returns:
- builder This builder instance for chaining method calls.
-
showAllNodeNames
public FlowGraphToGraphDotConverterSettings.Builder showAllNodeNames(boolean showAllNodeNames)
- Parameters:
showAllNodeNames
- Whentrue
, show all nodes names, even for nodes that do not have auser visible
name.- Returns:
- builder This builder instance for chaining method calls.
-
showHierarchyEdges
public FlowGraphToGraphDotConverterSettings.Builder showHierarchyEdges(boolean showHierarchyEdges)
- Parameters:
showHierarchyEdges
-true
to show hierarchy edges from the syntax tree.- Returns:
- builder This builder instance for chaining method calls.
-
-