TouchVG framework
|
类 | |
class | DynRenderRunnable |
class | DynSurfaceCallback |
class | DynSurfaceView |
class | RenderRunnable |
class | SFViewAdapter |
class | SurfaceCallback |
Public 成员函数 | |
SFGraphView (Context context) | |
构造绘图视图 更多... | |
SFGraphView (Context context, Bundle savedInstanceState) | |
构造绘图视图,允许在Activity的onCreate(Bundle)或onRestoreInstanceState(Bundle)中调用 更多... | |
SFGraphView (Context context, BaseGraphView mainView) | |
boolean | performClick () |
void | tearDown () |
销毁数据,内部调用 更多... | |
void | onDraw (Canvas canvas) |
GiCoreView | coreView () |
返回内核视图分发器对象 更多... | |
GiView | viewAdapter () |
返回视图回调适配器对象 更多... | |
int | cmdViewHandle () |
返回内核视图的句柄, MgView 指针 更多... | |
View | getView () |
返回视图回调适配器对象 更多... | |
IGraphView | getMainView () |
本视图为放大镜时返回对应的主视图,否则返回自己 更多... | |
View | createDynamicShapeView (Context context) |
创建动态绘图子视图 更多... | |
ImageCache | getImageCache () |
返回图像对象缓存 更多... | |
void | clearCachedData () |
释放临时缓存 更多... | |
void | stop (OnViewDetachedListener listener) |
停止后台任务,所属的Activity销毁前可调用 更多... | |
boolean | onPause () |
暂停后台任务,所属的Activity暂停时可调用 更多... | |
boolean | onResume () |
恢复后台任务,所属的Activity恢复时可调用 更多... | |
void | setBackgroundColor (int color) |
void | setBackgroundDrawable (Drawable background) |
设置背景图,本视图不透明时使用 更多... | |
void | setContextActionEnabled (boolean enabled) |
是否允许上下文操作 更多... | |
boolean | getGestureEnabled () |
返回是否允许触摸交互 更多... | |
void | setGestureEnabled (boolean enabled) |
设置是否允许触摸交互 更多... | |
boolean | onTouchDrag (int action, float x, float y) |
传递单指触摸事件,可用于拖放操作 更多... | |
boolean | onTap (float x, float y) |
传递单指轻击事件,可用于拖放操作 更多... | |
Bitmap | snapshot (boolean transparent) |
得到静态图形的快照 更多... | |
Bitmap | snapshot (int doc, int gs, boolean transparent) |
得到静态图形的快照,支持多线程 更多... | |
void | setOnCommandChangedListener (OnCommandChangedListener listener) |
添加当前命令改变的观察者 更多... | |
void | setOnSelectionChangedListener (OnSelectionChangedListener listener) |
添加图形选择集改变的观察者 更多... | |
void | setOnContentChangedListener (OnContentChangedListener listener) |
添加图形数据改变的观察者 更多... | |
void | setOnDynamicChangedListener (OnDynamicChangedListener listener) |
添加图形动态改变的观察者 更多... | |
void | setOnZoomChangedListener (OnZoomChangedListener listener) |
添加视图放缩的观察者 更多... | |
void | setOnFirstRegenListener (OnFirstRegenListener listener) |
添加第一次后台渲染结束的观察者 更多... | |
void | setOnDynDrawEndedListener (OnDynDrawEndedListener listener) |
添加动态绘图完成的观察者 更多... | |
void | setOnShapesRecordedListener (OnShapesRecordedListener listener) |
添加图形录制的观察者 更多... | |
void | setOnShapeWillDeleteListener (OnShapeWillDeleteListener listener) |
添加图形将删除的观察者 更多... | |
void | setOnShapeDeletedListener (OnShapeDeletedListener listener) |
添加图形已删除的观察者 更多... | |
void | setOnShapeClickedListener (OnShapeClickedListener listener) |
添加图形点击的观察者 更多... | |
void | setOnShapeDblClickedListener (OnShapeDblClickedListener listener) |
添加图形双击的观察者 更多... | |
void | setOnContextActionListener (OnContextActionListener listener) |
添加上下文按钮点击的观察者 更多... | |
void | setOnGestureListener (OnDrawGestureListener listener) |
添加绘图手势的观察者 更多... | |
Protected 成员函数 | |
void | createAdapter (Context context, Bundle savedInstanceState) |
void | initView (Context context) |
void | activateView () |
void | onDetachedFromWindow () |
void | onLayout (boolean changed, int left, int top, int right, int bottom) |
Protected 属性 | |
GiCoreView | mCoreView |
SFViewAdapter | mViewAdapter |
ImageCache | mImageCache |
RenderRunnable | mRender |
SurfaceView | mDynDrawView |
DynRenderRunnable | mDynDrawRender |
CanvasAdapter | mCanvasAdapter |
CanvasAdapter | mDynDrawCanvas |
int | mBkColor = Color.WHITE |
Drawable | mBackground |
GestureDetector | mGestureDetector |
GestureListener | mGestureListener |
boolean | mGestureEnable = true |
静态 Protected 属性 | |
static final String | TAG = "touchvg" |
Private 成员函数 | |
int | drawShapes (CanvasAdapter canvasAdapter) |
Private 属性 | |
IGraphView | mMainView |
CanvasAdapter | mCanvasOnDraw |
SurfaceCallback | mSurfaceCallback |
DynSurfaceCallback | mDynSurfaceCallback |
Graphics view with media overlay surface placed behind its window. It uses a surface view placed on top of its window to draw dynamic shapes.