public class CombinedXYChart extends XYChart
| Modifier and Type | Class and Description |
|---|---|
static class |
CombinedXYChart.XYCombinedChartDef
Definition of a chart inside a combined XY chart.
|
| Constructor and Description |
|---|
CombinedXYChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
CombinedXYChart.XYCombinedChartDef[] chartDefinitions)
Builds a new combined XY chart instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ClickableArea[] |
clickableAreasForPoints(List<Float> points,
List<Double> values,
float yAxisValue,
int seriesIndex,
int startIndex)
Returns the clickable areas for all passed points
|
void |
drawLegendShape(Canvas canvas,
SimpleSeriesRenderer renderer,
float x,
float y,
int seriesIndex,
Paint paint)
The graphical representation of the legend shape.
|
void |
drawSeries(Canvas canvas,
Paint paint,
List<Float> points,
XYSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex,
int startIndex)
The graphical representation of a series.
|
protected void |
drawSeries(XYSeries series,
Canvas canvas,
Paint paint,
List<Float> pointsList,
XYSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex,
XYMultipleSeriesRenderer.Orientation or,
int startIndex)
Draws the series.
|
String |
getChartType()
Returns the chart type identifier.
|
int |
getLegendShapeWidth(int seriesIndex)
Returns the legend shape width.
|
draw, drawChartValuesText, drawPoints, drawText, drawXLabels, drawXTextLabels, drawYLabels, getCalcRange, getDataset, getDefaultMinimum, getPointsChart, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, getXLabels, getYLabels, isRenderNullValues, isRenderPoints, setCalcRange, setDatasetRenderer, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPointdrawBackground, drawLabel, drawLegend, drawPath, drawPath, drawString, getExceed, getLabel, getLegendSize, isNullValue, isVerticalpublic CombinedXYChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, CombinedXYChart.XYCombinedChartDef[] chartDefinitions)
dataset - the multiple series datasetrenderer - the multiple series rendererchartDefinitions - the XY chart definitionspublic void drawSeries(Canvas canvas, Paint paint, List<Float> points, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
drawSeries in class XYChartcanvas - 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 ClickableArea[] clickableAreasForPoints(List<Float> points, List<Double> values, float yAxisValue, int seriesIndex, int startIndex)
XYChartclickableAreasForPoints in class XYChartpoints - the array of pointsvalues - the array of values of each pointyAxisValue - the minimum value of the y axisseriesIndex - the index of the series to which the points belongstartIndex - the start index of the rendering pointsprotected void drawSeries(XYSeries series, Canvas canvas, Paint paint, List<Float> pointsList, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, XYMultipleSeriesRenderer.Orientation or, int startIndex)
XYChartdrawSeries in class XYChartseries - the seriescanvas - the canvaspaint - the paint objectpointsList - the points to be renderedseriesRenderer - the series rendereryAxisValue - the y axis value in pixelsseriesIndex - the series indexor - the orientationstartIndex - the start index of the rendering pointspublic int getLegendShapeWidth(int seriesIndex)
getLegendShapeWidth in class AbstractChartseriesIndex - the series indexpublic void drawLegendShape(Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, 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 String getChartType()
getChartType in class XYChart