public class DialChart
- Object
- AbstractChart
- RoundChart
- DialChart
Presents values from a CategorySeries as gauges on a dial.
Configure the dial appearance via a DialRenderer and supply both the
dataset and renderer to the constructor. Dial charts are typically wrapped in
a com.codename1.charts.ChartComponent so they can be placed inside
regular Codename One layouts.
Constructors
public DialChart(CategorySeries dataset, DialRenderer renderer) | Builds a new dial chart instance. |
Methods
public void draw(Canvas canvas, int x, int y, int width, int height, Paint paint) | The graphical representation of the dial chart. |
Inherited fields
Inherited methods
From RoundChart
drawTitle, getLegendShapeWidth, drawLegendShape, getRenderer, getCenterX, setCenterX, getCenterY, setCenterY, isAutocalculateCenter, setAutocalculateCenter
Constructor details
DialChart
public DialChart(CategorySeries dataset, DialRenderer renderer)Builds a new dial chart instance.
Parameters
datasetCategorySeries- the series dataset
rendererDialRenderer- the dial renderer
Method details
draw
public void draw(Canvas canvas, int x, int y, int width, int height, Paint paint)The graphical representation of the dial chart.
Parameters
canvasCanvas- the canvas to paint to
xint- the top left x value of the view to draw to
yint- the top left y value of the view to draw to
widthint- the width of the view to draw to
heightint- the height of the view to draw to
paintPaint- the paint