| AndBase开发框架 1.6

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

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

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

## 静态 Public 成员函数
static final GraphicalView | getLineChartView (Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
static final GraphicalView | getBarChartView (Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, Type type)
static final GraphicalView | getPieChartView (Context context, CategorySeries dataset, DefaultRenderer renderer)
static final GraphicalView | getTimeChartView (Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, String format)
static final GraphicalView | getAreaChartView (Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)

## 静态 Public 属性
static final String | CHART = "chart"
static final String | TITLE = "title"

## Private 成员函数
| ChartFactory ()

## 静态 Private 成员函数
static void | checkParameters (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
static void | checkParameters (CategorySeries dataset, DefaultRenderer renderer)
static void | checkParameters (MultipleCategorySeries dataset, DefaultRenderer renderer)
static boolean | checkMultipleSeriesItems (MultipleCategorySeries dataset, int value)

## 详细描述

Utility methods for creating chart views or intents.

## 构造及析构函数说明

com.ab.view.chart.ChartFactory.ChartFactory | ( |  | ) |
| inline private

Instantiates a new chart factory.

## 成员函数说明

static boolean com.ab.view.chart.ChartFactory.checkMultipleSeriesItems | ( | MultipleCategorySeries | dataset,
|  | int | value
| ) |  |
| inline static private

Check multiple series items.

参数

  dataset | the dataset
  value | the value

返回
  true, if successful

static void com.ab.view.chart.ChartFactory.checkParameters | ( | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer
| ) |  |
| inline static private

检查参数.

参数

  dataset | the multiple series dataset (cannot be null)
  renderer | the multiple series renderer (cannot be null)

static void com.ab.view.chart.ChartFactory.checkParameters | ( | CategorySeries | dataset,
|  | DefaultRenderer | renderer
| ) |  |
| inline static private

Checks the validity of the dataset and renderer parameters.

参数

  dataset | the category series dataset (cannot be null)
  renderer | the series renderer (cannot be null)

static void com.ab.view.chart.ChartFactory.checkParameters | ( | MultipleCategorySeries | dataset,
|  | DefaultRenderer | renderer
| ) |  |
| inline static private

Checks the validity of the dataset and renderer parameters.

参数

  dataset | the category series dataset (cannot be null)
  renderer | the series renderer (cannot be null)

static final GraphicalView com.ab.view.chart.ChartFactory.getAreaChartView | ( | Context | context,
|  | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer,
|  | float | smoothness
| ) |  |
| inline static

描述：区域图表.

参数

  context | the context
  dataset | the dataset
  renderer | the renderer
  smoothness | 平滑度

返回
  the area chart view

static final GraphicalView com.ab.view.chart.ChartFactory.getBarChartView | ( | Context | context,
|  | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer,
|  | Type | type
| ) |  |
| inline static

柱状图.

参数

  context | the context
  dataset | the multiple series dataset (cannot be null)
  renderer | the multiple series renderer (cannot be null)
  type | the bar chart type BarChart.Type.DEFAULT BarChart.Type.STACKED

返回
  a bar chart graphical view

static final GraphicalView com.ab.view.chart.ChartFactory.getLineChartView | ( | Context | context,
|  | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer
| ) |  |
| inline static

折线图.

参数

  context | the context
  dataset | the multiple series dataset (cannot be null)
  renderer | the multiple series renderer (cannot be null)

返回
  a line chart graphical view

static final GraphicalView com.ab.view.chart.ChartFactory.getPieChartView | ( | Context | context,
|  | CategorySeries | dataset,
|  | DefaultRenderer | renderer
| ) |  |
| inline static

饼图.

参数

  context | the context
  dataset | the category series dataset (cannot be null)
  renderer | the series renderer (cannot be null)

返回
  a pie chart view

static final GraphicalView com.ab.view.chart.ChartFactory.getTimeChartView | ( | Context | context,
|  | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer,
|  | String | format
| ) |  |
| inline static

时间轴图表.

参数

  context | the context
  dataset | the multiple series dataset (cannot be null)
  renderer | the multiple series renderer (cannot be null)
  format | the date format pattern to be used for displaying the X axis date labels. If null, a default appropriate format will be used.

返回
  a time chart graphical view

## 类成员变量说明

final String com.ab.view.chart.ChartFactory.CHART = "chart"
| static

The key for the chart data.

final String com.ab.view.chart.ChartFactory.TITLE = "title"
| static

The key for the chart graphical activity title.

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

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