| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| Zoom (AbstractChart chart, boolean in, float rate)
void | setZoomRate (float rate)
void | apply (int zoom_axis)
synchronized void | notifyZoomResetListeners ()
synchronized void | addZoomListener (ZoomListener listener)
synchronized void | removeZoomListener (ZoomListener listener)
Public 成员函数 继承自 com.ab.view.chart.AbstractTool
| AbstractTool (AbstractChart chart)
double[] | getRange (int scale)
void | checkRange (double[] range, int scale)

## 静态 Public 属性
static final int | ZOOM_AXIS_XY = 0
static final int | ZOOM_AXIS_X = 1
static final int | ZOOM_AXIS_Y = 2

## Private 成员函数
synchronized void | notifyZoomListeners (ZoomEvent e)

## Private 属性
boolean | mZoomIn
float | mZoomRate
List< ZoomListener > | mZoomListeners = new ArrayList<ZoomListener>()
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 zoom tool.

## 构造及析构函数说明

com.ab.view.chart.Zoom.Zoom | ( | AbstractChart | chart,
|  | boolean | in,
|  | float | rate
| ) |  |
| inline

Builds the zoom tool.

参数

  chart | the chart
  in | zoom in or out
  rate | the zoom rate

## 成员函数说明

synchronized void com.ab.view.chart.Zoom.addZoomListener | ( | ZoomListener | listener | ) |
| inline

Adds a new zoom listener.

参数

  listener | zoom listener

void com.ab.view.chart.Zoom.apply | ( | int | zoom_axis | ) |
| inline

Apply the zoom.

参数

  zoom_axis | the zoom_axis

synchronized void com.ab.view.chart.Zoom.notifyZoomListeners | ( | ZoomEvent | e | ) |
| inline private

Notify the zoom listeners about a zoom change.

参数

  e | the zoom event

synchronized void com.ab.view.chart.Zoom.notifyZoomResetListeners | ( |  | ) |
| inline

Notify the zoom listeners about a zoom reset.

synchronized void com.ab.view.chart.Zoom.removeZoomListener | ( | ZoomListener | listener | ) |
| inline

Removes a zoom listener.

参数

  listener | zoom listener

void com.ab.view.chart.Zoom.setZoomRate | ( | float | rate | ) |
| inline

Sets the zoom rate.

参数

  rate | the new zoom rate

## 类成员变量说明

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

Zoom limits reached on the X axis.

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

Zoom limits reached on the Y axis.

boolean com.ab.view.chart.Zoom.mZoomIn
| private

A flag to be used to know if this is a zoom in or out.

List<ZoomListener> com.ab.view.chart.Zoom.mZoomListeners = new ArrayList<ZoomListener>()
| private

The zoom listeners.

float com.ab.view.chart.Zoom.mZoomRate
| private

The zoom rate.

final int com.ab.view.chart.Zoom.ZOOM_AXIS_X = 1
| static

Zoom on X axis independently.

final int com.ab.view.chart.Zoom.ZOOM_AXIS_XY = 0
| static

Zoom on X axis and Y axis.

final int com.ab.view.chart.Zoom.ZOOM_AXIS_Y = 2
| static

Zoom on Y axis independently.

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

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