|
|||||||||
| 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.BarChart
public class BarChart extends SpcChart
Bar chart
| Modifier and Type | Field and Description |
|---|---|
protected BarSeries |
bar
|
protected ChartDataModel |
barsModel
|
protected LinePlotValuesCalculator |
calc
|
protected java.lang.Double |
lsl
|
protected VerticalMarkerLine |
lslMarkerLine
|
protected VerticalMarkerLine |
meanMarkerLine
|
protected java.text.NumberFormat |
nf
|
protected java.lang.Double |
usl
|
protected VerticalMarkerLine |
uslMarkerLine
|
protected MathAxisMapper |
xMapper
|
protected MathAxisMapper |
yMapperLeft
|
protected MathAxisMapper |
yMapperRight
|
| 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 |
|---|
BarChart(ChartDataModel dataModel)
Constructs a Bar chart from the supplied data model without LSL and USL lines. |
BarChart(ChartDataModel dataModel,
java.lang.Double lsl,
java.lang.Double usl)
Constructs a Bar chart from the supplied data model with LSL and USL lines. |
| Modifier and Type | Method and Description |
|---|---|
protected lt.monarch.chart.spc.ChartBounds |
getBounds(java.util.LinkedList<ChartDataInfo> items)
|
java.lang.Double |
getLsl()
Returns lower specification limit |
VerticalMarkerLine |
getLslMarkerLine()
Returns lower specification limit marker line use setVisible(false) to hide it. |
BarSeries |
getSeries()
Returns BarSeries |
java.lang.Double |
getUsl()
Returns upper specification limit |
VerticalMarkerLine |
getUslMarkerLine()
Returns upper specification limit marker line Use setVisible(false) to hide it. |
void |
setChartData(ChartDataModel dataModel,
java.lang.Double lsl,
java.lang.Double usl)
Sets bar chart data with LSL and USL lines |
void |
setLsl(java.lang.Double lsl)
Sets lower specification limit |
void |
setUsl(java.lang.Double usl)
Sets upper specification limit |
protected void |
updateAxes()
Creates chart axes on chart creation. |
protected void |
updateChart()
Redraws chart |
protected void |
updateGrid()
Creates chart grid 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(lt.monarch.chart.spc.ChartBounds bounds,
int dataCount)
Creates axes mappers on chart creation or updates them on chart data model change. |
protected void |
updateSeries()
Creates Bar series 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 LinePlotValuesCalculator calc
protected BarSeries bar
protected MathAxisMapper xMapper
protected MathAxisMapper yMapperLeft
protected MathAxisMapper yMapperRight
protected ChartDataModel barsModel
protected VerticalMarkerLine uslMarkerLine
protected VerticalMarkerLine lslMarkerLine
protected VerticalMarkerLine meanMarkerLine
protected java.text.NumberFormat nf
protected java.lang.Double lsl
protected java.lang.Double usl
| Constructor Detail |
|---|
public BarChart(ChartDataModel dataModel)
throws DataFormatException
dataModel - data modelDataFormatException
public BarChart(ChartDataModel dataModel,
java.lang.Double lsl,
java.lang.Double usl)
throws DataFormatException
dataModel - data modellsl - LSL valueusl - USL valueDataFormatException| Method Detail |
|---|
public void setChartData(ChartDataModel dataModel,
java.lang.Double lsl,
java.lang.Double usl)
throws DataFormatException
dataModel - histogram datalsl - LSL valueusl - USL valueDataFormatExceptionpublic BarSeries getSeries()
public VerticalMarkerLine getUslMarkerLine()
public VerticalMarkerLine getLslMarkerLine()
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatExceptionprotected lt.monarch.chart.spc.ChartBounds getBounds(java.util.LinkedList<ChartDataInfo> items)
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
DataFormatException
protected void updateMappers(lt.monarch.chart.spc.ChartBounds bounds,
int dataCount)
protected void updateLslMarkerLine()
protected void updateUslMarkerLine()
protected void updateGrid()
protected void updateAxes()
protected void updateSeries()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||