|
||||||||||
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.XYChart
org.achartengine.chart.LineChart
public class LineChart
The line chart rendering class.
Field Summary | |
---|---|
static java.lang.String |
TYPE
The constant to identify this chart type. |
Fields inherited from class org.achartengine.chart.XYChart |
---|
mDataset, mRenderer |
Constructor Summary | |
---|---|
LineChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Builds a new line chart instance. |
Method Summary | |
---|---|
protected android.graphics.RectF[] |
clickableAreasForPoints(float[] points,
float yAxisValue,
int seriesIndex)
Returns the clickable areas for all passed points |
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 |
drawSeries(android.graphics.Canvas canvas,
android.graphics.Paint paint,
float[] points,
SimpleSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex)
The graphical representation of a series. |
java.lang.String |
getChartType()
Returns the chart type identifier. |
int |
getLegendShapeWidth(int seriesIndex)
Returns the legend shape width. |
ScatterChart |
getPointsChart()
Returns the scatter chart to be used for drawing the data points. |
boolean |
isRenderPoints(SimpleSeriesRenderer renderer)
Returns if the chart should display the points as a certain shape. |
protected void |
setDatasetRenderer(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Sets the series and the renderer. |
Methods inherited from class org.achartengine.chart.XYChart |
---|
draw, drawChartValuesText, drawSeries, drawText, drawXLabels, drawXTextLabels, getCalcRange, getDataset, getDefaultMinimum, getLabel, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, isRenderNullValues, setCalcRange, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPoint |
Methods inherited from class org.achartengine.chart.AbstractChart |
---|
drawBackground, drawLabel, drawLegend, drawPath, getExceed, getLegendSize, isVertical |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
public LineChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
dataset
- the multiple series datasetrenderer
- the multiple series rendererMethod Detail |
---|
protected void setDatasetRenderer(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
setDatasetRenderer
in class XYChart
dataset
- the series datasetrenderer
- the series rendererpublic void drawSeries(android.graphics.Canvas canvas, android.graphics.Paint paint, float[] points, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex)
drawSeries
in class XYChart
canvas
- the canvas to paint topaint
- the paint to be used for drawingpoints
- the array of points to be used for drawing the seriesseriesRenderer
- the series rendereryAxisValue
- the minimum value of the y axisseriesIndex
- the index of the series currently being drawnprotected android.graphics.RectF[] clickableAreasForPoints(float[] points, float yAxisValue, int seriesIndex)
XYChart
clickableAreasForPoints
in class XYChart
points
- the array of pointsyAxisValue
- the minimum value of the y axisseriesIndex
- the index of the series to which the points belong
public int getLegendShapeWidth(int seriesIndex)
getLegendShapeWidth
in class AbstractChart
seriesIndex
- 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 AbstractChart
canvas
- 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 boolean isRenderPoints(SimpleSeriesRenderer renderer)
isRenderPoints
in class XYChart
renderer
- the series rendererpublic ScatterChart getPointsChart()
getPointsChart
in class XYChart
public java.lang.String getChartType()
getChartType
in class XYChart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |