|
|||||||||
| 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.LinePlotChart
public class LinePlotChart extends SpcChart
Line Plot chart
| Modifier and Type | Field and Description |
|---|---|
protected BarSeries |
bar
|
protected ChartDataModel |
barsModel
|
protected LinePlotValuesCalculator |
calc
|
protected double |
scaleRatio
|
protected MathAxisMapper |
xMapper
|
protected MathAxisMapper |
yMapper
|
| 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 |
|---|
LinePlotChart(ChartDataModel dataModel,
double scaleRatio)
Constructs a LinePlot chart from the supplied data model. |
| Modifier and Type | Method and Description |
|---|---|
protected lt.monarch.chart.spc.ChartBounds |
getBounds(java.util.LinkedList<ChartDataInfo> items)
|
BarSeries |
getLinePlotSeries()
Returns BarSeries |
java.lang.Double |
getScaleRatio()
Returns scale ratio |
void |
setChartData(ChartDataModel dataModel,
double scaleRatio)
Sets all chart data |
void |
setScaleRatio(java.lang.Double scaleRatio)
Sets scale ratio |
protected void |
updateAxes()
Creates chart axes on chart creation. |
protected void |
updateChart()
Redraws chart |
protected void |
updateLinePlotSeries()
Creates LinePlot series on chart creation. |
protected void |
updateMappers(lt.monarch.chart.spc.ChartBounds bounds)
Creates axes mappers on chart creation or updates them 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 LinePlotValuesCalculator calc
protected double scaleRatio
protected BarSeries bar
protected MathAxisMapper xMapper
protected MathAxisMapper yMapper
protected ChartDataModel barsModel
| Constructor Detail |
|---|
public LinePlotChart(ChartDataModel dataModel,
double scaleRatio)
throws DataFormatException
dataModel - data modelscaleRatio - initial scale ratioDataFormatException| Method Detail |
|---|
public void setChartData(ChartDataModel dataModel,
double scaleRatio)
throws DataFormatException
dataModel - data modelscaleRatio - initial scale ratioDataFormatExceptionpublic BarSeries getLinePlotSeries()
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatExceptionprotected lt.monarch.chart.spc.ChartBounds getBounds(java.util.LinkedList<ChartDataInfo> items)
protected void updateMappers(lt.monarch.chart.spc.ChartBounds bounds)
protected void updateAxes()
protected void updateLinePlotSeries()
public java.lang.Double getScaleRatio()
public void setScaleRatio(java.lang.Double scaleRatio)
throws DataFormatException
DataFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||