public class LblTree extends DefaultMutableTreeNode implements Comparable<Object>
| Modifier and Type | Field and Description |
|---|---|
static String |
BRANCH_STRING |
static String |
CLOSE_BRACKET |
static int |
HIDE_ALL_LABELS |
static int |
HIDE_NOTHING |
static int |
HIDE_ROOT_LABEL |
static String |
ID_SEPARATOR |
int |
NO_NODE
no node id
|
int |
NO_TREE_ID
no tree id is defined
|
static String |
OPEN_BRACKET |
static int |
RANDOM_ROOT_LABEL |
static int |
RENAME_LABELS_TO_LEVEL |
static String |
ROOT_STRING |
static String |
TAB_STRING |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
LblTree(String label,
int treeID)
Use only this constructor!
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearTmpData()
Clear tmpData in subtree rooted in this node.
|
int |
compareTo(Object o)
Compares the labels.
|
String |
getLabel() |
int |
getNodeCount() |
Object |
getTmpData() |
int |
getTreeID() |
void |
prettyPrint() |
void |
prettyPrint(boolean printTmpData) |
void |
setLabel(String label) |
void |
setTmpData(Object tmpData)
tmpData: Hook for any data that a method must attach to a tree.
|
void |
setTreeID(int treeID) |
String |
toString()
String representation of a tree.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectpublic static final String TAB_STRING
public static final String ROOT_STRING
public static final String BRANCH_STRING
public static final String OPEN_BRACKET
public static final String CLOSE_BRACKET
public static final String ID_SEPARATOR
public static final int HIDE_NOTHING
public static final int HIDE_ROOT_LABEL
public static final int RENAME_LABELS_TO_LEVEL
public static final int HIDE_ALL_LABELS
public static final int RANDOM_ROOT_LABEL
public final int NO_NODE
public final int NO_TREE_ID
public LblTree(String label, int treeID)
public void setLabel(String label)
public String getLabel()
public int getTreeID()
public void setTreeID(int treeID)
public void setTmpData(Object tmpData)
public Object getTmpData()
public void prettyPrint()
public void prettyPrint(boolean printTmpData)
public int getNodeCount()
public String toString()
toString in class DefaultMutableTreeNodepublic int compareTo(Object o)
compareTo in interface Comparable<Object>public void clearTmpData()
Copyright © 2007–2019. All rights reserved.