Package hu.webarticum.treeprinter
Class SimpleTreeNode
- java.lang.Object
-
- hu.webarticum.treeprinter.SimpleTreeNode
-
-
Constructor Summary
Constructors Constructor Description SimpleTreeNode(java.lang.String content)SimpleTreeNode(java.lang.String content, Insets insets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(TreeNode childNode)java.util.List<TreeNode>children()Gets the list of child nodes of this node.java.lang.Stringcontent()Gets the content of this node.Insetsinsets()Gets the content insets.-
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.TreeNode
isDecorable, isPlaceholder, originalNode
-
-
-
-
Constructor Detail
-
SimpleTreeNode
public SimpleTreeNode(java.lang.String content)
-
SimpleTreeNode
public SimpleTreeNode(java.lang.String content, Insets insets)
-
-
Method Detail
-
addChild
public void addChild(TreeNode childNode)
-
content
public java.lang.String content()
Description copied from interface:TreeNodeGets the content of this node.
-
insets
public Insets insets()
Description copied from interface:TreeNodeGets the content insets. Returns with the sizes of the visual decoration around the main content. By default, this is fully zero. Visually extending decorators (border, shadow etc.) should extend the insets with the sizes of the visual extension.
-
-