public class RangeBarChart extends BarChart
BarChart.Type| Constructor and Description |
|---|
RangeBarChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type)
Builds a new range bar chart instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawChartValuesText(Canvas canvas,
XYSeries series,
XYSeriesRenderer renderer,
Paint paint,
List<Float> points,
int seriesIndex,
int startIndex)
The graphical representation of the series values as text.
|
void |
drawSeries(Canvas canvas,
Paint paint,
List<Float> points,
XYSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex,
int startIndex)
The graphical representation of a series.
|
String |
getChartType()
Returns the chart type identifier.
|
protected float |
getCoeficient()
Returns the value of a constant used to calculate the half-distance.
|
clickableAreasForPoints, drawBar, drawBar, drawLegendShape, getDefaultMinimum, getGradientPartialColor, getHalfDiffX, getLegendShapeWidth, isRenderNullValuesdraw, drawPoints, drawSeries, drawText, drawXLabels, drawXTextLabels, drawYLabels, getCalcRange, getDataset, getPointsChart, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, getXLabels, getYLabels, isRenderPoints, setCalcRange, setDatasetRenderer, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPointdrawBackground, drawLabel, drawLegend, drawPath, drawPath, drawString, getExceed, getLabel, getLegendSize, isNullValue, isVerticalpublic static final String TYPE
public RangeBarChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type)
dataset - the multiple series datasetrenderer - the multiple series renderertype - the range bar chart typepublic void drawSeries(Canvas canvas, Paint paint, List<Float> points, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
drawSeries in class BarChartcanvas - 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 drawnstartIndex - the start index of the rendering pointsprotected void drawChartValuesText(Canvas canvas, XYSeries series, XYSeriesRenderer renderer, Paint paint, List<Float> points, int seriesIndex, int startIndex)
drawChartValuesText in class BarChartcanvas - 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 drawnstartIndex - the start index of the rendering pointsprotected float getCoeficient()
getCoeficient in class BarChartpublic String getChartType()
getChartType in class BarChart