de.dfg.oc.logfileanalyzer.histogram
Class UniversalHistogram

java.lang.Object
  extended by de.dfg.oc.logfileanalyzer.histogram.AbstractHistogram
      extended by de.dfg.oc.logfileanalyzer.histogram.UniversalHistogram

public class UniversalHistogram
extends AbstractHistogram

Creates a histogram for any table column containing numbers. Simply pass the column name to the constructor.

Author:
Clemens Gersbacher, Holger Prothmann

Field Summary
 
Fields inherited from class de.dfg.oc.logfileanalyzer.histogram.AbstractHistogram
description
 
Constructor Summary
UniversalHistogram(String _columnName)
          Constructor.
 
Method Summary
 Vector<Double> calculateHistogramData(DefaultTableModel _selectedTable)
          Abstract method.
 
Methods inherited from class de.dfg.oc.logfileanalyzer.histogram.AbstractHistogram
createHistogram, createHistogram, getNumberOfVisibleClassifiers, toString, valueWithinLimits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniversalHistogram

public UniversalHistogram(String _columnName)
Constructor. Requires the name of the column that should be displayed.

Parameters:
_columnName - name of the column that is displayed in this histogram
Method Detail

calculateHistogramData

public Vector<Double> calculateHistogramData(DefaultTableModel _selectedTable)
Description copied from class: AbstractHistogram
Abstract method. Determines the data displayed in the histogram.

Specified by:
calculateHistogramData in class AbstractHistogram
Parameters:
_selectedTable - the table that was selected by the user as basis for the histogram
Returns:
the data that will be displayed in the histogram