This class represents a single Node of a Tree. It contains direct handles
to its parent and children and to its view.
children
public Enumeration children()
AFAIK there is no way to get an enumeration out of a linked list. So this exception must be
thrown, or we can't implement TreeNode anymore (maybe we shouldn't?)
estabilishOwnFont
public void estabilishOwnFont()
getAllowsChildren
public boolean getAllowsChildren()
getChildAt
public TreeNode getChildAt(int childIndex)
getChildCount
public int getChildCount()
getIndex
public int getIndex(TreeNode node)
getParent
public TreeNode getParent()
getPath
public TreePath getPath()
Creates the TreePath recursively
- getPath in interface MindMapNode
getStyle
public String getStyle()
A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE
- getStyle in interface MindMapNode
hasFoldedStrictDescendant
public boolean hasFoldedStrictDescendant()
True iff one of node's strict descendants is folded. A node N
is not its strict descendant - the fact that node itself is folded
is not sufficient to return true.
insert
public void insert(MutableTreeNode child,
int index)
isDescendantOf
public boolean isDescendantOf(MindMapNode node)
Returns whether the argument is parent
or parent of one of the grandpa's of this node.
(transitive)
- isDescendantOf in interface MindMapNode
isLeaf
public boolean isLeaf()
remove
public void remove(MutableTreeNode node)
remove
public void remove(int index)
removeFromParent
public void removeFromParent()
setBold
public void setBold(boolean bold)
setItalic
public void setItalic(boolean italic)
setParent
public void setParent(MutableTreeNode newParent)
setStyle
public void setStyle(String style)
setUnderlined
public void setUnderlined(boolean underlined)
setUserObject
public void setUserObject(Object object)
toggleBold
public void toggleBold()
toggleItalic
public void toggleItalic()