| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| CategorySeries (String title)
String | getTitle ()
synchronized void | add (double value)
synchronized void | add (double value, int color)
synchronized void | add (double value, int color, String explain)
synchronized void | add (String category, double value)
synchronized void | add (String category, double value, int color)
synchronized void | add (String category, double value, int color, String explain)
synchronized void | set (int index, String category, double value)
synchronized void | remove (int index)
synchronized void | clear ()
synchronized double | getValue (int index)
synchronized String | getCategory (int index)
List< Integer > | getColors ()
List< String > | getExplains ()
synchronized int | getItemCount ()
XYSeries | toXYSeries ()

## 包属性
List< String > | mExplains = new ArrayList<String>()

## Private 属性
String | mTitle
List< String > | mCategories = new ArrayList<String>()
List< Double > | mValues = new ArrayList<Double>()
List< Integer > | mColors = new ArrayList<Integer>()

## 详细描述

A series for the category charts like the pie ones.

## 构造及析构函数说明

com.ab.view.chart.CategorySeries.CategorySeries | ( | String | title | ) |
| inline

Builds a new category series.

参数

  title | the series title

## 成员函数说明

synchronized void com.ab.view.chart.CategorySeries.add | ( | double | value | ) |
| inline

Adds a new value to the series.

参数

  value | the new value

synchronized void com.ab.view.chart.CategorySeries.add | ( | double | value,
|  | int | color
| ) |  |
| inline

增加一个新的点以及颜色值.

参数

  value | the new value
  color | the new color

synchronized void com.ab.view.chart.CategorySeries.add | ( | double | value,
|  | int | color,
|  | String | explain
| ) |  |
| inline

增加一个新的点以及颜色值,以及颜色,文字说明.

参数

  value | the new value
  color | the new color
  explain | the explain

synchronized void com.ab.view.chart.CategorySeries.add | ( | String | category,
|  | double | value
| ) |  |
| inline

Adds a new value to the series.

参数

  category | the category
  value | the new value

synchronized void com.ab.view.chart.CategorySeries.add | ( | String | category,
|  | double | value,
|  | int | color
| ) |  |
| inline

Adds a new value to the series. 以及颜色

参数

  category | the category
  value | the new value
  color | the new color

synchronized void com.ab.view.chart.CategorySeries.add | ( | String | category,
|  | double | value,
|  | int | color,
|  | String | explain
| ) |  |
| inline

Adds a new value to the series. 以及颜色,文字说明

参数

  category | the category
  value | the new value
  color | the new color
  explain | the explain

synchronized void com.ab.view.chart.CategorySeries.clear | ( |  | ) |
| inline

Removes all the existing values from the series.

synchronized String com.ab.view.chart.CategorySeries.getCategory | ( | int | index | ) |
| inline

Returns the category name at the specified index.

参数

  index | the index

返回
  the category name at the index

List<Integer> com.ab.view.chart.CategorySeries.getColors | ( |  | ) |
| inline

描述：获取点颜色数组.

返回
  the colors

List<String> com.ab.view.chart.CategorySeries.getExplains | ( |  | ) |
| inline

描述：获取点说明.

返回
  the explains

synchronized int com.ab.view.chart.CategorySeries.getItemCount | ( |  | ) |
| inline

Returns the series item count.

返回
  the series item count

String com.ab.view.chart.CategorySeries.getTitle | ( |  | ) |
| inline

Returns the series title.

返回
  the series title

synchronized double com.ab.view.chart.CategorySeries.getValue | ( | int | index | ) |
| inline

Returns the value at the specified index.

参数

  index | the index

返回
  the value at the index

synchronized void com.ab.view.chart.CategorySeries.remove | ( | int | index | ) |
| inline

Removes an existing value from the series.

参数

  index | the index in the series of the value to remove

synchronized void com.ab.view.chart.CategorySeries.set | ( | int | index,
|  | String | category,
|  | double | value
| ) |  |
| inline

Replaces the value at the specific index in the series.

参数

  index | the index in the series
  category | the category
  value | the new value

XYSeries com.ab.view.chart.CategorySeries.toXYSeries | ( |  | ) |
| inline

Transforms the category series to an XY series.

返回
  the XY series

## 类成员变量说明

List<String> com.ab.view.chart.CategorySeries.mCategories = new ArrayList<String>()
| private

The series categories.

List<Integer> com.ab.view.chart.CategorySeries.mColors = new ArrayList<Integer>()
| private

每个点的颜色.

List<String> com.ab.view.chart.CategorySeries.mExplains = new ArrayList<String>()
| package

每个数据点的简要 说明.

String com.ab.view.chart.CategorySeries.mTitle
| private

The series title.

List<Double> com.ab.view.chart.CategorySeries.mValues = new ArrayList<Double>()
| private

The series values.

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

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