| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | Private 成员函数 | Private 属性 | 静态 Private 属性 | 所有成员列表
com.ab.view.chart.AreaChart类 参考
类 com.ab.view.chart.AreaChart 继承关系图:

## Public 成员函数
| AreaChart ()
| AreaChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)
String | getChartType ()
Public 成员函数 继承自 com.ab.view.chart.LineChart
| LineChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
void | drawSeries (Canvas canvas, Paint paint, float[] points, int[] colors, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
int | getLegendShapeWidth (int seriesIndex)
void | drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
boolean | isRenderPoints (SimpleSeriesRenderer renderer)
ScatterChart | getPointsChart ()
String | getChartType ()
Public 成员函数 继承自 com.ab.view.chart.XYChart
| XYChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
void | draw (Canvas canvas, int x, int y, int width, int height, Paint paint)
XYMultipleSeriesRenderer | getRenderer ()
XYMultipleSeriesDataset | getDataset ()
double[] | getCalcRange (int scale)
void | setCalcRange (double[] range, int scale)
double[] | toRealPoint (float screenX, float screenY)
double[] | toScreenPoint (double[] realPoint)
double[] | toRealPoint (float screenX, float screenY, int scale)
double[] | toScreenPoint (double[] realPoint, int scale)
SeriesSelection | getSeriesAndPointForScreenCoordinate (final Point screenPoint)
abstract void | drawSeries (Canvas canvas, Paint paint, float[] points, int[] colors, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
boolean | isRenderPoints (SimpleSeriesRenderer renderer)
double | getDefaultMinimum ()
ScatterChart | getPointsChart ()
abstract String | getChartType ()
Map< Integer, List< Float > > | getPoints ()
Map< Integer, List< Double > > | getValues ()
Map< Integer, List< String > > | getExplains ()
Public 成员函数 继承自 com.ab.view.chart.AbstractChart
abstract void | draw (Canvas canvas, int x, int y, int width, int height, Paint paint)
boolean | isVertical (DefaultRenderer renderer)
abstract int | getLegendShapeWidth (int seriesIndex)
abstract void | drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
boolean | isNullValue (double value)
SeriesSelection | getSeriesAndPointForScreenCoordinate (Point screenPoint)

## 静态 Public 属性
static final String | TYPE = "Area"
静态 Public 属性 继承自 com.ab.view.chart.LineChart
static final String | TYPE = "Line"

## Protected 成员函数
void | drawPath (Canvas canvas, float[] points, Paint paint, boolean circular)
Protected 成员函数 继承自 com.ab.view.chart.LineChart
void | setDatasetRenderer (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
ClickableArea[] | clickableAreasForPoints (float[] points, double[] values, float yAxisValue, int seriesIndex, int startIndex)
Protected 成员函数 继承自 com.ab.view.chart.XYChart
| XYChart ()
void | setDatasetRenderer (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
List< Double > | getXLabels (double min, double max, int count)
Map< Integer, List< Double > > | getYLabels (double[] minY, double[] maxY, int maxScaleNumber)
Rect | getScreenR ()
void | setScreenR (Rect screenR)
void | drawSeries (XYSeries series, Canvas canvas, Paint paint, List< Float > pointsList, List< Integer > colorsList, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, Orientation or, int startIndex)
void | drawChartValuesText (Canvas canvas, XYSeries series, SimpleSeriesRenderer renderer, Paint paint, float[] points, int seriesIndex, int startIndex)
void | drawText (Canvas canvas, String text, float x, float y, Paint paint, float extraAngle)
void | drawXLabels (List< Double > xLabels, Double[] xTextLabelLocations, Canvas canvas, Paint paint, int left, int top, int bottom, double xPixelsPerUnit, double minX, double maxX)
void | drawYLabels (Map< Integer, List< Double >> allYLabels, Canvas canvas, Paint paint, int maxScaleNumber, int left, int right, int bottom, double[] yPixelsPerUnit, double[] minY)
void | drawXTextLabels (Double[] xTextLabelLocations, Canvas canvas, Paint paint, boolean showLabels, int left, int top, int bottom, double xPixelsPerUnit, double minX, double maxX)
abstract ClickableArea[] | clickableAreasForPoints (float[] points, double[] values, float yAxisValue, int seriesIndex, int startIndex)
boolean | isRenderNullValues ()
Protected 成员函数 继承自 com.ab.view.chart.AbstractChart
void | drawBackground (DefaultRenderer renderer, Canvas canvas, int x, int y, int width, int height, Paint paint, boolean newColor, int color)
int | drawLegend (Canvas canvas, DefaultRenderer renderer, String[] titles, int left, int right, int y, int width, int height, int legendSize, Paint paint, boolean calculate)
void | drawString (Canvas canvas, String text, float x, float y, Paint paint)
boolean | getExceed (float currentWidth, DefaultRenderer renderer, int right, int width)
String | getLabel (double label)
void | drawPath (Canvas canvas, float[] points, Paint paint, boolean circular)
int | getLegendSize (DefaultRenderer renderer, int defaultHeight, float extraHeight)
void | drawLabel (Canvas canvas, String labelText, DefaultRenderer renderer, List< RectF > prevLabelsBounds, int centerX, int centerY, float shortRadius, float longRadius, float currentAngle, float angle, int left, int right, int color, Paint paint, boolean line)

## Private 成员函数
void | calc (float[] points, Point result, int index1, int index2, final float multiplier)

## Private 属性
float | firstMultiplier
float | secondMultiplier
Point | p1 = new Point()
Point | p2 = new Point()
Point | p3 = new Point()

## 静态 Private 属性
static final long | serialVersionUID = 1L

## 额外继承的成员函数
Protected 属性 继承自 com.ab.view.chart.XYChart
XYMultipleSeriesDataset | mDataset
XYMultipleSeriesRenderer | mRenderer
包函数 继承自 com.ab.view.chart.LineChart
| LineChart ()

## 详细描述

The Class CubicLineChart.

## 构造及析构函数说明

com.ab.view.chart.AreaChart.AreaChart | ( |  | ) |
| inline

Instantiates a new cubic line chart.

com.ab.view.chart.AreaChart.AreaChart | ( | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer,
|  | float | smoothness
| ) |  |
| inline

Builds a cubic line chart.

参数

  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

## 成员函数说明

void com.ab.view.chart.AreaChart.calc | ( | float[] | points,
|  | Point | result,
|  | int | index1,
|  | int | index2,
|  | final float | multiplier
| ) |  |
| inline private

Calc.

参数

  points | the points
  result | the result
  index1 | the index1
  index2 | the index2
  multiplier | the multiplier

void com.ab.view.chart.AreaChart.drawPath | ( | Canvas | canvas,
|  | float[] | points,
|  | Paint | paint,
|  | boolean | circular
| ) |  |
| inline protected

描述：TODO.

参数

  canvas | the canvas
  points | the points
  paint | the paint
  circular | the circular

参见
  com.ab.view.chart.AbstractChart::drawPath(android.graphics.Canvas, float[], android.graphics.Paint, boolean)

String com.ab.view.chart.AreaChart.getChartType | ( |  | ) |
| inline

Returns the chart type identifier.

返回
  the chart type

## 类成员变量说明

float com.ab.view.chart.AreaChart.firstMultiplier
| private

The first multiplier.

Point com.ab.view.chart.AreaChart.p1 = new Point()
| private

The p1.

Point com.ab.view.chart.AreaChart.p2 = new Point()
| private

The p2.

Point com.ab.view.chart.AreaChart.p3 = new Point()
| private

The p3.

float com.ab.view.chart.AreaChart.secondMultiplier
| private

The second multiplier.

final long com.ab.view.chart.AreaChart.serialVersionUID = 1L
| static private

The Constant serialVersionUID.

final String com.ab.view.chart.AreaChart.TYPE = "Area"
| static

The chart type.

该类的文档由以下文件生成:

- src/com/ab/view/chart/AreaChart.java