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

interface  Recycler
 

Public 成员函数

void setRecycler (Recycler r)
 
boolean onKeyDown (int keyCode, KeyEvent event)
 
void setImageBitmap (Bitmap bitmap)
 
void clear ()
 
void setImageBitmapResetBase (final Bitmap bitmap, final boolean resetSupp)
 
void setImageRotateBitmapResetBase (final RotateBitmap bitmap, final boolean resetSupp)
 
void center (boolean horizontal, boolean vertical)
 
 CropViewBase (Context context)
 
 CropViewBase (Context context, AttributeSet attrs)
 
float getScale ()
 

Public 属性

final RotateBitmap mBitmapDisplayed = new RotateBitmap(null)
 

静态 Public 属性

static final int STATE_HIGHLIGHT = 0x0
 
static final int STATE_DOODLE = STATE_HIGHLIGHT + 1
 
static final int STATE_NONE = STATE_HIGHLIGHT + 2
 

Protected 成员函数

void onLayout (boolean changed, int left, int top, int right, int bottom)
 
float getValue (Matrix matrix, int whichValue)
 
float getScale (Matrix matrix)
 
Matrix getImageViewMatrix ()
 
float maxZoom ()
 
void zoomTo (float scale, float centerX, float centerY)
 
void zoomTo (final float scale, final float centerX, final float centerY, final float durationMs)
 
void zoomTo (float scale)
 
void zoomIn ()
 
void zoomOut ()
 
void zoomIn (float rate)
 
void zoomOut (float rate)
 
void postTranslate (float dx, float dy)
 
void panBy (float dx, float dy)
 

Protected 属性

Matrix mBaseMatrix = new Matrix()
 
Matrix mSuppMatrix = new Matrix()
 
int mState = STATE_HIGHLIGHT
 
Handler mHandler = new Handler()
 
int mLastXTouchPos
 
int mLastYTouchPos
 

包属性

int mThisWidth = -1
 
int mThisHeight = -1
 
float mMaxZoom
 

静态包属性

static final float SCALE_RATE = 1.25F
 

Private 成员函数

void setImageBitmap (Bitmap bitmap, int rotation)
 
void init ()
 
void getProperBaseMatrix (RotateBitmap bitmap, Matrix matrix)
 

Private 属性

final Matrix mDisplayMatrix = new Matrix()
 
final float[] mMatrixValues = new float[9]
 
Recycler mRecycler
 
Runnable mOnLayoutRunnable = null
 

静态 Private 属性

static final String TAG = "ImageViewTouchBase"
 

详细描述

The Class CropViewBase.

构造及析构函数说明

com.ab.view.cropimage.CropViewBase.CropViewBase ( Context  context)
inline

Instantiates a new crop view base.

参数
contextthe context
com.ab.view.cropimage.CropViewBase.CropViewBase ( Context  context,
AttributeSet  attrs 
)
inline

Instantiates a new crop view base.

参数
contextthe context
attrsthe attrs

成员函数说明

void com.ab.view.cropimage.CropViewBase.center ( boolean  horizontal,
boolean  vertical 
)
inline

Center.

参数
horizontalthe horizontal
verticalthe vertical
void com.ab.view.cropimage.CropViewBase.clear ( )
inline

Clear.

Matrix com.ab.view.cropimage.CropViewBase.getImageViewMatrix ( )
inlineprotected

Gets the image view matrix.

返回
the image view matrix
void com.ab.view.cropimage.CropViewBase.getProperBaseMatrix ( RotateBitmap  bitmap,
Matrix  matrix 
)
inlineprivate

Gets the proper base matrix.

参数
bitmapthe bitmap
matrixthe matrix
返回
the proper base matrix
float com.ab.view.cropimage.CropViewBase.getScale ( Matrix  matrix)
inlineprotected

Gets the scale.

参数
matrixthe matrix
返回
the scale
float com.ab.view.cropimage.CropViewBase.getScale ( )
inline

Gets the scale.

返回
the scale
float com.ab.view.cropimage.CropViewBase.getValue ( Matrix  matrix,
int  whichValue 
)
inlineprotected

Gets the value.

参数
matrixthe matrix
whichValuethe which value
返回
the value
void com.ab.view.cropimage.CropViewBase.init ( )
inlineprivate

Inits the.

float com.ab.view.cropimage.CropViewBase.maxZoom ( )
inlineprotected

Max zoom.

返回
the float
boolean com.ab.view.cropimage.CropViewBase.onKeyDown ( int  keyCode,
KeyEvent  event 
)
inline

描述:TODO.

版本
v1.0
参数
keyCodethe key code
eventthe event
返回
true, if successful
参见
android.view.View::onKeyDown(int, android.view.KeyEvent)
作者
: amsoft.cn
日期
:2013-6-17 上午9:04:50
void com.ab.view.cropimage.CropViewBase.onLayout ( boolean  changed,
int  left,
int  top,
int  right,
int  bottom 
)
inlineprotected

描述:TODO.

版本
v1.0
参数
changedthe changed
leftthe left
topthe top
rightthe right
bottomthe bottom
参见
android.view.View::onLayout(boolean, int, int, int, int)
作者
: amsoft.cn
日期
:2013-6-17 上午9:04:50
void com.ab.view.cropimage.CropViewBase.panBy ( float  dx,
float  dy 
)
inlineprotected

Pan by.

参数
dxthe dx
dythe dy
void com.ab.view.cropimage.CropViewBase.postTranslate ( float  dx,
float  dy 
)
inlineprotected

Post translate.

参数
dxthe dx
dythe dy
void com.ab.view.cropimage.CropViewBase.setImageBitmap ( Bitmap  bitmap)
inline

描述:TODO.

版本
v1.0
参数
bitmapthe new image bitmap
参见
android.widget.ImageView::setImageBitmap(android.graphics.Bitmap)
作者
: amsoft.cn
日期
:2013-6-17 上午9:04:50
void com.ab.view.cropimage.CropViewBase.setImageBitmap ( Bitmap  bitmap,
int  rotation 
)
inlineprivate

Sets the image bitmap.

参数
bitmapthe bitmap
rotationthe rotation
void com.ab.view.cropimage.CropViewBase.setImageBitmapResetBase ( final Bitmap  bitmap,
final boolean  resetSupp 
)
inline

Sets the image bitmap reset base.

参数
bitmapthe bitmap
resetSuppthe reset supp
void com.ab.view.cropimage.CropViewBase.setImageRotateBitmapResetBase ( final RotateBitmap  bitmap,
final boolean  resetSupp 
)
inline

Sets the image rotate bitmap reset base.

参数
bitmapthe bitmap
resetSuppthe reset supp
void com.ab.view.cropimage.CropViewBase.setRecycler ( Recycler  r)
inline

Sets the recycler.

参数
rthe new recycler
void com.ab.view.cropimage.CropViewBase.zoomIn ( )
inlineprotected

Zoom in.

void com.ab.view.cropimage.CropViewBase.zoomIn ( float  rate)
inlineprotected

Zoom in.

参数
ratethe rate
void com.ab.view.cropimage.CropViewBase.zoomOut ( )
inlineprotected

Zoom out.

void com.ab.view.cropimage.CropViewBase.zoomOut ( float  rate)
inlineprotected

Zoom out.

参数
ratethe rate
void com.ab.view.cropimage.CropViewBase.zoomTo ( float  scale,
float  centerX,
float  centerY 
)
inlineprotected

Zoom to.

参数
scalethe scale
centerXthe center x
centerYthe center y
void com.ab.view.cropimage.CropViewBase.zoomTo ( final float  scale,
final float  centerX,
final float  centerY,
final float  durationMs 
)
inlineprotected

Zoom to.

参数
scalethe scale
centerXthe center x
centerYthe center y
durationMsthe duration ms
void com.ab.view.cropimage.CropViewBase.zoomTo ( float  scale)
inlineprotected

Zoom to.

参数
scalethe scale

类成员变量说明

Matrix com.ab.view.cropimage.CropViewBase.mBaseMatrix = new Matrix()
protected

The m base matrix.

final RotateBitmap com.ab.view.cropimage.CropViewBase.mBitmapDisplayed = new RotateBitmap(null)

The m bitmap displayed.

final Matrix com.ab.view.cropimage.CropViewBase.mDisplayMatrix = new Matrix()
private

The m display matrix.

Handler com.ab.view.cropimage.CropViewBase.mHandler = new Handler()
protected

The m handler.

int com.ab.view.cropimage.CropViewBase.mLastXTouchPos
protected

The m last x touch pos.

int com.ab.view.cropimage.CropViewBase.mLastYTouchPos
protected

The m last y touch pos.

final float [] com.ab.view.cropimage.CropViewBase.mMatrixValues = new float[9]
private

The m matrix values.

float com.ab.view.cropimage.CropViewBase.mMaxZoom
package

The m max zoom.

Runnable com.ab.view.cropimage.CropViewBase.mOnLayoutRunnable = null
private

The m on layout runnable.

Recycler com.ab.view.cropimage.CropViewBase.mRecycler
private

The m recycler.

int com.ab.view.cropimage.CropViewBase.mState = STATE_HIGHLIGHT
protected

The m state.

Matrix com.ab.view.cropimage.CropViewBase.mSuppMatrix = new Matrix()
protected

The m supp matrix.

int com.ab.view.cropimage.CropViewBase.mThisHeight = -1
package
int com.ab.view.cropimage.CropViewBase.mThisWidth = -1
package

The m this height.

final float com.ab.view.cropimage.CropViewBase.SCALE_RATE = 1.25F
staticpackage

The Constant SCALE_RATE.

final int com.ab.view.cropimage.CropViewBase.STATE_DOODLE = STATE_HIGHLIGHT + 1
static

涂鸦状态.

final int com.ab.view.cropimage.CropViewBase.STATE_HIGHLIGHT = 0x0
static

高亮状态.

final int com.ab.view.cropimage.CropViewBase.STATE_NONE = STATE_HIGHLIGHT + 2
static

没有任何操作.

final String com.ab.view.cropimage.CropViewBase.TAG = "ImageViewTouchBase"
staticprivate

The Constant TAG.


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