|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.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.ControlChart
public class ControlChart extends SpcChart
Control chart. Contains UCL, LCL, center and data lines. Chart values are calculated using formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.3.1.html
| Fields inherited from class lt.monarch.chart.spc.SpcChart |
|---|
bottomAxis, dataModel, grid, leftAxis, rightAxis |
| Fields inherited from class lt.monarch.chart.chart2D.Chart2D |
|---|
projector |
| Fields inherited from class lt.monarch.chart.AbstractChart |
|---|
draftMode, locale, plugins |
| Fields inherited from class lt.monarch.chart.AbstractView |
|---|
layoutInvalid, paintStyle, style |
| Constructor and Description |
|---|
ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec)
Constructs control chart without LSL and USL lines |
ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
java.lang.Double lsl,
java.lang.Double usl)
Constructs control chart with LSL and USL lines |
ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
int npSamplesCount)
Constructs control chart without LSL and USL lines |
ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
int npSamplesCount,
java.lang.Double lsl,
java.lang.Double usl)
Constructs control chart with LSL and USL lines |
| Modifier and Type | Method and Description |
|---|---|
LineSeries |
getCenterLine()
Returns center line series. |
TextMarker |
getCenterTextMarker()
Returns center line text marker. |
LineSeries |
getLclExceedLine()
Returns line showing when measurement line data is lower than lower control limit line. |
LineSeries |
getLclLine()
Returns lower control limit line series. |
TextMarker |
getLclTextMarker()
Returns lower control limit text marker. |
java.lang.Double |
getLsl()
Returns lower specification limit |
LineSeries |
getMeasurementsLine()
Returns data line series. |
AbstractMarker |
getMeasurementsLineMarker()
Returns data line marker. |
int |
getNpSamplesCount()
Returns samples count for np-chart |
LineSeries |
getUclExceedLine()
Returns line showing when measurement line exceeds upper control limit line. |
LineSeries |
getUclLine()
Returns upper control limit line series. |
TextMarker |
getUclTextMarker()
Returns upper control limit text marker. |
java.lang.Double |
getUsl()
Returns upper specification limit |
boolean |
isShowCLExceedLines()
Return value showing if uclExceedLine and lclExceedLine are visible (true) or hidden(true) |
boolean |
isShowPercentAxis()
When true, the y axis shows percents instead of proportion values. |
void |
setChartData(ChartDataModel dataModel,
int npSamplesCount,
java.lang.Double lsl,
java.lang.Double usl)
Sets chart data. |
void |
setLsl(java.lang.Double lsl)
Sets lower specification limit |
void |
setMeasurementsLineMarker(AbstractMarker marker)
Sets new marker for measurement line series. |
void |
setNpSamplesCount(int npSamplesCount)
Sets samples count for np-chart. |
void |
setShowCLExceedLines(boolean showExceedLines)
Sets uclExceedLine and lclExceedLine visible or hidden |
void |
setShowPercentAxis(boolean showPercentAxis)
When true, the y axis shows percents instead of proportion values. |
void |
setUsl(java.lang.Double usl)
Sets upper specification limit |
protected void |
updateAxes()
Creates chart axes on chart creation. |
protected void |
updateCenterLine()
Creates center line on chart creation. |
protected void |
updateChart()
Redraws chart |
protected void |
updateGrid()
Creates chart grid on chart creation. |
protected void |
updateLclExceedLine()
Creates lower control exceed line-marker on chart creation. |
protected void |
updateLclLine()
Creates lower control line on chart creation. |
protected void |
updateLslMarkerLine()
Creates lower specification level marker line on chart creation or updates it on chart data model change. |
protected void |
updateMappers()
Creates chart axes mappers on chart creation or updates them on chart data model change. |
protected void |
updateMeasurementsLine()
Creates measurements line on chart creation. |
protected void |
updateUclExceedLine()
Creates upper control exceed line-marker on chart creation. |
protected void |
updateUclLine()
Creates upper control line on chart creation. |
protected void |
updateUslMarkerLine()
Creates upper specification level marker line on chart creation or updates it on chart data model change. |
| 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.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 |
| Field Detail |
|---|
protected ChartDataModel uslLineData
protected ChartDataModel lslLineData
protected LineSeries uslLine
protected LineSeries lslLine
protected java.text.NumberFormat nf
protected ChartDataModel centerLineData
protected ChartDataModel lclLineData
protected ChartDataModel uclLineData
protected java.lang.Object[] labels
protected LineSeries centerLine
protected boolean showPercentAxis
protected boolean showCLExceedLines
protected TextMarker lclTextMarker
protected TextMarker uclTextMarker
protected TextMarker lslTextMarker
protected TextMarker uslTextMarker
protected TextMarker centerTextMarker
protected AbstractMarker measurementsLineMarker
protected LineSeries measurementsLine
protected LineSeries lclLine
protected LineSeries uclLine
protected LineSeries lclExceedLine
protected LineSeries uclExceedLine
protected ControlChartType chartType
protected ControlValuesCalculator calc
protected int npSamplesCount
protected java.lang.Double lsl
protected java.lang.Double usl
protected LabelAxisMapper xMapper
protected MathAxisMapper yMapper
protected ChartDataModel measurementsData
| Constructor Detail |
|---|
public ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec)
throws DataFormatException
dataModel - input data model.chartTypec - control chart type.DataFormatException
public ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
int npSamplesCount)
throws DataFormatException
dataModel - input data model.chartTypec - control chart type.npSamplesCount - samples count for np-chart.DataFormatException
public ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
java.lang.Double lsl,
java.lang.Double usl)
throws DataFormatException
dataModel - input data model.chartTypec - control chart type.lsl - LSL valueusl - USL valueDataFormatException
public ControlChart(ChartDataModel dataModel,
ControlChartType chartTypec,
int npSamplesCount,
java.lang.Double lsl,
java.lang.Double usl)
throws DataFormatException
dataModel - input data model.chartTypec - control chart type.npSamplesCount - samples count for np-chart.lsl - LSL valueusl - USL valueDataFormatException| Method Detail |
|---|
public void setChartData(ChartDataModel dataModel,
int npSamplesCount,
java.lang.Double lsl,
java.lang.Double usl)
throws DataFormatException
dataModel - input data model.npSamplesCount - samples count for np-chart.lsl - LSL valueusl - USL valueDataFormatExceptionpublic LineSeries getCenterLine()
public LineSeries getMeasurementsLine()
public LineSeries getLclLine()
public LineSeries getUclLine()
public LineSeries getUclExceedLine()
public LineSeries getLclExceedLine()
public AbstractMarker getMeasurementsLineMarker()
public void setMeasurementsLineMarker(AbstractMarker marker)
marker - new marker
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatExceptionprotected void updateMappers()
protected void updateAxes()
protected void updateGrid()
protected void updateMeasurementsLine()
protected void updateCenterLine()
protected void updateLclLine()
protected void updateUclLine()
protected void updateUclExceedLine()
protected void updateLclExceedLine()
protected void updateLslMarkerLine()
protected void updateUslMarkerLine()
public java.lang.Double getLsl()
public void setLsl(java.lang.Double lsl)
throws DataFormatException
DataFormatExceptionpublic java.lang.Double getUsl()
public void setUsl(java.lang.Double usl)
throws DataFormatException
DataFormatExceptionpublic int getNpSamplesCount()
public void setNpSamplesCount(int npSamplesCount)
throws DataFormatException
DataFormatExceptionpublic TextMarker getLclTextMarker()
public TextMarker getUclTextMarker()
public TextMarker getCenterTextMarker()
public boolean isShowPercentAxis()
public void setShowPercentAxis(boolean showPercentAxis)
public boolean isShowCLExceedLines()
public void setShowCLExceedLines(boolean showExceedLines)
showExceedLines - true if lines should be visible.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||