Package weka.gui.knowledgeflow
Class InvisibleNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
weka.gui.knowledgeflow.InvisibleNode
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
Subclass of
DefaultMutableTreeNode
that can hide itself in a
JTree
.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
-
Constructor Summary
ConstructorDescriptionConstructorInvisibleNode
(Object userObject) Constructor for a new node that allows children and is visibleInvisibleNode
(Object userObject, boolean allowsChildren, boolean isVisible) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetChildAt
(int index, boolean filterIsActive) Get a child nodeint
getChildCount
(boolean filterIsActive) Get the number of children nodesboolean
Returns true if this node is visiblevoid
setVisible
(boolean visible) Set the visible status of this nodeMethods 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 Details
-
InvisibleNode
public InvisibleNode()Constructor -
InvisibleNode
Constructor for a new node that allows children and is visible- Parameters:
userObject
- the user object to wrap at the node
-
InvisibleNode
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 Details
-
getChildAt
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
-