Package com.tonic.analysis.graph.print
Class GraphPrinterConfig
- java.lang.Object
-
- com.tonic.analysis.graph.print.GraphPrinterConfig
-
public class GraphPrinterConfig extends Object
Immutable rendering settings shared by the dependence-graph printers, built throughGraphPrinterConfig.Builderor one of the named presets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphPrinterConfig.BuilderMutable accumulator for the printer settings, seeded with the normal defaults.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphPrinterConfig.Builderbuilder()static GraphPrinterConfigdebug()Builds a config that prints everything: debug verbosity, properties on, no label truncation and no node limit.static GraphPrinterConfigdefaults()StringgetIndentString()intgetMaxLabelLength()intgetMaxNodesPerMethod()VerbositygetVerbosity()booleanisGroupByMethod()booleanisShowEdgeLabels()booleanisShowLineNumbers()booleanisShowNodeIds()booleanisShowProperties()booleanisShowStatistics()booleanisTruncateLongLabels()static GraphPrinterConfigminimal()Builds a config that prints bare structure - no ids, edge labels, properties or statistics.static GraphPrinterConfigverbose()Builds a config at verbose verbosity with node properties printed.
-
-
-
Method Detail
-
getVerbosity
public Verbosity getVerbosity()
- Returns:
- the verbosity
-
isShowNodeIds
public boolean isShowNodeIds()
- Returns:
- whether show node ids
-
isShowEdgeLabels
public boolean isShowEdgeLabels()
- Returns:
- whether show edge labels
-
isShowProperties
public boolean isShowProperties()
- Returns:
- whether show properties
-
isShowLineNumbers
public boolean isShowLineNumbers()
- Returns:
- whether show line numbers
-
isGroupByMethod
public boolean isGroupByMethod()
- Returns:
- whether group by method
-
isShowStatistics
public boolean isShowStatistics()
- Returns:
- whether show statistics
-
getIndentString
public String getIndentString()
- Returns:
- the indent string
-
getMaxNodesPerMethod
public int getMaxNodesPerMethod()
- Returns:
- the max nodes per method
-
isTruncateLongLabels
public boolean isTruncateLongLabels()
- Returns:
- whether truncate long labels
-
getMaxLabelLength
public int getMaxLabelLength()
- Returns:
- the max label length
-
defaults
public static GraphPrinterConfig defaults()
- Returns:
- a config with every builder default left in place
-
minimal
public static GraphPrinterConfig minimal()
Builds a config that prints bare structure - no ids, edge labels, properties or statistics.- Returns:
- the minimal config
-
verbose
public static GraphPrinterConfig verbose()
Builds a config at verbose verbosity with node properties printed.- Returns:
- the verbose config
-
debug
public static GraphPrinterConfig debug()
Builds a config that prints everything: debug verbosity, properties on, no label truncation and no node limit.- Returns:
- the debug config
-
builder
public static GraphPrinterConfig.Builder builder()
- Returns:
- a fresh builder holding the default settings
-
-