org.knime.base.node.viz.histogram.util
Class IntervalBinCreator<E extends BinDataModel>

java.lang.Object
  extended by org.knime.base.node.viz.histogram.util.IntervalBinCreator<E>
Type Parameters:
E - the BinDataModel implementation
Direct Known Subclasses:
FixedIntervalBinCreator, InteractiveIntervalBinCreator

public abstract class IntervalBinCreator<E extends BinDataModel>
extends Object

This class is a helper class of the BinningUtil class to create the different BinDataModels for fixed and interactive histogram.

Author:
Tobias Koetter, University of Konstanz

Constructor Summary
IntervalBinCreator()
           
 
Method Summary
abstract  void addBin(String binCaption, double lowerBound, double upperBound)
           
 List<E> createBins(DataColumnSpec colSpec, int numberOfBins)
           
abstract  void createList(int noOfBins)
           
abstract  List<E> getBins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalBinCreator

public IntervalBinCreator()
Method Detail

createList

public abstract void createList(int noOfBins)
Parameters:
noOfBins - the number of bins that will be added

addBin

public abstract void addBin(String binCaption,
                            double lowerBound,
                            double upperBound)
Parameters:
binCaption - the caption of the new bin
lowerBound - the left boundary of the bin
upperBound - the right boundary of the bin

getBins

public abstract List<E> getBins()
Returns:
the bins that where created

createBins

public List<E> createBins(DataColumnSpec colSpec,
                          int numberOfBins)
Parameters:
colSpec - the column specification
numberOfBins - the number of bins to create
Returns:
the created bins


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.