org.achartengine.chart
Class RangeBarChart
java.lang.Object
org.achartengine.chart.AbstractChart
org.achartengine.chart.XYChart
org.achartengine.chart.BarChart
org.achartengine.chart.RangeBarChart
- All Implemented Interfaces:
- java.io.Serializable
public class RangeBarChart
- extends BarChart
The range bar chart rendering class.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
TYPE
The chart type. |
Fields inherited from class org.achartengine.chart.BarChart |
mType |
Method Summary |
protected void |
drawChartValuesText(android.graphics.Canvas canvas,
XYSeries series,
SimpleSeriesRenderer renderer,
android.graphics.Paint paint,
float[] points,
int seriesIndex)
The graphical representation of the series values as text. |
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. |
protected float |
getCoeficient()
Returns the value of a constant used to calculate the half-distance. |
Methods inherited from class org.achartengine.chart.XYChart |
draw, drawSeries, drawText, drawXLabels, drawXTextLabels, getCalcRange, getDataset, getLabel, getPointsChart, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, isRenderPoints, setCalcRange, setDatasetRenderer, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final java.lang.String TYPE
- The chart type.
- See Also:
- Constant Field Values
RangeBarChart
public RangeBarChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type)
- Builds a new range bar chart instance.
- Parameters:
dataset
- the multiple series datasetrenderer
- the multiple series renderertype
- the range bar chart type
drawSeries
public void drawSeries(android.graphics.Canvas canvas,
android.graphics.Paint paint,
float[] points,
SimpleSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex)
- The graphical representation of a series.
- Overrides:
drawSeries
in class BarChart
- Parameters:
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 drawn
drawChartValuesText
protected void drawChartValuesText(android.graphics.Canvas canvas,
XYSeries series,
SimpleSeriesRenderer renderer,
android.graphics.Paint paint,
float[] points,
int seriesIndex)
- The graphical representation of the series values as text.
- Overrides:
drawChartValuesText
in class BarChart
- Parameters:
canvas
- the canvas to paint toseries
- the series to be paintedrenderer
- the series rendererpaint
- the paint to be used for drawingpoints
- the array of points to be used for drawing the seriesseriesIndex
- the index of the series currently being drawn
getCoeficient
protected float getCoeficient()
- Returns the value of a constant used to calculate the half-distance.
- Overrides:
getCoeficient
in class BarChart
- Returns:
- the constant value
getChartType
public java.lang.String getChartType()
- Returns the chart type identifier.
- Overrides:
getChartType
in class BarChart
- Returns:
- the chart type
Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.