lt.monarch.chart.spc.math
Class LinePlotValuesCalculator

java.lang.Object
  extended by lt.monarch.chart.spc.math.ValuesCalculator
      extended by lt.monarch.chart.spc.math.LinePlotValuesCalculator

public class LinePlotValuesCalculator
extends ValuesCalculator

Calculates values for line plot chart.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.spc.math.ValuesCalculator
nullName
 
Constructor Summary
Constructor and Description
LinePlotValuesCalculator()
           
 
Method Summary
Modifier and Type Method and Description
 int getModels(ChartDataModel barsModel, ChartDataModel srcModel, java.util.LinkedList<ChartDataInfo> items)
          Calculates values for the LinePlot chart.
protected  void validateDataModel(ChartDataModel dataModel)
          Validates data model.
 
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
 

Constructor Detail

LinePlotValuesCalculator

public LinePlotValuesCalculator()
Method Detail

getModels

public int getModels(ChartDataModel barsModel,
                     ChartDataModel srcModel,
                     java.util.LinkedList<ChartDataInfo> items)
              throws DataFormatException
Calculates values for the LinePlot chart.

Parameters:
barsModel - the destination model for bars.
srcModel - the input data model.
items - collection to put in elements and their counts.
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.