|
|||||||||
| 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
public abstract class SpcChart extends Chart2D
Base class for SPC charts
| Modifier and Type | Field and Description |
|---|---|
protected Axis2DX |
bottomAxis
|
protected ChartDataModel |
dataModel
|
protected Grid |
grid
|
protected Axis2DY |
leftAxis
|
protected Axis2DY |
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 |
|---|
SpcChart()
Constructs SPC chart. |
SpcChart(ChartDataModel dataModel)
Constructs SPC chart. |
| Modifier and Type | Method and Description |
|---|---|
Axis2DX |
getBottomAxis()
Returns bottom axis |
ChartDataModel |
getDataModel()
Chart input data model. |
Grid |
getGrid()
Returns grid object on the chart (if available) |
Axis2DY |
getLeftAxis()
Returns left axis |
protected double |
getMax(ChartDataModel dataModel)
Finds the maximum value in the data model. |
protected double |
getMax(ChartDataModel dataModel,
double max)
Finds the maximum value in the data model. |
protected double |
getMin(ChartDataModel dataModel)
Finds the minimum value in the data model. |
protected double |
getMin(ChartDataModel dataModel,
double min)
Finds the minimum value in the data model. |
Axis2DY |
getRightAxis()
Returns right axis |
protected ChartDataModel |
resetDataModel(ChartDataModel model)
Removes data from the data model. |
void |
setDataModel(ChartDataModel dataModel)
Assigns input data model to the chart. |
void |
setNoData(DataFormatException ex)
Sets no data information on the chart. |
void |
setNoData(java.lang.String message)
Sets no data information on the chart. |
protected void |
trim(ChartDataModel dataModel)
Removes empty data rows from data model. |
protected void |
updateChart()
Redraws chart |
| 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 dataModel
protected Grid grid
protected Axis2DX bottomAxis
protected Axis2DY leftAxis
protected Axis2DY rightAxis
| Constructor Detail |
|---|
public SpcChart()
public SpcChart(ChartDataModel dataModel)
throws DataFormatException
dataModel - input data model.when - input data are invalidDataFormatException| Method Detail |
|---|
public Axis2DY getLeftAxis()
public Axis2DY getRightAxis()
public Axis2DX getBottomAxis()
public Grid getGrid()
protected double getMax(ChartDataModel dataModel,
double max)
dataModel - input data mode.max - initial maximum value.
protected double getMin(ChartDataModel dataModel,
double min)
dataModel - input data mode.min - initial minimum value.
protected double getMin(ChartDataModel dataModel)
throws DataFormatException
dataModel - input data model.DataFormatException - when input data are invalid (does not contain only numbers).
protected double getMax(ChartDataModel dataModel)
throws DataFormatException
dataModel - input data model.DataFormatException - when input data are invalid (does not contain only numbers).public ChartDataModel getDataModel()
public void setDataModel(ChartDataModel dataModel)
throws DataFormatException
dataModel - chat input data model.when - input data are invalidDataFormatException
protected void updateChart()
throws DataFormatException
DataFormatExceptionprotected void trim(ChartDataModel dataModel)
dataModel - source and destination data model.public void setNoData(DataFormatException ex)
ex - error exceptionpublic void setNoData(java.lang.String message)
message - error messageprotected ChartDataModel resetDataModel(ChartDataModel model)
model - input data model.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||