| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| Pan (AbstractChart chart)
void | apply (float oldX, float oldY, float newX, float newY)
synchronized void | addPanListener (PanListener listener)
synchronized void | removePanListener (PanListener listener)
Public 成员函数 继承自 com.ab.view.chart.AbstractTool
| AbstractTool (AbstractChart chart)
double[] | getRange (int scale)
void | checkRange (double[] range, int scale)

## Private 成员函数
double | getAxisRatio (double[] range)
synchronized void | notifyPanListeners ()

## Private 属性
List< PanListener > | mPanListeners = new ArrayList<PanListener>()
boolean | limitsReachedX = false
boolean | limitsReachedY = false

## 额外继承的成员函数
Protected 成员函数 继承自 com.ab.view.chart.AbstractTool
void | setXRange (double min, double max, int scale)
void | setYRange (double min, double max, int scale)
Protected 属性 继承自 com.ab.view.chart.AbstractTool
AbstractChart | mChart
XYMultipleSeriesRenderer | mRenderer

## 详细描述

The pan tool.

## 构造及析构函数说明

com.ab.view.chart.Pan.Pan | ( | AbstractChart | chart | ) |
| inline

Builds and instance of the pan tool.

参数

  chart | the XY chart

## 成员函数说明

synchronized void com.ab.view.chart.Pan.addPanListener | ( | PanListener | listener | ) |
| inline

Adds a new pan listener.

参数

  listener | pan listener

void com.ab.view.chart.Pan.apply | ( | float | oldX,
|  | float | oldY,
|  | float | newX,
|  | float | newY
| ) |  |
| inline

Apply the tool.

参数

  oldX | the previous location on X axis
  oldY | the previous location on Y axis
  newX | the current location on X axis
  newY | the current location on the Y axis

double com.ab.view.chart.Pan.getAxisRatio | ( | double[] | range | ) |
| inline private

Return the X / Y axis range ratio.

参数

  range | the axis range

返回
  the ratio

synchronized void com.ab.view.chart.Pan.notifyPanListeners | ( |  | ) |
| inline private

Notify the pan listeners about a pan.

synchronized void com.ab.view.chart.Pan.removePanListener | ( | PanListener | listener | ) |
| inline

Removes a pan listener.

参数

  listener | pan listener

## 类成员变量说明

boolean com.ab.view.chart.Pan.limitsReachedX = false
| private

Pan limits reached on the X axis.

boolean com.ab.view.chart.Pan.limitsReachedY = false
| private

Pan limits reached on the X axis.

List<PanListener> com.ab.view.chart.Pan.mPanListeners = new ArrayList<PanListener>()
| private

The pan listeners.

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

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