public class CubicLineChart extends LineChart
| Constructor and Description |
|---|
CubicLineChart() |
CubicLineChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
float smoothness)
Builds a cubic line chart.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawPath(Canvas canvas,
List<Float> points,
Paint paint,
boolean circular)
The graphical representation of a path.
|
protected void |
drawPoints(Canvas canvas,
Paint paint,
List<Float> pointsList,
XYSeriesRenderer seriesRenderer,
float yAxisValue,
int seriesIndex,
int startIndex)
Draws the series points.
|
String |
getChartType()
Returns the chart type identifier.
|
clickableAreasForPoints, drawLegendShape, drawSeries, getLegendShapeWidth, getPointsChart, isRenderPoints, setDatasetRendererdraw, drawChartValuesText, drawSeries, drawText, drawXLabels, drawXTextLabels, drawYLabels, getCalcRange, getDataset, getDefaultMinimum, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, getXLabels, getYLabels, isRenderNullValues, setCalcRange, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPointdrawBackground, drawLabel, drawLegend, drawPath, drawString, getExceed, getLabel, getLegendSize, isNullValue, isVerticalpublic static final String TYPE
public CubicLineChart()
public CubicLineChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)
dataset - the datasetrenderer - the renderersmoothness - smoothness determines how smooth the curve should be,
range [0->0.5] super smooth, 0.5, means that it might not get
close to control points if you have random data // less smooth,
(close to 0) means that it will most likely touch all control //
pointsprotected void drawPath(Canvas canvas, List<Float> points, Paint paint, boolean circular)
AbstractChartdrawPath in class AbstractChartcanvas - the canvas to paint topoints - the points that are contained in the path to paintpaint - the paint to be used for paintingcircular - if the path ends with the start pointprotected void drawPoints(Canvas canvas, Paint paint, List<Float> pointsList, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
drawPoints in class XYChartcanvas - the canvaspaint - the paint objectpointsList - the points to be renderedseriesRenderer - the series rendereryAxisValue - the y axis value in pixelsseriesIndex - the series indexstartIndex - the start index of the rendering pointspublic String getChartType()
getChartType in class LineChart