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

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< ZoomListenermZoomListeners = 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.

参数
chartthe chart
inzoom in or out
ratethe zoom rate

成员函数说明

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

Adds a new zoom listener.

参数
listenerzoom listener
void com.ab.view.chart.Zoom.apply ( int  zoom_axis)
inline

Apply the zoom.

参数
zoom_axisthe zoom_axis
synchronized void com.ab.view.chart.Zoom.notifyZoomListeners ( ZoomEvent  e)
inlineprivate

Notify the zoom listeners about a zoom change.

参数
ethe 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.

参数
listenerzoom listener
void com.ab.view.chart.Zoom.setZoomRate ( float  rate)
inline

Sets the zoom rate.

参数
ratethe 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.


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