|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<Tags>
lt.monarch.chart.AbstractChartSeries<SeriesPaintTags,Projector>
lt.monarch.chart.chart2D.series.SupplementalPieSeries
public class SupplementalPieSeries extends AbstractChartSeries<SeriesPaintTags,Projector>
Displays a supplemental pie series composed of two pie series. The second series is automatically generated from the first using it's smallest elements.
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.AbstractChartSeries |
|---|
metaModel, model, modelValidator, seriesName, seriesTransform, showLegend, showNullValues, symbol, xMapper, yMapper, zMapper |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
SupplementalPieSeries(DataModel model)
Constructor without a meta data model and default plane mapper is for Cartesian coordinates. |
SupplementalPieSeries(DataModel model,
MetaDataModel metaModel)
Constructor without a default plane mapper is for Cartesian coordinates. |
SupplementalPieSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper)
Constructor with specified model, meta model and mapper. |
SupplementalPieSeries(DataModel model,
PlaneMapper mapper)
Constructor without a meta data model |
| Modifier and Type | Method and Description |
|---|---|
LegendEntry[] |
createLegendEntries()
Creates legend entries for the series. |
void |
draw(AbstractGraphics g)
Renders chart object on the Graphics context. |
PieSeries |
getMainSeries()
Returns main pie series. |
java.lang.Object |
getMaxValue(DataColumnType valType)
Note: internal use only! Gets maximum value that is used by series to fit into the chart |
java.lang.Object |
getMinValue(DataColumnType valType)
Note: internal use only! Gets minimum value that is used by series to fit into the chart |
Projector |
getProjector()
Returns modified projector. |
SupplementalPieStrategy<Projector> |
getStrategy()
Get series stategy. |
SupplementalPieStrategy.SupplementalPiePosition |
getSupplementalChartPosition()
Returns position of supplemental pie. |
PieSeries |
getSupplementalSeries()
Returns supplemental pie series. |
double |
getSupplementProjectionAreaRatio()
Returns supplemental series projection area ratio relative to main pie. |
double |
getSupplementValueRatio()
Return ratio of smallest elements used in supplement pie. |
protected void |
handleDataModelChangeEvent(DataModelChangeEvent ev)
Invoked when data model has changed. |
boolean |
isSupplementVisible()
Test whether supplement pie should be visible. |
void |
setChart(Chart chart)
Associates this object with a chart. |
void |
setSupplementalChartPosition(SupplementalPieStrategy.SupplementalPiePosition position)
Sets position of supplemental series. |
void |
setSupplementProjectionAreaRatio(double size)
Sets supplement pie projection area ratio relative to main pie. |
void |
setSupplementValueRatio(double ratio)
Sets ratio of smallest elements used in supplement pie. |
void |
setSupplementVisible(boolean visible)
Sets whether supplement pie should be visible. |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.ChartObject |
|---|
dispose, getChart, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getParent, getStyle |
| Constructor Detail |
|---|
public SupplementalPieSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper)
model - series data model.metaModel - meta data model.mapper - mapper, used to map output to a plane in a n-dimensional space
public SupplementalPieSeries(DataModel model,
PlaneMapper mapper)
model - series data modelmapper - mapper, used to map output to a plane in a n-dimensional space
public SupplementalPieSeries(DataModel model,
MetaDataModel metaModel)
metaModel - meta data model.model - series data model.public SupplementalPieSeries(DataModel model)
model - series data model| Method Detail |
|---|
public PieSeries getMainSeries()
public PieSeries getSupplementalSeries()
public SupplementalPieStrategy<Projector> getStrategy()
public Projector getProjector()
AbstractChartSeries
getProjector in class AbstractChartSeries<SeriesPaintTags,Projector>public void draw(AbstractGraphics g)
ChartObject
draw in interface ChartObjectdraw in class AbstractChartSeries<SeriesPaintTags,Projector>g - graphics contextpublic void setSupplementValueRatio(double ratio)
ratio - ratio of smallest elements used in supplement pie.public double getSupplementValueRatio()
public void setSupplementProjectionAreaRatio(double size)
ratio - supplement pie ratio relative to main pie.public double getSupplementProjectionAreaRatio()
public void setSupplementalChartPosition(SupplementalPieStrategy.SupplementalPiePosition position)
position - supplemental pie position.public SupplementalPieStrategy.SupplementalPiePosition getSupplementalChartPosition()
public void setSupplementVisible(boolean visible)
visible - should supplement pie should be visible.public boolean isSupplementVisible()
protected void handleDataModelChangeEvent(DataModelChangeEvent ev)
handleDataModelChangeEvent in class AbstractChartSeries<SeriesPaintTags,Projector>ev - the chart data model change eventDataModelChangeEventpublic void setChart(Chart chart)
AbstractChartObject
setChart in interface ChartObjectsetChart in class AbstractChartObject<SeriesPaintTags>chart - chartpublic LegendEntry[] createLegendEntries()
AbstractChartSeries
createLegendEntries in interface ChartSeriescreateLegendEntries in class AbstractChartSeries<SeriesPaintTags,Projector>public java.lang.Object getMaxValue(DataColumnType valType)
AbstractChartSeries
getMaxValue in class AbstractChartSeries<SeriesPaintTags,Projector>valType - data value columnpublic java.lang.Object getMinValue(DataColumnType valType)
AbstractChartSeries
getMinValue in class AbstractChartSeries<SeriesPaintTags,Projector>valType - data value column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||