Class RoundChart
- Direct Known Subclasses:
DialChart, DoughnutChart, PieChart, RadarChart
Base class for charts that render circular data representations such as pie charts, doughnut charts or gauges.
Subclasses operate on CategorySeries data and share common
functionality for drawing the chart title, legend entries and handling
layout. Developers typically work with concrete subclasses such as
PieChart or DoughnutChart directly.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDeprecated.protected intDeprecated.The chart center X axis.protected intDeprecated.The chart center y axis.protected CategorySeriesDeprecated.The series dataset.protected DefaultRendererDeprecated.The series renderer.protected static final intDeprecated.A no value constant.protected static final intDeprecated.The legend shape width. -
Constructor Summary
ConstructorsConstructorDescriptionRoundChart(CategorySeries dataset, DefaultRenderer renderer) Deprecated.Round chart. -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawLegendShape(Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint) Deprecated.The graphical representation of the legend shape.voidDeprecated.The graphical representation of the round chart title.intDeprecated.Returns the center on X axis.intDeprecated.Returns the center on Y axis.intgetLegendShapeWidth(int seriesIndex) Deprecated.Returns the legend shape width.Deprecated.Returns the renderer.booleanDeprecated.voidsetAutocalculateCenter(boolean a) Deprecated.voidsetCenterX(int centerX) Deprecated.Sets a new center on X axis.voidsetCenterY(int centerY) Deprecated.Sets a new center on Y axis.Methods inherited from class AbstractChart
calculateDrawPoints, draw, drawBackground, drawLabel, drawLegend, drawPath, drawPath, drawString, getExceed, getLabel, getLegendSize, getSeriesAndPointForScreenCoordinate, isNullValue, isVertical
-
Field Details
-
SHAPE_WIDTH
protected static final int SHAPE_WIDTHDeprecated.The legend shape width.- See Also:
-
NO_VALUE
protected static final int NO_VALUEDeprecated.A no value constant.- See Also:
-
mDataset
-
mRenderer
-
mCenterX
protected int mCenterXDeprecated.The chart center X axis. -
mCenterY
protected int mCenterYDeprecated.The chart center y axis. -
autoCalculateCenter
protected boolean autoCalculateCenterDeprecated.
-
-
Constructor Details
-
RoundChart
Deprecated.Round chart.
Parameters
-
dataset: the series dataset -
renderer: the series renderer
-
-
-
Method Details
-
drawTitle
Deprecated.The graphical representation of the round chart title.
Parameters
-
canvas: the canvas to paint to -
x: the top left x value of the view to draw to -
y: the top left y value of the view to draw to -
width: the width of the view to draw to -
paint: the paint
-
-
getLegendShapeWidth
public int getLegendShapeWidth(int seriesIndex) Deprecated.Returns the legend shape width.
Parameters
seriesIndex: the series index
Returns
the legend shape width
- Specified by:
getLegendShapeWidthin classAbstractChart
-
drawLegendShape
public void drawLegendShape(Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint) Deprecated.The graphical representation of the legend shape.
Parameters
-
canvas: the canvas to paint to -
renderer: the series renderer -
x: the x value of the point the shape should be drawn at -
y: the y value of the point the shape should be drawn at -
seriesIndex: the series index -
paint: the paint to be used for drawing
- Specified by:
drawLegendShapein classAbstractChart
-
-
getRenderer
-
getCenterX
public int getCenterX()Deprecated.Returns the center on X axis.
Returns
the center on X axis
-
setCenterX
public void setCenterX(int centerX) Deprecated.Sets a new center on X axis.
Parameters
centerX: center on X axis
-
getCenterY
public int getCenterY()Deprecated.Returns the center on Y axis.
Returns
the center on Y axis
-
setCenterY
public void setCenterY(int centerY) Deprecated.Sets a new center on Y axis.
Parameters
centerY: center on Y axis
-
isAutocalculateCenter
public boolean isAutocalculateCenter()Deprecated. -
setAutocalculateCenter
public void setAutocalculateCenter(boolean a) Deprecated.
-
PieSeriesorGaugeSeriesin thecom.codename1.ui.chartpackage; thecom.codename1.ui.chartpackage replaces this one.