Class TraditionalTreePrinter
- java.lang.Object
-
- hu.webarticum.treeprinter.printer.traditional.TraditionalTreePrinter
-
- All Implemented Interfaces:
TreePrinter
public class TraditionalTreePrinter extends java.lang.Object implements TreePrinter
TreePrinterimplementation that prints the tree structure in a traditional fashion.Example output with the default settings:
Root ┌──────────────┬──┴──────────────┐ │ │ │ Child1 Child2 Child3 ┌─────┴─────┐ │ │ │ │ Grandchild1 Grandchild2 Grandchild3
-
-
Field Summary
Fields Modifier and Type Field Description static AlignerDEFAULT_ALIGNERstatic LinerDEFAULT_LINER
-
Constructor Summary
Constructors Constructor Description TraditionalTreePrinter()TraditionalTreePrinter(boolean displayPlaceholders)TraditionalTreePrinter(Aligner aligner, Liner liner)TraditionalTreePrinter(Aligner aligner, Liner liner, boolean displayPlaceholders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(TreeNode rootNode, java.lang.Appendable out)-
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, stringify
-
-
-
-
Method Detail
-
print
public void print(TreeNode rootNode, java.lang.Appendable out)
- Specified by:
printin interfaceTreePrinter
-
-