|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfg.oc.logfileanalyzer.histogram.AbstractHistogram
public abstract class AbstractHistogram
Abstract class for histograms. Inherit from this abstract class when creating
new histograms. The calculateHistogramData()
-method has to
provide the data displayed in the histogram.
Field Summary | |
---|---|
(package private) String |
description
Describes this histogram. |
private int |
numberOfVisibleClassifiers
Number of classifiers shown in the histogram |
Constructor Summary | |
---|---|
AbstractHistogram(String _description)
Constructor. |
Method Summary | |
---|---|
abstract Vector<Double> |
calculateHistogramData(DefaultTableModel _selectedTable)
Abstract method. |
private JPanel |
createErrorPanel(String _text)
Creates a panel for error messages. |
JPanel |
createHistogram(DataElement _dataElement,
int _selectedTableId,
double _lowerLimit,
double _upperLimit)
Returns a panel containing a histogram. |
(package private) JPanel |
createHistogram(Vector<Double> _histogramData,
double _lowerLimit,
double _upperLimit)
Returns a panel containing a histogram. |
int |
getNumberOfVisibleClassifiers()
Return the number of classifiers shown in the histogram. |
String |
toString()
Returns a description for this histogram. |
(package private) boolean |
valueWithinLimits(double _value,
double _lowerLimit,
double _upperLimit)
Tests if a given value lies within two limits. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
String description
private int numberOfVisibleClassifiers
Constructor Detail |
---|
public AbstractHistogram(String _description)
_description
- a description that is used for identification in the histogram
selection and as histogram titleMethod Detail |
---|
public String toString()
toString
in class Object
public JPanel createHistogram(DataElement _dataElement, int _selectedTableId, double _lowerLimit, double _upperLimit)
_dataElement
- a DataElement
containing the classifier sets of
an iteration_selectedTableId
- identifier of the selected table (0
for
population, 1
for match set, 2
for action set)_lowerLimit
- the lower limit that was entered by the user_upperLimit
- the upper limit that was entered by the user
JPanel
containing the histogrampublic abstract Vector<Double> calculateHistogramData(DefaultTableModel _selectedTable)
_selectedTable
- the table that was selected by the user as basis for the
histogram
JPanel createHistogram(Vector<Double> _histogramData, double _lowerLimit, double _upperLimit)
_histogramData
- the data displayed in the histogram_lowerLimit
- the lower limit that was entered by the user_upperLimit
- the upper limit that was entered by the user
JPanel
containing the histogramprivate JPanel createErrorPanel(String _text)
_text
- the error message
boolean valueWithinLimits(double _value, double _lowerLimit, double _upperLimit)
_value
- the value that will be tested_lowerLimit
- the lower limit for the test_upperLimit
- the upper limit for the test
true
iff
_lowerlimit <= value <= _upperlimit
public int getNumberOfVisibleClassifiers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |