Package com.tonic.analysis.graph.export
Class DOTExporterConfig.EdgeStyle.Builder
- java.lang.Object
-
- com.tonic.analysis.graph.export.DOTExporterConfig.EdgeStyle.Builder
-
- Enclosing class:
- DOTExporterConfig.EdgeStyle
public static class DOTExporterConfig.EdgeStyle.Builder extends Object
Mutable accumulator for an edge style.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DOTExporterConfig.EdgeStyle.BuilderarrowHead(String arrowHead)Sets the DOT arrowhead attribute, such as "normal" or "empty".DOTExporterConfig.EdgeStylebuild()DOTExporterConfig.EdgeStyle.Buildercolor(String color)Sets the line colour.DOTExporterConfig.EdgeStyle.Builderstyle(String style)Sets the DOT style attribute, such as "solid" or "dotted".
-
-
-
Method Detail
-
color
public DOTExporterConfig.EdgeStyle.Builder color(String color)
Sets the line colour.- Parameters:
color- a DOT colour name or hex value- Returns:
- this builder
-
style
public DOTExporterConfig.EdgeStyle.Builder style(String style)
Sets the DOT style attribute, such as "solid" or "dotted".- Parameters:
style- the style name- Returns:
- this builder
-
arrowHead
public DOTExporterConfig.EdgeStyle.Builder arrowHead(String arrowHead)
Sets the DOT arrowhead attribute, such as "normal" or "empty".- Parameters:
arrowHead- the arrow head name- Returns:
- this builder
-
build
public DOTExporterConfig.EdgeStyle build()
- Returns:
- an immutable edge style holding the accumulated attributes
-
-