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

java.lang.Object
  extended by org.knime.base.node.mine.decisiontree2.view.graph.HierarchicalGraphView<DecisionTreeNode>
      extended by org.knime.base.node.mine.decisiontree2.view.DecTreeGraphView
Direct Known Subclasses:
DecTreeToImageGraphView

public class DecTreeGraphView
extends HierarchicalGraphView<DecisionTreeNode>

A hierarchical graph for decision trees.

Author:
Heiko Hofer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.base.node.mine.decisiontree2.view.graph.HierarchicalGraphView
HierarchicalGraphView.Align
 
Constructor Summary
DecTreeGraphView(DecisionTreeNode root, String colorColumn)
           
 
Method Summary
 String getColorColumn()
           
 NodeWidgetFactory<DecisionTreeNode> getNodeWidgetFactory()
          Get the NodeWidgetFactory for this Graph.
 void mousePressed(MouseEvent e)
          Handler for the mouse pressed event.
 void setColorColumn(String colorColumn)
           
 void setRootNode(DecisionTreeNode root)
          Replace the root which is the model for this view.
 
Methods inherited from class org.knime.base.node.mine.decisiontree2.view.graph.HierarchicalGraphView
clearHilite, createOutlineView, getCollapsed, getNodeWidth, getRoot, getRootNode, getScaleFactor, getSelected, getToolTipText, getView, getVisible, getWidgets, hiLite, layoutGraph, mouseClicked, mouseReleased, nodeAtPoint, setNodeWidth, setScaleFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecTreeGraphView

public DecTreeGraphView(DecisionTreeNode root,
                        String colorColumn)
Parameters:
root - The root node of the tree
colorColumn - The target column of a color handler used to produce the color retrieved from root.coveredColors(). This parameter can be null.
Method Detail

setRootNode

public void setRootNode(DecisionTreeNode root)
Replace the root which is the model for this view.

Overrides:
setRootNode in class HierarchicalGraphView<DecisionTreeNode>
Parameters:
root - the root

getNodeWidgetFactory

public NodeWidgetFactory<DecisionTreeNode> getNodeWidgetFactory()
Get the NodeWidgetFactory for this Graph.

Specified by:
getNodeWidgetFactory in class HierarchicalGraphView<DecisionTreeNode>
Returns:
the NodeWidgetFactory

getColorColumn

public String getColorColumn()
Returns:
the colorColumn

setColorColumn

public void setColorColumn(String colorColumn)
Parameters:
colorColumn - the colorColumn to set

mousePressed

public void mousePressed(MouseEvent e)
Handler for the mouse pressed event.

Overrides:
mousePressed in class HierarchicalGraphView<DecisionTreeNode>
Parameters:
e - the mouse event


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.