|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.achartengine.chart.AbstractChart
org.achartengine.chart.RoundChart
public abstract class RoundChart
An abstract class to be extended by round like chart rendering classes.
| Field Summary | |
|---|---|
protected int |
mCenterX
The chart center X axis. |
protected int |
mCenterY
The chart center y axis. |
protected CategorySeries |
mDataset
The series dataset. |
protected DefaultRenderer |
mRenderer
The series renderer. |
protected static int |
NO_VALUE
A no value constant. |
protected static int |
SHAPE_WIDTH
The legend shape width. |
| Constructor Summary | |
|---|---|
RoundChart(CategorySeries dataset,
DefaultRenderer renderer)
Round chart. |
|
| Method Summary | |
|---|---|
void |
drawLegendShape(android.graphics.Canvas canvas,
SimpleSeriesRenderer renderer,
float x,
float y,
int seriesIndex,
android.graphics.Paint paint)
The graphical representation of the legend shape. |
void |
drawTitle(android.graphics.Canvas canvas,
int x,
int y,
int width,
android.graphics.Paint paint)
The graphical representation of the round chart title. |
int |
getCenterX()
Returns the center on X axis. |
int |
getCenterY()
Returns the center on Y axis. |
int |
getLegendShapeWidth(int seriesIndex)
Returns the legend shape width. |
DefaultRenderer |
getRenderer()
Returns the renderer. |
void |
setCenterX(int centerX)
Sets a new center on X axis. |
void |
setCenterY(int centerY)
Sets a new center on Y axis. |
| Methods inherited from class org.achartengine.chart.AbstractChart |
|---|
draw, drawBackground, drawLabel, drawLegend, drawPath, getExceed, getLegendSize, getSeriesAndPointForScreenCoordinate, isVertical |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int SHAPE_WIDTH
protected CategorySeries mDataset
protected DefaultRenderer mRenderer
protected static final int NO_VALUE
protected int mCenterX
protected int mCenterY
| Constructor Detail |
|---|
public RoundChart(CategorySeries dataset,
DefaultRenderer renderer)
dataset - the series datasetrenderer - the series renderer| Method Detail |
|---|
public void drawTitle(android.graphics.Canvas canvas,
int x,
int y,
int width,
android.graphics.Paint paint)
canvas - the canvas to paint tox - the top left x value of the view to draw toy - the top left y value of the view to draw towidth - the width of the view to draw topaint - the paintpublic int getLegendShapeWidth(int seriesIndex)
getLegendShapeWidth in class AbstractChartseriesIndex - the series index
public void drawLegendShape(android.graphics.Canvas canvas,
SimpleSeriesRenderer renderer,
float x,
float y,
int seriesIndex,
android.graphics.Paint paint)
drawLegendShape in class AbstractChartcanvas - the canvas to paint torenderer - the series rendererx - the x value of the point the shape should be drawn aty - the y value of the point the shape should be drawn atseriesIndex - the series indexpaint - the paint to be used for drawingpublic DefaultRenderer getRenderer()
public int getCenterX()
public int getCenterY()
public void setCenterX(int centerX)
centerX - center on X axispublic void setCenterY(int centerY)
centerY - center on Y axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||