org.achartengine.chart
Class CubicLineChart

java.lang.Object
  extended by org.achartengine.chart.AbstractChart
      extended by org.achartengine.chart.XYChart
          extended by org.achartengine.chart.LineChart
              extended by 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.
 
Fields inherited from class org.achartengine.chart.XYChart
mDataset, mRenderer
 
Constructor Summary
CubicLineChart()
           
CubicLineChart(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)
          Builds a cubic line chart.
 
Method Summary
protected  void drawPath(android.graphics.Canvas canvas, java.util.List<java.lang.Float> points, android.graphics.Paint paint, boolean circular)
          The graphical representation of a path.
 java.lang.String getChartType()
          Returns the chart type identifier.
 
Methods inherited from class org.achartengine.chart.LineChart
clickableAreasForPoints, drawLegendShape, drawSeries, getLegendShapeWidth, getPointsChart, isRenderPoints, setDatasetRenderer
 
Methods inherited from class org.achartengine.chart.XYChart
draw, drawChartValuesText, drawSeries, drawText, drawXLabels, drawXTextLabels, drawYLabels, getCalcRange, getDataset, getDefaultMinimum, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, getXLabels, getYLabels, isRenderNullValues, setCalcRange, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPoint
 
Methods inherited from class org.achartengine.chart.AbstractChart
drawBackground, drawLabel, drawLegend, 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

CubicLineChart

public CubicLineChart()

CubicLineChart

public CubicLineChart(XYMultipleSeriesDataset dataset,
                      XYMultipleSeriesRenderer renderer,
                      float smoothness)
Builds a cubic line chart.

Parameters:
dataset - the dataset
renderer - the renderer
smoothness - 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
Method Detail

drawPath

protected void drawPath(android.graphics.Canvas canvas,
                        java.util.List<java.lang.Float> points,
                        android.graphics.Paint paint,
                        boolean circular)
Description copied from class: AbstractChart
The graphical representation of a path.

Overrides:
drawPath in class AbstractChart
Parameters:
canvas - the canvas to paint to
points - the points that are contained in the path to paint
paint - the paint to be used for painting
circular - 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.