org.achartengine.chart
Class RangeBarChart

java.lang.Object
  extended by org.achartengine.chart.AbstractChart
      extended by org.achartengine.chart.XYChart
          extended by org.achartengine.chart.BarChart
              extended by org.achartengine.chart.RangeBarChart
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RangeStackedBarChart

public class RangeBarChart
extends BarChart

The range bar chart rendering class.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.achartengine.chart.BarChart
BarChart.Type
 
Field Summary
static java.lang.String TYPE
          The chart type.
 
Fields inherited from class org.achartengine.chart.BarChart
mType
 
Fields inherited from class org.achartengine.chart.XYChart
mDataset, mRenderer
 
Constructor Summary
RangeBarChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type)
          Builds a new range bar chart instance.
 
Method Summary
protected  void drawChartValuesText(android.graphics.Canvas canvas, XYSeries series, SimpleSeriesRenderer renderer, android.graphics.Paint paint, java.util.List<java.lang.Float> points, int seriesIndex, int startIndex)
          The graphical representation of the series values as text.
 void drawSeries(android.graphics.Canvas canvas, android.graphics.Paint paint, java.util.List<java.lang.Float> points, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
          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.BarChart
clickableAreasForPoints, drawBar, drawLegendShape, getDefaultMinimum, getHalfDiffX, getLegendShapeWidth, isRenderNullValues
 
Methods inherited from class org.achartengine.chart.XYChart
draw, drawSeries, drawText, drawXLabels, drawXTextLabels, drawYLabels, getCalcRange, getDataset, getPointsChart, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, getXLabels, getYLabels, isRenderPoints, setCalcRange, setDatasetRenderer, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPoint
 
Methods inherited from class org.achartengine.chart.AbstractChart
drawBackground, drawLabel, drawLegend, drawPath, drawPath, drawString, getExceed, getLabel, getLegendSize, isNullValue, isVertical
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
The chart type.

See Also:
Constant Field Values
Constructor Detail

RangeBarChart

public RangeBarChart(XYMultipleSeriesDataset dataset,
                     XYMultipleSeriesRenderer renderer,
                     BarChart.Type type)
Builds a new range bar chart instance.

Parameters:
dataset - the multiple series dataset
renderer - the multiple series renderer
type - the range bar chart type
Method Detail

drawSeries

public void drawSeries(android.graphics.Canvas canvas,
                       android.graphics.Paint paint,
                       java.util.List<java.lang.Float> points,
                       SimpleSeriesRenderer seriesRenderer,
                       float yAxisValue,
                       int seriesIndex,
                       int startIndex)
The graphical representation of a series.

Overrides:
drawSeries in class BarChart
Parameters:
canvas - the canvas to paint to
paint - the paint to be used for drawing
points - the array of points to be used for drawing the series
seriesRenderer - the series renderer
yAxisValue - the minimum value of the y axis
seriesIndex - the index of the series currently being drawn
startIndex - the start index of the rendering points

drawChartValuesText

protected void drawChartValuesText(android.graphics.Canvas canvas,
                                   XYSeries series,
                                   SimpleSeriesRenderer renderer,
                                   android.graphics.Paint paint,
                                   java.util.List<java.lang.Float> points,
                                   int seriesIndex,
                                   int startIndex)
The graphical representation of the series values as text.

Overrides:
drawChartValuesText in class BarChart
Parameters:
canvas - the canvas to paint to
series - the series to be painted
renderer - the series renderer
paint - the paint to be used for drawing
points - the array of points to be used for drawing the series
seriesIndex - the index of the series currently being drawn
startIndex - the start index of the rendering points

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.