TouchVG framework
Public 成员函数 | 静态 Public 成员函数 | Private 成员函数 | Private 属性 | 静态 Private 属性 | 所有成员列表
rhcad.touchvg.view.CanvasAdapter类 参考

Canvas adapter class 更多...

类 rhcad.touchvg.view.CanvasAdapter 继承关系图:
Inheritance graph

Public 成员函数

 CanvasAdapter (View view)
 
 CanvasAdapter (View view, ImageCache cache)
 
synchronized void delete ()
 
void setBackgroundColor (int color)
 
Canvas getCanvas ()
 
boolean isDrawing ()
 
boolean beginPaint (Canvas canvas)
 
boolean beginPaint (Canvas canvas, boolean fast)
 
void endPaint ()
 
void setPen (int argb, float width, int style, float phase, float orgw)
 
void setBrush (int argb, int style)
 
void saveClip ()
 
void restoreClip ()
 
void clearRect (float x, float y, float w, float h)
 
void drawRect (float x, float y, float w, float h, boolean stroke, boolean fill)
 
boolean clipRect (float x, float y, float w, float h)
 
void drawLine (float x1, float y1, float x2, float y2)
 
void drawEllipse (float x, float y, float w, float h, boolean stroke, boolean fill)
 
void beginPath ()
 
void moveTo (float x, float y)
 
void lineTo (float x, float y)
 
void bezierTo (float c1x, float c1y, float c2x, float c2y, float x, float y)
 
void quadTo (float cpx, float cpy, float x, float y)
 
void closePath ()
 
void drawPath (boolean stroke, boolean fill)
 
boolean clipPath ()
 
Bitmap getHandleBitmap (int type)
 
boolean drawHandle (float x, float y, int type, float angle)
 
boolean drawBitmap (String name, float xc, float yc, float w, float h, float angle)
 
float drawTextAt (String text, float x, float y, float h, int align, float angle)
 

静态 Public 成员函数

static void setHandleImageIDs (int[] ids)
 

Private 成员函数

void makeLinePattern (float arr[], float width, float phase)
 

Private 属性

Path mPath
 
Paint mPen = new Paint()
 
Paint mBrush = new Paint()
 
Canvas mCanvas
 
View mView
 
ImageCache mCache
 
int mBkColor = Color.TRANSPARENT
 
PathEffect mEffects
 

静态 Private 属性

static final String TAG = "touchvg"
 
static final float [] DASH = { 4, 2 }
 
static final float [] DOT = { 1, 2 }
 
static final float [] DASH_DOT = { 10, 2, 2, 2 }
 
static final float [] DASH_DOTDOT = { 20, 2, 2, 2, 2, 2 }
 
static int [] mHandleIDs
 

详细描述

Canvas adapter class


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

通用矢量图形框架, 版权所有 (C) 张云贵 2004-2017,BSD 开源许可证