Class BoxingTreePrinter

  • All Implemented Interfaces:
    TreePrinter

    public class BoxingTreePrinter
    extends java.lang.Object
    implements TreePrinter
    TreePrinter implementation that draws nested boxes.

    Example output with the default settings:

       ┌────┐
     ┌─┤Root├───────────────────────────────────────┐
     │ └────┘                                       │
     │ ┌──────┐   ┌──────┐          ┌──────┐        │
     │ │Child1│ ┌─┤Child2├──────┐ ┌─┤Child3├──────┐ │
     │ └──────┘ │ └──────┘      │ │ └──────┘      │ │
     │          │ ┌───────────┐ │ │ ┌───────────┐ │ │
     │          │ │Grandchild1│ │ │ │Grandchild3│ │ │
     │          │ └───────────┘ │ │ └───────────┘ │ │
     │          │ ┌───────────┐ │ └───────────────┘ │
     │          │ │Grandchild2│ │                   │
     │          │ └───────────┘ │                   │
     │          └───────────────┘                   │
     └──────────────────────────────────────────────┘