org.knime.base.node.mine.decisiontree2.view.graph
Interface NodeWidgetFactory<K>

Type Parameters:
K - The type of a NodeWidget the in graph
All Known Implementing Classes:
DecTreeNodeWidgetFactory, DecTreeToImageGraphView.DecTreeToImageNodeWidgetFactory

public interface NodeWidgetFactory<K>

A factory for creating NodeWidgets for a single element. The elements are supposed to be organized in a tree. There are furthermore methods to retrieve information about the tree structure.

Author:
Heiko Hofer

Method Summary
 NodeWidget<K> createGraphNode(K object)
          Create a NodeWidget which is a visual representation of the given object.
 List<K> getChildren(K object)
          Returns the children of the object or null when object is a leaf.
 boolean isLeaf(K object)
          Returns true when the given object is a leaf.
 

Method Detail

createGraphNode

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

Parameters:
object - the model of the created view
Returns:
a view for the given object

isLeaf

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

Parameters:
object - the object
Returns:
true when the given object is a leaf

getChildren

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

Parameters:
object - the object
Returns:
the children of the object or null when 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.