|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.concurrenttrees.common.PrettyPrinter
public class PrettyPrinter
Utility methods to generate semi-graphical string representations of trees.
| Method Summary | |
|---|---|
static String |
prettyPrint(PrettyPrintable tree)
Generates a semi-graphical string representation of a given tree. |
static void |
prettyPrint(PrettyPrintable tree,
Appendable appendable)
Generates a semi-graphical string representation of a given tree, writing it to a given Appendable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String prettyPrint(PrettyPrintable tree)
○
└── ○ B (1)
└── ○ A (2)
└── ○ N (3)
├── ○ AN (5)
│ └── ○ A (6)
└── ○ DANA (4)
tree - The tree for which the semi-graphical representation should be generated
public static void prettyPrint(PrettyPrintable tree,
Appendable appendable)
Appendable.
Example output:
○
└── ○ B (1)
└── ○ A (2)
└── ○ N (3)
├── ○ AN (5)
│ └── ○ A (6)
└── ○ DANA (4)
tree - The tree for which the semi-graphical representation should be generatedappendable - The object to which the tree should be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||