Class CantorInterval
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.apache.myfaces.tobago.example.demo.CantorInterval
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
public class CantorInterval extends DefaultMutableTreeNode
Builds a tree with the iterations of the Cantor set. The tree is infinitive, so it will be created on the fly.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCantorInterval.Fraction
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description CantorInterval()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumeration<TreeNode>children()TreeNodegetChildAt(int i)intgetChildCount()StringgetLabel()StringtoString()-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, 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, setUserObject
-
-
-
-
Method Detail
-
getChildCount
public int getChildCount()
- Specified by:
getChildCountin interfaceTreeNode- Overrides:
getChildCountin classDefaultMutableTreeNode
-
getChildAt
public TreeNode getChildAt(int i)
- Specified by:
getChildAtin interfaceTreeNode- Overrides:
getChildAtin classDefaultMutableTreeNode
-
children
public Enumeration<TreeNode> children()
- Specified by:
childrenin interfaceTreeNode- Overrides:
childrenin classDefaultMutableTreeNode
-
getLabel
public String getLabel()
-
toString
public String toString()
- Overrides:
toStringin classDefaultMutableTreeNode
-
-