|
|||||||||
| 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.ScatterChart
public class ScatterChart extends SpcChart
Scatter chart. Displays relation between two parameters and a trend line. Values are calculated using formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.7.1.html
| Modifier and Type | Field and Description |
|---|---|
protected TextMarker |
correlationCoefficientMarker
|
protected ChartDataModel |
scatterDataModel
|
protected AbstractMarker |
scatterMarker
|
protected LineSeries |
scatterSeries
|
protected TextMarker |
trendEquationMarker
|
protected ChartDataModel |
trendLineDataModel
|
protected LineSeries |
trendLineSeries
|
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 |
|---|
ScatterChart(ChartDataModel dataModel)
Constructs scatter chart from the given data model |
| Modifier and Type | Method and Description |
|---|---|
TextMarker |
getCorrelationCoefficientMarker()
Returns correlation coefficient marker Use setVisible(false) to hide it. |
AbstractMarker |
getScatterMarker()
Returns scatter points series marker. |
LineSeries |
getScatterSeries()
Returns scatter points series. |
TextMarker |
getTrendEquationMarker()
Returns trend equation marker Use setVisible(false) to hide it. |
LineSeries |
getTrendLineSeries()
Returns trend equation line series. |
void |
setScatterMarker(AbstractMarker marker)
Sets new marker for scatter series. |
protected void |
updateAxes(ScatterValuesCalculator calc)
Updates chart axes. |
protected void |
updateChart()
Redraws chart |
protected void |
updateCorrelationMarker(ScatterValuesCalculator calc,
double minx,
double maxx,
double miny,
double maxy)
Updates correlation marker. |
protected void |
updateEquationMarker(ScatterValuesCalculator calc,
double minx,
double maxx,
double miny,
double maxy)
Updates trend line marker. |
protected void |
updateGrid()
Updates grid. |
protected void |
updateMappers(double minx,
double miny,
double maxx,
double maxy)
Updates chart mappers. |
protected void |
updateScatter(ScatterValuesCalculator calc)
Updates scatter series. |
protected void |
updateTrendLine(ScatterValuesCalculator calc)
Updates chart trend line. |
| 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 MathAxisMapper yMapper
protected MathAxisMapper xMapper
protected ChartDataModel trendLineDataModel
protected ChartDataModel scatterDataModel
protected AbstractMarker scatterMarker
protected LineSeries scatterSeries
protected LineSeries trendLineSeries
protected TextMarker trendEquationMarker
protected TextMarker correlationCoefficientMarker
| Constructor Detail |
|---|
public ScatterChart(ChartDataModel dataModel)
throws DataFormatException
dataModel - scatter chart data.DataFormatException| Method Detail |
|---|
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatException
protected void updateMappers(double minx,
double miny,
double maxx,
double maxy)
minx - minimum xminy - minimum ymaxx - maximum xmaxy - maximum y
protected void updateAxes(ScatterValuesCalculator calc)
throws DataFormatException
calc - chart values calculatorDataFormatExceptionprotected void updateGrid()
protected void updateTrendLine(ScatterValuesCalculator calc)
throws DataFormatException
calc - chart values calculator.DataFormatException
protected void updateScatter(ScatterValuesCalculator calc)
throws DataFormatException
calc - chart values calculator.DataFormatException
protected void updateCorrelationMarker(ScatterValuesCalculator calc,
double minx,
double maxx,
double miny,
double maxy)
throws DataFormatException
calc - chart values calculatorminx - chart minimum xmaxx - chart maximum xminy - chart minimum ymaxy - chart maximum yDataFormatException - when invalid chart data is supplied
protected void updateEquationMarker(ScatterValuesCalculator calc,
double minx,
double maxx,
double miny,
double maxy)
throws DataFormatException
calc - chart values calculatorminx - chart minimum xmaxx - chart maximum xminy - chart minimum ymaxy - chart maximum yDataFormatException - when invalid chart data is suppliedpublic LineSeries getTrendLineSeries()
public TextMarker getTrendEquationMarker()
public TextMarker getCorrelationCoefficientMarker()
public LineSeries getScatterSeries()
public AbstractMarker getScatterMarker()
public void setScatterMarker(AbstractMarker marker)
marker - new marker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||