From 8b3ff4b2985d163f7bc2ea924d9e123be16d505a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsur=C3=B3=20Tibor?= Date: Fri, 24 Sep 2021 11:01:19 +0200 Subject: [PATCH] Add tree to readme --- README.md | 18 ++++++++++++++++++ images/tree.png | Bin 0 -> 4624 bytes 2 files changed, 18 insertions(+) create mode 100644 images/tree.png diff --git a/README.md b/README.md index b487a7d..525220b 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,21 @@ consoleTable.addRow("Row 31", "Extra length row", "Row 33"); consoleTable.print(console); ``` + +### Tree + +![](images/tree.png) + +```java +ConsoleTree consoleTree = new ConsoleTree(); + +TreeNode line1 = consoleTree.addRow("Line 1"); +consoleTree.addRow(line1, "Inner line 11"); +TreeNode line12 = consoleTree.addRow(line1, "Inner line 12"); +TreeNode line121 = consoleTree.addRow(line12, "Inner line 121"); +consoleTree.addRow(line121, "Inner line 1211"); +consoleTree.addRow(line1, "Inner line 13"); +consoleTree.addRow("Line 2"); + +consoleTree.print(console); +``` diff --git a/images/tree.png b/images/tree.png new file mode 100644 index 0000000000000000000000000000000000000000..381da6749c0066b19e0bc33e536b4ce7f5e45425 GIT binary patch literal 4624 zcmYjV2UHW;_nst3KzdP{29P4sL6IgQOA%O_s7Nmsx)dc81A!n-z#nxLl#VDUB~qk? zKon3=I#NOjMWlsZ5+Ia+*ggNVJLk;In>p{jJ8$m&?)Tjncf-tp?X=)&007vG4E1gT z00=>E_c4L#SLNmdEd9ppXK3RO0PL+NC+LL?yAS|yeKFGe<94v)%ES+!@vFRy&WTF( zNFuLc0{BwABSzkSI9)9Yl1@Ecxh8Z*N9oJJB&&*u@ZT(ULi)8pSy z=Didb%eQ!ZHUe3g?_$*4-shgxv9z@0mW!^bth@l^T{R9`Bk7|+(w~qtinlEU^QWxb zSr%JkpR1W&u9t030lABVgD+n9-KxgnO5WA4tgc=l0Ow6CIj&`PZTF_y08+g;fJeO3 zHGBINX-8;D-g_9zFXV=K5tBo-4GNf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