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

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

参数
chartthe XY chart

成员函数说明

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

Adds a new pan listener.

参数
listenerpan listener
void com.ab.view.chart.Pan.apply ( float  oldX,
float  oldY,
float  newX,
float  newY 
)
inline

Apply the tool.

参数
oldXthe previous location on X axis
oldYthe previous location on Y axis
newXthe current location on X axis
newYthe current location on the Y axis
double com.ab.view.chart.Pan.getAxisRatio ( double[]  range)
inlineprivate

Return the X / Y axis range ratio.

参数
rangethe axis range
返回
the ratio
synchronized void com.ab.view.chart.Pan.notifyPanListeners ( )
inlineprivate

Notify the pan listeners about a pan.

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

Removes a pan listener.

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


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