org.knime.base.node.viz.plotter
Interface DataProvider

All Known Subinterfaces:
BoxPlotDataProvider, LinRegDataProvider
All Known Implementing Classes:
AccuracyScorerNodeModel, BoxPlotNodeModel, ConditionalBoxPlotNodeModel, DefaultVisualizationNodeModel, HierarchicalClusterNodeModel, LiftChartNodeModel, LinRegLearnerNodeModel, PolyRegLearnerNodeModel

public interface DataProvider

The plotters rely on a DataProvider to get the data to visualize. It provides the data as a DataArray with the getDataArray(int), where the index can be used, if a NodeModel has two inports and both data should be visualized. Then the index provides means to determine which DataArray should be returned.

Author:
Fabian Dill, University of Konstanz

Field Summary
static int END
          Default end row for DataArray creation.
static int START
          Default start row for DataArray creation.
 
Method Summary
 DataArray getDataArray(int index)
          Provides the data that should be visualized.
 

Field Detail

START

static final int START
Default start row for DataArray creation.

See Also:
Constant Field Values

END

static final int END
Default end row for DataArray creation.

See Also:
Constant Field Values
Method Detail

getDataArray

DataArray getDataArray(int index)
Provides the data that should be visualized. The index can be used, if a NodeModel has two inports and both data should be visualized. Then the index provides means to determine which DataArray should be returned.

Parameters:
index - if the data of more than one data table should be visualized.
Returns:
the data as a data array.


Copyright, 2003 - 2010. 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.