Package weka.gui.knowledgeflow
Class InvisibleNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- weka.gui.knowledgeflow.InvisibleNode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
public class InvisibleNode extends javax.swing.tree.DefaultMutableTreeNodeSubclass ofDefaultMutableTreeNodethat can hide itself in aJTree.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvisibleNode()ConstructorInvisibleNode(java.lang.Object userObject)Constructor for a new node that allows children and is visibleInvisibleNode(java.lang.Object userObject, boolean allowsChildren, boolean isVisible)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.tree.TreeNodegetChildAt(int index, boolean filterIsActive)Get a child nodeintgetChildCount(boolean filterIsActive)Get the number of children nodesbooleanisVisible()Returns true if this node is visiblevoidsetVisible(boolean visible)Set the visible status of this node-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, 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, toString
-
-
-
-
Constructor Detail
-
InvisibleNode
public InvisibleNode()
Constructor
-
InvisibleNode
public InvisibleNode(java.lang.Object userObject)
Constructor for a new node that allows children and is visible- Parameters:
userObject- the user object to wrap at the node
-
InvisibleNode
public InvisibleNode(java.lang.Object userObject, boolean allowsChildren, boolean isVisible)Constructor- Parameters:
userObject- the user object to wrap at the nodeallowsChildren- true if this node allows children (not a leaf)isVisible- true if this node is visible initially
-
-
Method Detail
-
getChildAt
public javax.swing.tree.TreeNode getChildAt(int index, boolean filterIsActive)Get a child node- Parameters:
index- the index of the node to getfilterIsActive- true if the visible filter is active- Returns:
- a child node
-
getChildCount
public int getChildCount(boolean filterIsActive)
Get the number of children nodes- Parameters:
filterIsActive- true if the visible filter is active (alters the count according to visibility)- Returns:
- the number of child nodes
-
setVisible
public void setVisible(boolean visible)
Set the visible status of this node- Parameters:
visible- true if this node should be visible
-
isVisible
public boolean isVisible()
Returns true if this node is visible- Returns:
- true if this node is visible
-
-