Class InvisibleTreeModel

java.lang.Object
javax.swing.tree.DefaultTreeModel
weka.gui.knowledgeflow.InvisibleTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class InvisibleTreeModel extends DefaultTreeModel
Subclass of DefaultTreeModel that contains InvisibleNodes.
Version:
$Revision: $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • InvisibleTreeModel

      public InvisibleTreeModel(TreeNode root)
      Constructor
      Parameters:
      root - the root of the tree
    • InvisibleTreeModel

      public InvisibleTreeModel(TreeNode root, boolean asksAllowsChildren)
      Constuctor
      Parameters:
      root - the root of the tree
      asksAllowsChildren - asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have children
    • InvisibleTreeModel

      public InvisibleTreeModel(TreeNode root, boolean asksAllowsChildren, boolean filterIsActive)
      Constructor
      Parameters:
      root - the root of the tree
      asksAllowsChildren - asksAllowsChildren - a boolean, false if any node can have children, true if each node is asked to see if it can have children
      filterIsActive - true if the visibility filter is active
  • Method Details

    • activateFilter

      public void activateFilter(boolean newValue)
      Activate/deactivate the visibility filter
      Parameters:
      newValue - true if the visibility filter should be active
    • isActivatedFilter

      public boolean isActivatedFilter()
      Return true if the visibility filter is active
      Returns:
      true if the visibility filter is active
    • getChild

      public Object getChild(Object parent, int index)
      Specified by:
      getChild in interface TreeModel
      Overrides:
      getChild in class DefaultTreeModel
    • getChildCount

      public int getChildCount(Object parent)
      Specified by:
      getChildCount in interface TreeModel
      Overrides:
      getChildCount in class DefaultTreeModel