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

Public 成员函数

 AbCompassView (Context context)
 
 AbCompassView (Context context, AttributeSet attrs)
 
float getDirection ()
 
void setDirection (float direction)
 
void setCompassDrawable (Drawable drawable)
 
void setCompassDrawable (int id)
 

Protected 成员函数

void onDraw (Canvas canvas)
 

Private 属性

Context mContext = null
 
Drawable mCompassDrawable = null
 
float mDirection = 0.0f
 

详细描述

© 2012 amsoft.cn 名称:AbCompassView.java 描述:指南针

作者
还如一梦中
版本
v1.0
日期
:2013-8-23 下午2:03:29

构造及析构函数说明

com.ab.view.app.AbCompassView.AbCompassView ( Context  context)
inline

Instantiates a new ab compass view.

参数
contextthe context
com.ab.view.app.AbCompassView.AbCompassView ( Context  context,
AttributeSet  attrs 
)
inline

Instantiates a new ab compass view.

参数
contextthe context
attrsthe attrs

成员函数说明

float com.ab.view.app.AbCompassView.getDirection ( )
inline

Gets the direction.

返回
the direction
void com.ab.view.app.AbCompassView.onDraw ( Canvas  canvas)
inlineprotected
void com.ab.view.app.AbCompassView.setCompassDrawable ( Drawable  drawable)
inline

描述:设置指南针图片.

参数
drawable必须设置才能显示
void com.ab.view.app.AbCompassView.setCompassDrawable ( int  id)
inline

描述:设置指南针图片.

参数
id
void com.ab.view.app.AbCompassView.setDirection ( float  direction)
inline

Sets the direction.

参数
directionthe new direction

类成员变量说明

Drawable com.ab.view.app.AbCompassView.mCompassDrawable = null
private

指南针图标.

Context com.ab.view.app.AbCompassView.mContext = null
private

上下文.

float com.ab.view.app.AbCompassView.mDirection = 0.0f
private

方向.


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