org.knime.base.node.mine.decisiontree2.view
Class DecTreeNodeWidgetFactory

java.lang.Object
  extended by org.knime.base.node.mine.decisiontree2.view.DecTreeNodeWidgetFactory
All Implemented Interfaces:
NodeWidgetFactory<DecisionTreeNode>

public final class DecTreeNodeWidgetFactory
extends Object
implements NodeWidgetFactory<DecisionTreeNode>

Author:
Heiko Hofer

Constructor Summary
DecTreeNodeWidgetFactory(DecTreeGraphView graph)
          Creates a new instance.
 
Method Summary
 NodeWidget<DecisionTreeNode> createGraphNode(DecisionTreeNode object)
          Create a NodeWidget which is a visual representation of the given object.
 List<DecisionTreeNode> getChildren(DecisionTreeNode object)
          Returns the children of the object or null when object is a leaf.
 boolean isLeaf(DecisionTreeNode object)
          Returns true when the given object is a leaf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecTreeNodeWidgetFactory

public DecTreeNodeWidgetFactory(DecTreeGraphView graph)
Creates a new instance.

Parameters:
graph - the graph
Method Detail

createGraphNode

public NodeWidget<DecisionTreeNode> createGraphNode(DecisionTreeNode object)
Create a NodeWidget which is a visual representation of the given object.

Specified by:
createGraphNode in interface NodeWidgetFactory<DecisionTreeNode>
Parameters:
object - the model of the created view
Returns:
a view for the given object

getChildren

public List<DecisionTreeNode> getChildren(DecisionTreeNode object)
Returns the children of the object or null when object is a leaf.

Specified by:
getChildren in interface NodeWidgetFactory<DecisionTreeNode>
Parameters:
object - the object
Returns:
the children of the object or null when object is a leaf

isLeaf

public boolean isLeaf(DecisionTreeNode object)
Returns true when the given object is a leaf.

Specified by:
isLeaf in interface NodeWidgetFactory<DecisionTreeNode>
Parameters:
object - the object
Returns:
true when the given object is a leaf


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.