Class BoxingTreePrinter
- java.lang.Object
-
- hu.webarticum.treeprinter.printer.boxing.BoxingTreePrinter
-
- All Implemented Interfaces:
TreePrinter
public class BoxingTreePrinter extends java.lang.Object implements TreePrinter
TreePrinterimplementation that draws nested boxes.Example output with the default settings:
┌────┐ ┌─┤Root├───────────────────────────────────────┐ │ └────┘ │ │ ┌──────┐ ┌──────┐ ┌──────┐ │ │ │Child1│ ┌─┤Child2├──────┐ ┌─┤Child3├──────┐ │ │ └──────┘ │ └──────┘ │ │ └──────┘ │ │ │ │ ┌───────────┐ │ │ ┌───────────┐ │ │ │ │ │Grandchild1│ │ │ │Grandchild3│ │ │ │ │ └───────────┘ │ │ └───────────┘ │ │ │ │ ┌───────────┐ │ └───────────────┘ │ │ │ │Grandchild2│ │ │ │ │ └───────────┘ │ │ │ └───────────────┘ │ └──────────────────────────────────────────────┘
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBoxingTreePrinter.Builder
-
Constructor Summary
Constructors Constructor Description BoxingTreePrinter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoxingTreePrinter.Builderbuilder()voidprint(TreeNode rootNode, java.lang.Appendable out)java.lang.Stringstringify(TreeNode rootNode)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hu.webarticum.treeprinter.printer.TreePrinter
print
-
-
-
-
Method Detail
-
builder
public static BoxingTreePrinter.Builder builder()
-
print
public void print(TreeNode rootNode, java.lang.Appendable out)
- Specified by:
printin interfaceTreePrinter
-
stringify
public java.lang.String stringify(TreeNode rootNode)
- Specified by:
stringifyin interfaceTreePrinter
-
-