lt.monarch.chart.spc
Class CpkChart
java.lang.Object
lt.monarch.chart.AbstractView<PaintTags>
lt.monarch.chart.AbstractChart<PaintTags,GeneralProjector>
lt.monarch.chart.MultiSeriesChartBase<ChartPaintTags,Projector2D>
lt.monarch.chart.chart2D.Chart2D
lt.monarch.chart.spc.SpcChart
lt.monarch.chart.spc.HistogramChart
lt.monarch.chart.spc.CpkChart
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Chart<Projector2D>, ChartEntity, StyleEditorEntity, View
public class CpkChart
extends HistogramChart
Cpk chart. Displays histogram chart with additional information.
Values are calculated using formulas:
http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.6.1.html
- See Also:
- Serialized Form
| Fields inherited from class lt.monarch.chart.spc.HistogramChart |
barsDataModel, calc, groupsCount, histogramBarSeries, infoMarker, line, lineDataModel, lsl, lslMarkerLine, meanMarkerLine, nf, usl, uslMarkerLine, xMapper, xMapperLabel, yMapperLeft, yMapperRight |
Constructor Summary
CpkChart(ChartDataModel dataModel,
int groupsCount,
java.lang.Double lsl,
java.lang.Double usl,
java.lang.Double target)
Constructs Cpk chart |
Method Summary
protected java.lang.String |
buildText(java.lang.String prefix,
java.lang.Double value)
|
protected java.lang.String |
buildText(java.lang.String prefix,
java.lang.Double value,
java.lang.String suffix)
|
protected java.lang.String |
getInfoMarkerText(double mean,
double std)
Returns string value for info marker. |
java.lang.Double |
getT()
Specification target value. |
void |
setChartData(ChartDataModel dataModel,
int groupsCount,
java.lang.Double lsl,
java.lang.Double usl,
java.lang.Double target)
Sets all histogram chart data with LSL and USL lines |
void |
setT(java.lang.Double t)
Specification target value. |
| Methods inherited from class lt.monarch.chart.spc.HistogramChart |
getBounds, getDistributionCurveSeries, getGroupsCount, getHistogramBarSeries, getInfoMarker, getLsl, getLslMarkerLine, getMeanMarkerLine, getUsl, getUslMarkerLine, setChartData, setGroupsCount, setLsl, setUsl, updateAxes, updateChart, updateGrid, updateHistogramSeries, updateInfoMarker, updateLineSeries, updateLslMarkerLine, updateMappers, updateMeanMarkerLine, updateUslMarkerLine |
| Methods inherited from class lt.monarch.chart.spc.SpcChart |
getBottomAxis, getDataModel, getGrid, getLeftAxis, getMax, getMax, getMin, getMin, getRightAxis, resetDataModel, setDataModel, setNoData, setNoData, trim |
| Methods inherited from class lt.monarch.chart.chart2D.Chart2D |
addBottomXAxis, addLeftYAxis, addRightYAxis, addTopXAxis, addXAxis, addYAxis, dispose, finalize, getBreakLine, getChartAreaMargin, getMinAxisWidth, getProjector, getStackedXAxisMargin, getStackedYAxisMargin, getXAxes, getYAxes, layout, paintChart, projector, removeBottomXAxis, removeLeftYAxis, removeRightYAxis, removeTopXAxis, removeXAxis, removeYAxis, setBottomXAxis, setBreakLine, setChartAreaMargin, setLeftYAxis, setMinAxisWidth, setRightYAxis, setStackedBottomXAxisProportion, setStackedLeftYAxisProportion, setStackedRightYAxisProportion, setStackedTopXAxisProportion, setStackedXAxisMargin, setStackedXAxisProportion, setStackedYAxisMargin, setStackedYAxisProportion, setTopXAxis, setXAxis, setXAxis, setYAxis, setYAxis |
| Methods inherited from class lt.monarch.chart.MultiSeriesChartBase |
activate, addObject, createLegendEntries, deactivate, findObject, getContainingObjects, getObjects, layoutObjects, removeObject, replaceObject, reset, setObjects, shiftObjects |
| Methods inherited from class lt.monarch.chart.AbstractChart |
addPlugin, disableDrafMode, enableDraftMode, fillEntitySheet, getDescription, getLocale, getParentEntity, getPlugins, getShortDescription, invalidate, isDraftMode, paint, removePlugin, removePlugins, setDraftMode, setLocale |
| Methods inherited from class lt.monarch.chart.AbstractView |
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getChartObjectBounds, getContainer, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPaintMode, getPaintStyle, getParent, getPreferredSize, getSize, getSize, getStyle, getStyle, getWidth, getX, getY, isLayoutValid, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPaintMode, setPreferredSize, setSize, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.View |
addViewListener, clone, container, getAlignmentX, getAlignmentY, getBounds, getGraphicsType, getHeight, getMaximumSize, getMinimumSize, getPreferredSize, getSize, getSize, getStyle, getWidth, getX, getY, removeViewListener, render, repaint, repaint, setAlignmentX, setAlignmentY, setBounds, setBounds, setContainer, setLocation, setMaximumSize, setMinimumSize, setPreferredSize, setSize, validate |
cpkCalc
protected CpkValuesCalculator cpkCalc
target
protected java.lang.Double target
CpkChart
public CpkChart(ChartDataModel dataModel,
int groupsCount,
java.lang.Double lsl,
java.lang.Double usl,
java.lang.Double target)
throws DataFormatException
- Constructs Cpk chart
- Parameters:
dataModel - input data model.groupsCount - groups count for histogram bars.lsl - lower specification level.usl - upper specification level.target - target specification value.
- Throws:
DataFormatException - if invalid (less than 1) groups count is provided
setChartData
public void setChartData(ChartDataModel dataModel,
int groupsCount,
java.lang.Double lsl,
java.lang.Double usl,
java.lang.Double target)
throws DataFormatException
- Sets all histogram chart data with LSL and USL lines
- Parameters:
dataModel - histogram datagroupsCount - bins countlsl - LSL valueusl - USL valuetarget - target specification value.
- Throws:
DataFormatException
getInfoMarkerText
protected java.lang.String getInfoMarkerText(double mean,
double std)
throws DataFormatException
- Description copied from class:
HistogramChart
- Returns string value for info marker. This value is compound of two values - mean and standard deviation.
- Overrides:
getInfoMarkerText in class HistogramChart
- Returns:
- Throws:
DataFormatException
buildText
protected java.lang.String buildText(java.lang.String prefix,
java.lang.Double value)
buildText
protected java.lang.String buildText(java.lang.String prefix,
java.lang.Double value,
java.lang.String suffix)
getT
public java.lang.Double getT()
- Specification target value.
setT
public void setT(java.lang.Double t)
throws DataFormatException
- Specification target value.
- Throws:
DataFormatException