|
|||||||||
| 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.BoxWhiskerChart
public class BoxWhiskerChart extends SpcChart
The box and whiskers chart displays the three quartiles, the minimum, and the maximum of the data on a rectangular box. Chart values are calculated using the following formulas: http://www.singleton-labs.com/doc/mcharts/guide/#guide/chart-types/4.8.1.html
| Modifier and Type | Field and Description |
|---|---|
protected ChartDataModel |
bottomWhiskerData
|
protected ChartDataModel |
boxData
|
protected BarSeries |
boxSeries
|
protected BoxWhiskerValuesCalculator |
calc
|
protected double |
markerMaxSize_median
|
protected ChartDataModel |
medianData
|
protected AbstractMarker |
medianMarker
|
protected LineSeries |
medianSeries
|
protected Orientation |
orientation
|
protected BoxWhiskerSeries |
series
|
protected ChartDataModel |
topWhiskerData
|
protected AxisMapper |
xMapper
|
protected AxisMapper |
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 |
|---|
BoxWhiskerChart()
Constructs empty box and whiskers chart. |
BoxWhiskerChart(ChartDataModel dataModel,
Orientation orientation)
Constructs box and whiskers chart. |
| Modifier and Type | Method and Description |
|---|---|
BarSeries |
getBoxSeries()
Returns box series |
AbstractMarker |
getMedianMarker()
Returns median marker |
LineSeries |
getMedianSeries()
Returns median series |
BoxWhiskerSeries |
getSeries()
Box and whiskers series. |
PaintStyle<AbstractPaintTags> |
getWhiskerLineStyle()
Returns whisker line draw style |
AbstractMarker |
getWhiskerMarker()
Returns whisker marker. |
protected void |
paintChart(AbstractGraphics g)
Paints the chart. |
void |
setMedianMarker(AbstractMarker marker)
Sets median marker |
void |
setWhiskerMarker(AbstractMarker marker)
Sets whisker marker. |
protected void |
updateAxes()
Creates chart axes on chart creation. |
protected void |
updateBoxSeries()
Creates box series on chart creation or updates it on chart data model change. |
protected void |
updateBoxWhiskerSeries()
Creates box whisker series on chart creation or updates it on chart data model change. |
protected void |
updateChart()
Redraws chart |
protected void |
updateGrid()
Creates chart grid on chart creation. |
protected void |
updateMappers(java.util.List<java.lang.String> labels)
Creates chart axes mappers on chart creation or updates them on chart data model change. |
protected void |
updateMedianSeries()
Creates median 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 BoxWhiskerValuesCalculator calc
protected ChartDataModel boxData
protected ChartDataModel medianData
protected ChartDataModel topWhiskerData
protected ChartDataModel bottomWhiskerData
protected BoxWhiskerSeries series
protected BarSeries boxSeries
protected LineSeries medianSeries
protected AbstractMarker medianMarker
protected AxisMapper yMapper
protected AxisMapper xMapper
protected Orientation orientation
protected double markerMaxSize_median
| Constructor Detail |
|---|
public BoxWhiskerChart()
throws DataFormatException
DataFormatException
public BoxWhiskerChart(ChartDataModel dataModel,
Orientation orientation)
throws DataFormatException
dataModel - chart input data.orientation - chart orientationDataFormatException| Method Detail |
|---|
public BoxWhiskerSeries getSeries()
public BarSeries getBoxSeries()
protected void updateChart()
throws DataFormatException
SpcChart
updateChart in class SpcChartDataFormatExceptionprotected void updateMappers(java.util.List<java.lang.String> labels)
protected void updateAxes()
protected void updateGrid()
protected void updateBoxWhiskerSeries()
protected void updateBoxSeries()
protected void updateMedianSeries()
protected void paintChart(AbstractGraphics g)
MultiSeriesChartBaselayout methods for AbstractBarSeries
are called. Layout method itself is not static, but bar and series spacing access methods are
static. All chart objects are drawn.
paintChart in class Chart2Dg - the Graphics context in which chart will be paintedAbstractBarSeries.layout(int, int)public AbstractMarker getWhiskerMarker()
public void setWhiskerMarker(AbstractMarker marker)
marker - new whisker markerpublic AbstractMarker getMedianMarker()
public void setMedianMarker(AbstractMarker marker)
marker - new median markerpublic LineSeries getMedianSeries()
public PaintStyle<AbstractPaintTags> getWhiskerLineStyle()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||