|
|||||||||
| 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.ParetoChart
public class ParetoChart extends SpcChart
Pareto chart. Contains bars and the cumulative line. Values are calculated using formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.4.1.html
| Modifier and Type | Field and Description |
|---|---|
protected BarSeries |
bar
|
protected ChartDataModel |
barsModel
|
protected ParetoValuesCalculator |
calc
|
protected HorizontalMarkerLine |
hMarkerLine
|
protected LineSeries |
line
|
protected AbstractMarker |
lineMarker
|
protected ChartDataModel |
lineModel
|
protected LabelAxisMapper |
xMapper
|
protected MathAxisMapper |
yMapper1
|
protected MathAxisMapper |
yMapper2
|
| 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 |
|---|
ParetoChart(ChartDataModel dataModel)
Constructs a Pareto chart from the supplied data model. |
| Modifier and Type | Method and Description |
|---|---|
HorizontalMarkerLine |
getCriticalMarkerLine()
Returns critical marker line |
LineSeries |
getCumulativeLineSeries()
Returns cumulative line series representing the sum of bar values. |
AbstractMarker |
getLineMarker()
Returns cumulative line marker |
BarSeries |
getParetoSeries()
Returns BarSeries representing Pareto bars. |
void |
setLineMarker(AbstractMarker marker)
Set cumulative line marker. |
protected void |
updateAxes()
Creates chart axes on chart creation. |
protected void |
updateChart()
Redraws chart |
protected void |
updateCriticalMarkerLine()
Creates critical marker line on chart creation. |
protected void |
updateCumulativeLineSeries()
Creates cumulative line series chart creation. |
protected void |
updateGrid()
Creates grid line on chart creation. |
protected void |
updateMappers(java.util.List<java.lang.String> labels,
int maxValue)
Creates axes mappers on chart creation or updates them on chart data model change. |
protected void |
updateParetoSeries()
Creates pareto series on chart creation. |
| 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 ParetoValuesCalculator calc
protected AbstractMarker lineMarker
protected BarSeries bar
protected LineSeries line
protected HorizontalMarkerLine hMarkerLine
protected LabelAxisMapper xMapper
protected MathAxisMapper yMapper1
protected MathAxisMapper yMapper2
protected ChartDataModel lineModel
protected ChartDataModel barsModel
| Constructor Detail |
|---|
public ParetoChart(ChartDataModel dataModel)
throws DataFormatException
DataFormatException| Method Detail |
|---|
public BarSeries getParetoSeries()
public LineSeries getCumulativeLineSeries()
public AbstractMarker getLineMarker()
public HorizontalMarkerLine getCriticalMarkerLine()
public void setLineMarker(AbstractMarker marker)
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatException
protected void updateMappers(java.util.List<java.lang.String> labels,
int maxValue)
protected void updateAxes()
protected void updateParetoSeries()
protected void updateCumulativeLineSeries()
protected void updateCriticalMarkerLine()
protected void updateGrid()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||