Class GraphPrinterConfig


  • public class GraphPrinterConfig
    extends Object
    Immutable rendering settings shared by the dependence-graph printers, built through GraphPrinterConfig.Builder or one of the named presets.
    • 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