org.achartengine.chart
Class CubicLineChart
java.lang.Object
org.achartengine.chart.AbstractChart
org.achartengine.chart.XYChart
org.achartengine.chart.LineChart
org.achartengine.chart.CubicLineChart
- All Implemented Interfaces:
- java.io.Serializable
public class CubicLineChart
- extends LineChart
The interpolated (cubic) line chart rendering class.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
TYPE
The chart type. |
Method Summary |
protected void |
drawPath(android.graphics.Canvas canvas,
float[] points,
android.graphics.Paint paint,
boolean notUsedArgument)
The graphical representation of a path. |
java.lang.String |
getChartType()
Returns the chart type identifier. |
Methods inherited from class org.achartengine.chart.XYChart |
draw, drawChartValuesText, drawSeries, drawText, drawXLabels, drawXTextLabels, getCalcRange, getDataset, getDefaultMinimum, getLabel, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, isRenderNullValues, setCalcRange, 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
CubicLineChart
public CubicLineChart()
CubicLineChart
public CubicLineChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
float smoothness)
- Builds a cubic line chart.
- Parameters:
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 //
points
drawPath
protected void drawPath(android.graphics.Canvas canvas,
float[] points,
android.graphics.Paint paint,
boolean notUsedArgument)
- Description copied from class:
AbstractChart
- The graphical representation of a path.
- Overrides:
drawPath
in class AbstractChart
- Parameters:
canvas
- the canvas to paint topoints
- the points that are contained in the path to paintpaint
- the paint to be used for paintingnotUsedArgument
- if the path ends with the start point
getChartType
public java.lang.String getChartType()
- Returns the chart type identifier.
- Overrides:
getChartType
in class LineChart
- Returns:
- the chart type
Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.