Class DialChart
java.lang.Object
com.codename1.charts.views.AbstractChart
com.codename1.charts.views.RoundChart
com.codename1.charts.views.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.
-
Field Summary
Fields inherited from class RoundChart
autoCalculateCenter, mCenterX, mCenterY, mDataset, NO_VALUE, SHAPE_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionDialChart(CategorySeries dataset, DialRenderer renderer) Builds a new dial chart instance. -
Method Summary
Methods inherited from class RoundChart
drawLegendShape, drawTitle, getCenterX, getCenterY, getLegendShapeWidth, getRenderer, isAutocalculateCenter, setAutocalculateCenter, setCenterX, setCenterYMethods inherited from class AbstractChart
calculateDrawPoints, drawBackground, drawLabel, drawLegend, drawPath, drawPath, drawString, getExceed, getLabel, getLegendSize, getSeriesAndPointForScreenCoordinate, isNullValue, isVertical
-
Constructor Details
-
DialChart
Builds a new dial chart instance.
Parameters
-
dataset: the series dataset -
renderer: the dial renderer
-
-
-
Method Details
-
draw
The graphical representation of the dial chart.
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 -
height: the height of the view to draw to -
paint: the paint
- Specified by:
drawin classAbstractChart
-
-