lt.monarch.chart.spc.math
Class BoxWhiskerValuesCalculator
java.lang.Object
lt.monarch.chart.spc.math.ValuesCalculator
lt.monarch.chart.spc.math.BoxWhiskerValuesCalculator
public class BoxWhiskerValuesCalculator
extends ValuesCalculator
Calculates values for the box (and whiskers) chart.
Values are calculated using formulas:
http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.8.1.html
| Methods inherited from class lt.monarch.chart.spc.math.ValuesCalculator |
average, fill, fill, fillColumn, fillColumn, fillConstant, fillConstant, getAverage, getc4, getColumn, getd2, getd3, getD3, getD4, getDouble, getE, getF, getG, getH, isEmpty, isNconstant, validateDataModel, validateDataModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoxWhiskerValuesCalculator
public BoxWhiskerValuesCalculator()
getModels
public void getModels(java.util.List<java.lang.String> labels,
ChartDataModel boxModel,
ChartDataModel medianModel,
ChartDataModel bottomWhiskerModel,
ChartDataModel topWhiskerModel,
ChartDataModel srcModel)
throws DataFormatException
- Calculates values for the BoxWhisker chart.
- Parameters:
labels - the destination for box and whiskers chart labels.boxModel - the destination model for box series.meadianModel - the destination model for median series.bottomWhiskerModel - the destination model for bottom whisker.topWhiskerModel - the destination model for bottom whisker.srcModel - the input data model.
- Throws:
DataFormatException - when the input data are invalid.
validateDataModel
protected void validateDataModel(ChartDataModel dataModel)
throws DataFormatException
- Description copied from class:
ValuesCalculator
- Validates data model.
Checks if it satisfies chart type requirements.
- Specified by:
validateDataModel in class ValuesCalculator
- Parameters:
dataModel - input chart data model.
- Throws:
DataFormatException - when the data is invalid.