Package com.tonic.analysis.graph.export
Class DOTExporterConfig.NodeStyle.Builder
- java.lang.Object
-
- com.tonic.analysis.graph.export.DOTExporterConfig.NodeStyle.Builder
-
- Enclosing class:
- DOTExporterConfig.NodeStyle
public static class DOTExporterConfig.NodeStyle.Builder extends Object
Mutable accumulator for a node style.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DOTExporterConfig.NodeStyle.BuilderborderColor(String borderColor)Sets the outline colour.DOTExporterConfig.NodeStylebuild()DOTExporterConfig.NodeStyle.BuilderfillColor(String fillColor)Sets the interior colour.DOTExporterConfig.NodeStyle.Buildershape(String shape)Sets the DOT node shape, such as "box" or "ellipse".DOTExporterConfig.NodeStyle.Builderstyle(String style)Sets the DOT style attribute, such as "filled" or "dashed".
-
-
-
Method Detail
-
shape
public DOTExporterConfig.NodeStyle.Builder shape(String shape)
Sets the DOT node shape, such as "box" or "ellipse".- Parameters:
shape- the shape name- Returns:
- this builder
-
fillColor
public DOTExporterConfig.NodeStyle.Builder fillColor(String fillColor)
Sets the interior colour.- Parameters:
fillColor- a DOT colour name or hex value- Returns:
- this builder
-
borderColor
public DOTExporterConfig.NodeStyle.Builder borderColor(String borderColor)
Sets the outline colour.- Parameters:
borderColor- a DOT colour name or hex value- Returns:
- this builder
-
style
public DOTExporterConfig.NodeStyle.Builder style(String style)
Sets the DOT style attribute, such as "filled" or "dashed".- Parameters:
style- the style name- Returns:
- this builder
-
build
public DOTExporterConfig.NodeStyle build()
- Returns:
- an immutable node style holding the accumulated attributes
-
-