Package com.tonic.analysis.graph.export
Class DOTExporterConfig
- java.lang.Object
-
- com.tonic.analysis.graph.export.DOTExporterConfig
-
public class DOTExporterConfig extends Object
Immutable rendering settings for aDOTExporter- layout, fonts, label truncation and the default node and edge styles.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDOTExporterConfig.BuilderMutable accumulator for the exporter settings.static classDOTExporterConfig.EdgeStyleColour, line style and arrow head applied to a DOT edge.static classDOTExporterConfig.NodeStyleShape and colour attributes applied to a DOT node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DOTExporterConfig.Builderbuilder()static DOTExporterConfigcompact()static DOTExporterConfigdefaults()DOTExporterConfig.EdgeStylegetDefaultEdgeStyle()DOTExporterConfig.NodeStylegetDefaultNodeStyle()StringgetFontName()intgetFontSize()StringgetGraphName()intgetMaxLabelLength()StringgetRankDir()booleanisClusterByMethod()booleanisDirected()booleanisIncludeLegend()booleanisShowNodeIds()booleanisTruncateLabels()static DOTExporterConfigleftToRight()
-
-
-
Method Detail
-
getGraphName
public String getGraphName()
- Returns:
- the graph name
-
isDirected
public boolean isDirected()
- Returns:
- whether directed
-
isIncludeLegend
public boolean isIncludeLegend()
- Returns:
- whether include legend
-
isClusterByMethod
public boolean isClusterByMethod()
- Returns:
- whether cluster by method
-
isShowNodeIds
public boolean isShowNodeIds()
- Returns:
- whether show node ids
-
isTruncateLabels
public boolean isTruncateLabels()
- Returns:
- whether truncate labels
-
getMaxLabelLength
public int getMaxLabelLength()
- Returns:
- the max label length
-
getFontName
public String getFontName()
- Returns:
- the font name
-
getFontSize
public int getFontSize()
- Returns:
- the font size
-
getRankDir
public String getRankDir()
- Returns:
- the rank dir
-
getDefaultNodeStyle
public DOTExporterConfig.NodeStyle getDefaultNodeStyle()
- Returns:
- the default node style
-
getDefaultEdgeStyle
public DOTExporterConfig.EdgeStyle getDefaultEdgeStyle()
- Returns:
- the default edge style
-
defaults
public static DOTExporterConfig defaults()
- Returns:
- a config with every setting left at its default
-
leftToRight
public static DOTExporterConfig leftToRight()
- Returns:
- a config that lays the graph out left to right instead of top to bottom
-
compact
public static DOTExporterConfig compact()
- Returns:
- a config with the legend, method clustering and node ids turned off
-
builder
public static DOTExporterConfig.Builder builder()
- Returns:
- a new builder seeded with the default settings
-
-