| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| PieChart (CategorySeries dataset, DefaultRenderer renderer)
void | draw (Canvas canvas, int x, int y, int width, int height, Paint paint)
SeriesSelection | getSeriesAndPointForScreenCoordinate (Point screenPoint)
Public 成员函数 继承自 com.ab.view.chart.RoundChart
| RoundChart (CategorySeries dataset, DefaultRenderer renderer)
void | drawTitle (Canvas canvas, int x, int y, int width, Paint paint)
int | getLegendShapeWidth (int seriesIndex)
void | drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
DefaultRenderer | getRenderer ()
int | getCenterX ()
int | getCenterY ()
void | setCenterX (int centerX)
void | setCenterY (int centerY)
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)

## Private 属性
PieMapper | mPieMapper

## 额外继承的成员函数
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)
Protected 属性 继承自 com.ab.view.chart.RoundChart
CategorySeries | mDataset
DefaultRenderer | mRenderer
int | mCenterX = NO_VALUE
int | mCenterY = NO_VALUE
静态 Protected 属性 继承自 com.ab.view.chart.RoundChart
static final int | SHAPE_WIDTH = 10
static final int | NO_VALUE = Integer.MAX_VALUE

## 详细描述

The pie chart rendering class.

## 构造及析构函数说明

com.ab.view.chart.PieChart.PieChart | ( | CategorySeries | dataset,
|  | DefaultRenderer | renderer
| ) |  |
| inline

Builds a new pie chart instance.

参数

  dataset | the series dataset
  renderer | the series renderer

## 成员函数说明

void com.ab.view.chart.PieChart.draw | ( | Canvas | canvas,
|  | int | x,
|  | int | y,
|  | int | width,
|  | int | height,
|  | Paint | paint
| ) |  |
| inline

The graphical representation of the pie chart.

参数

  canvas | the canvas to paint to
  x | the top left x value of the view to draw to
  y | the top left y value of the view to draw to
  width | the width of the view to draw to
  height | the height of the view to draw to
  paint | the paint

SeriesSelection com.ab.view.chart.PieChart.getSeriesAndPointForScreenCoordinate | ( | Point | screenPoint | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  screenPoint | the screen point

返回
  the series and point for screen coordinate

参见
  com.ab.view.chart.AbstractChart::getSeriesAndPointForScreenCoordinate(com.ab.view.chart.Point)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:46

## 类成员变量说明

PieMapper com.ab.view.chart.PieChart.mPieMapper
| private

Handles returning values when tapping on PieChart.

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

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