| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

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

## 类
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.

参数

  context | the context

com.ab.view.cropimage.CropViewBase.CropViewBase | ( | Context | context,
|  | AttributeSet | attrs
| ) |  |
| inline

Instantiates a new crop view base.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

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

Center.

参数

  horizontal | the horizontal
  vertical | the vertical

void com.ab.view.cropimage.CropViewBase.clear | ( |  | ) |
| inline

Clear.

Matrix com.ab.view.cropimage.CropViewBase.getImageViewMatrix | ( |  | ) |
| inline protected

Gets the image view matrix.

返回
  the image view matrix

void com.ab.view.cropimage.CropViewBase.getProperBaseMatrix | ( | RotateBitmap | bitmap,
|  | Matrix | matrix
| ) |  |
| inline private

Gets the proper base matrix.

参数

  bitmap | the bitmap
  matrix | the matrix

返回
  the proper base matrix

float com.ab.view.cropimage.CropViewBase.getScale | ( | Matrix | matrix | ) |
| inline protected

Gets the scale.

参数

  matrix | the 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
| ) |  |
| inline protected

Gets the value.

参数

  matrix | the matrix
  whichValue | the which value

返回
  the value

void com.ab.view.cropimage.CropViewBase.init | ( |  | ) |
| inline private

Inits the.

float com.ab.view.cropimage.CropViewBase.maxZoom | ( |  | ) |
| inline protected

Max zoom.

返回
  the float

boolean com.ab.view.cropimage.CropViewBase.onKeyDown | ( | int | keyCode,
|  | KeyEvent | event
| ) |  |
| inline

描述：TODO.

版本
  v1.0

参数

  keyCode | the key code
  event | the 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
| ) |  |
| inline protected

描述：TODO.

版本
  v1.0

参数

  changed | the changed
  left | the left
  top | the top
  right | the right
  bottom | the 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
| ) |  |
| inline protected

Pan by.

参数

  dx | the dx
  dy | the dy

void com.ab.view.cropimage.CropViewBase.postTranslate | ( | float | dx,
|  | float | dy
| ) |  |
| inline protected

Post translate.

参数

  dx | the dx
  dy | the dy

void com.ab.view.cropimage.CropViewBase.setImageBitmap | ( | Bitmap | bitmap | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  bitmap | the 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
| ) |  |
| inline private

Sets the image bitmap.

参数

  bitmap | the bitmap
  rotation | the rotation

void com.ab.view.cropimage.CropViewBase.setImageBitmapResetBase | ( | final Bitmap | bitmap,
|  | final boolean | resetSupp
| ) |  |
| inline

Sets the image bitmap reset base.

参数

  bitmap | the bitmap
  resetSupp | the reset supp

void com.ab.view.cropimage.CropViewBase.setImageRotateBitmapResetBase | ( | final RotateBitmap | bitmap,
|  | final boolean | resetSupp
| ) |  |
| inline

Sets the image rotate bitmap reset base.

参数

  bitmap | the bitmap
  resetSupp | the reset supp

void com.ab.view.cropimage.CropViewBase.setRecycler | ( | Recycler | r | ) |
| inline

Sets the recycler.

参数

  r | the new recycler

void com.ab.view.cropimage.CropViewBase.zoomIn | ( |  | ) |
| inline protected

Zoom in.

void com.ab.view.cropimage.CropViewBase.zoomIn | ( | float | rate | ) |
| inline protected

Zoom in.

参数

  rate | the rate

void com.ab.view.cropimage.CropViewBase.zoomOut | ( |  | ) |
| inline protected

Zoom out.

void com.ab.view.cropimage.CropViewBase.zoomOut | ( | float | rate | ) |
| inline protected

Zoom out.

参数

  rate | the rate

void com.ab.view.cropimage.CropViewBase.zoomTo | ( | float | scale,
|  | float | centerX,
|  | float | centerY
| ) |  |
| inline protected

Zoom to.

参数

  scale | the scale
  centerX | the center x
  centerY | the center y

void com.ab.view.cropimage.CropViewBase.zoomTo | ( | final float | scale,
|  | final float | centerX,
|  | final float | centerY,
|  | final float | durationMs
| ) |  |
| inline protected

Zoom to.

参数

  scale | the scale
  centerX | the center x
  centerY | the center y
  durationMs | the duration ms

void com.ab.view.cropimage.CropViewBase.zoomTo | ( | float | scale | ) |
| inline protected

Zoom to.

参数

  scale | the 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
| static package

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"
| static private

The Constant TAG.

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

- src/com/ab/view/cropimage/CropViewBase.java