|
|||||||||
| 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.PieSeries
public class PieSeries extends AbstractChartSeries<SeriesPaintTags,Projector>
Displays data a 2D pie chart.
| Modifier and Type | Field and Description |
|---|---|
protected TextStyle<AbstractPaintTags> |
textStyle
|
| 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 |
|---|
PieSeries(DataModel model)
Pie series constructor without a meta data model and default plane mapper is for Cartesian coordinates. |
PieSeries(DataModel model,
MetaDataModel metaModel)
Pie series constructor without a default plane mapper is for Cartesian coordinates. |
PieSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper)
Constructs a new pie series |
PieSeries(DataModel model,
PlaneMapper mapper)
Pie series 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. |
Point2D |
getCenterPoint()
Returns the center of pie |
double |
getInnerRadius()
Returns the Doughnut inner radius. |
PieLabelAlignment |
getLabelAlignment()
Return pie label alignment |
int |
getLabelAreaMultiplier()
Returns label area multiplier (used for pie resize and leave label area, pie size is resized by multiplier * series label font size) |
PieLabelFormat |
getLabelFormat()
Return label format |
java.lang.String |
getLabelFormatPattern()
Returns pattern of label format |
AbstractPieLabelsLayouter |
getLabelLayouter()
Return label layouter of pie |
PieLegendFormat |
getLegendFormat()
Return legend format |
java.lang.String |
getLegendFormatPattern()
Returns legend format pattern |
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 |
int |
getNumbersLabelPrecision()
Gets precision of labels values floating point numbers. |
int |
getNumbersLegendPrecision()
Gets precision of legend values floating point numbers. |
double |
getOverallAngle()
Returns the pie angle, how much angle the pie should occupy |
PaintMode |
getPaintMode()
Returns the paint mode of the grid |
Projector |
getProjector()
Returns modified projector. |
double |
getRadius()
Returns pie series radius. |
double |
getStartAngle()
Returns slice start angle of pie chart segment |
PieStrategy<Projector> |
getStrategy()
Gets Pie drawing strategy. |
AbstractStyle |
getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type. |
TextStyle<AbstractPaintTags> |
getTextStyle()
Gets series text style object |
void |
setCenterPoint(Point2D centerPoint)
Set center of pie chart |
void |
setExplodeAndShrink(boolean flag)
Set explode and shrink |
void |
setInnerRadius(java.lang.Double radius)
Sets the Doughnut inner radius. |
void |
setLabelAlignment(PieLabelAlignment alignment)
Set pie label alignment |
void |
setLabelAreaMultiplier(int labelAreaMultiplier)
Specifies label area multiplier (used for pie resize and leave label area, pie size is resized by multiplier * series label font size) Default is 4. |
void |
setLabelFormat(PieLabelFormat labelFormat)
Set label format |
void |
setLabelFormatPattern(java.lang.String labelFormatPattern)
Set pattern of label format Examples: "%1$.2f, %2$.0f%%, %3$s" 1 - value, 2 - percent, 3 - slice name |
void |
setLabelLayouter(PieLabelsLayouters layouter)
Set label layouter of pie |
void |
setLegendFormat(PieLegendFormat legendFormat)
Set legend format |
void |
setLegendFormatPattern(java.lang.String legendFormatPattern)
Set pattern of legend format Examples: "%1$.2f, %2$.0f%%, %3$s", where: 1 - value, 2 - percent, 3 - slice name |
void |
setNumbersLabelPrecision(int numbersLabelPrecision)
Sets floating point numbers precision in the label values. |
void |
setNumbersLegendPrecision(int numbersLegendPrecision)
Sets floating point numbers precision in the legend values. |
void |
setOverallAngle(double angle)
Specifies the pie angle, how much angle the pie should occupy. |
void |
setPaintMode(PaintMode paintMode)
Sets grid painting mode. |
void |
setRadius(double radius)
Sets pie series radius. |
void |
setStartAngle(double angle)
Sets start angle of pie chart segment. |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, 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, invalidate, isVisible, layout, repaint, repaint, setChart |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getParent |
| Field Detail |
|---|
protected TextStyle<AbstractPaintTags> textStyle
| Constructor Detail |
|---|
public PieSeries(DataModel model,
MetaDataModel metaModel,
PlaneMapper mapper)
model - chart data modelmetaModel - meta data modelmapper - mapper, used to map output to a plane in a n-dimensional space
public PieSeries(DataModel model,
PlaneMapper mapper)
model - chart data modelmapper - mapper, used to map output to a plane in a n-dimensional space
public PieSeries(DataModel model,
MetaDataModel metaModel)
metaModel - meta data modelmodel - chart data modelpublic PieSeries(DataModel model)
model - chart data model| Method Detail |
|---|
public void draw(AbstractGraphics g)
ChartObject
draw in interface ChartObjectdraw in class AbstractChartSeries<SeriesPaintTags,Projector>g - graphics contextpublic Projector getProjector()
AbstractChartSeries
getProjector in class AbstractChartSeries<SeriesPaintTags,Projector>public final void setPaintMode(PaintMode paintMode)
paintMode - The paintMode to set.public final PaintMode getPaintMode()
public void setInnerRadius(java.lang.Double radius)
radius - doughnut inner radius (in range [0, 0.5]).public double getInnerRadius()
public void setRadius(double radius)
radius - radius of pie series in range [0,0.5]public double getRadius()
public void setStartAngle(double angle)
angle - angle [0; 360]public double getStartAngle()
public void setOverallAngle(double angle)
angle - angle [0; 360]public double getOverallAngle()
public void setCenterPoint(Point2D centerPoint)
centerPoint - point of the center the pie [0,1]public Point2D getCenterPoint()
public void setExplodeAndShrink(boolean flag)
flag - true, if explode and shrink, otherwise explode, but not shrinkpublic PieStrategy<Projector> getStrategy()
public AbstractPieLabelsLayouter getLabelLayouter()
public void setLabelLayouter(PieLabelsLayouters layouter)
layouter - label layouterpublic PieLabelAlignment getLabelAlignment()
public void setLabelAlignment(PieLabelAlignment alignment)
alignment - label alignmentpublic 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 columnpublic LegendEntry[] createLegendEntries()
AbstractChartSeries
createLegendEntries in interface ChartSeriescreateLegendEntries in class AbstractChartSeries<SeriesPaintTags,Projector>public java.lang.String getLabelFormatPattern()
public void setLabelFormatPattern(java.lang.String labelFormatPattern)
labelFormatPattern - the labelFormatPattern to setpublic java.lang.String getLegendFormatPattern()
public void setLegendFormatPattern(java.lang.String legendFormatPattern)
legendFormatPattern - the legendFormatPattern to setpublic PieLegendFormat getLegendFormat()
public void setLegendFormat(PieLegendFormat legendFormat)
legendFormat - the legendFormat to setpublic void setLabelFormat(PieLabelFormat labelFormat)
labelFormat - the labelFormat to setpublic PieLabelFormat getLabelFormat()
public int getNumbersLabelPrecision()
public void setNumbersLabelPrecision(int numbersLabelPrecision)
numbersLabelPrecision - precision of floating point numbers.public int getNumbersLegendPrecision()
public void setNumbersLegendPrecision(int numbersLegendPrecision)
numbersLegendPrecision - precision of floating point numbers.public TextStyle<AbstractPaintTags> getTextStyle()
public AbstractStyle getStyle(StyleType styleType)
ChartObject
getStyle in interface ChartObjectgetStyle in interface StyleEditorEntitygetStyle in class AbstractChartObject<SeriesPaintTags>styleType - style type attributespublic void setLabelAreaMultiplier(int labelAreaMultiplier)
labelAreaMultiplier - label area multiplierpublic int getLabelAreaMultiplier()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||