| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| CropImageView (Context context, AttributeSet attrs)
boolean | onTouchEvent (MotionEvent event)
void | add (HighlightView hv)
void | setCropImage (CropImage cropImage)
void | resetView (Bitmap b)
Public 成员函数 继承自 com.ab.view.cropimage.CropViewBase
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 属性
ArrayList< HighlightView > | mHighlightViews = new ArrayList<HighlightView>()
Public 属性 继承自 com.ab.view.cropimage.CropViewBase
final RotateBitmap | mBitmapDisplayed = new RotateBitmap(null)

## Protected 成员函数
void | onLayout (boolean changed, int left, int top, int right, int bottom)
void | zoomTo (float scale, float centerX, float centerY)
void | zoomIn ()
void | zoomOut ()
void | postTranslate (float deltaX, float deltaY)
void | onDraw (Canvas canvas)
Protected 成员函数 继承自 com.ab.view.cropimage.CropViewBase
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)

## 包属性
HighlightView | mMotionHighlightView = null
float | mLastX
float | mLastY
int | mMotionEdge
包属性 继承自 com.ab.view.cropimage.CropViewBase
int | mThisWidth = -1
int | mThisHeight = -1
float | mMaxZoom

## Private 成员函数
void | recomputeFocus (MotionEvent event)
void | ensureVisible (HighlightView hv)
void | centerBasedOnHighlightView (HighlightView hv)

## Private 属性
CropImage | mCropImage

## 额外继承的成员函数
静态 Public 属性 继承自 com.ab.view.cropimage.CropViewBase
static final int | STATE_HIGHLIGHT = 0x0
static final int | STATE_DOODLE = STATE_HIGHLIGHT + 1
static final int | STATE_NONE = STATE_HIGHLIGHT + 2
Protected 属性 继承自 com.ab.view.cropimage.CropViewBase
Matrix | mBaseMatrix = new Matrix()
Matrix | mSuppMatrix = new Matrix()
int | mState = STATE_HIGHLIGHT
Handler | mHandler = new Handler()
int | mLastXTouchPos
int | mLastYTouchPos
静态包属性 继承自 com.ab.view.cropimage.CropViewBase
static final float | SCALE_RATE = 1.25F

## 详细描述

The Class CropImageView.

## 构造及析构函数说明

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

Instantiates a new crop image view.

参数

  context | the context
  attrs | the attrs

## 成员函数说明

void com.ab.view.cropimage.CropImageView.add | ( | HighlightView | hv | ) |
| inline

Adds the.

参数

  hv | the hv

void com.ab.view.cropimage.CropImageView.centerBasedOnHighlightView | ( | HighlightView | hv | ) |
| inline private

Center based on highlight view.

参数

  hv | the hv

void com.ab.view.cropimage.CropImageView.ensureVisible | ( | HighlightView | hv | ) |
| inline private

Ensure visible.

参数

  hv | the hv

void com.ab.view.cropimage.CropImageView.onDraw | ( | Canvas | canvas | ) |
| inline protected

描述：TODO.

版本
  v1.0

参数

  canvas | the canvas

参见
  android.widget.ImageView::onDraw(android.graphics.Canvas)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

void com.ab.view.cropimage.CropImageView.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

参见
  com.ab.view.cropimage.CropViewBase::onLayout(boolean, int, int, int, int)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

boolean com.ab.view.cropimage.CropImageView.onTouchEvent | ( | MotionEvent | event | ) |
| inline

描述：TODO.

版本
  v1.0

参数

  event | the event

返回
  true, if successful

参见
  android.view.View::onTouchEvent(android.view.MotionEvent)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

void com.ab.view.cropimage.CropImageView.postTranslate | ( | float | deltaX,
|  | float | deltaY
| ) |  |
| inline protected

描述：TODO.

版本
  v1.0

参数

  deltaX | the delta x
  deltaY | the delta y

参见
  com.ab.view.cropimage.CropViewBase::postTranslate(float, float)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

void com.ab.view.cropimage.CropImageView.recomputeFocus | ( | MotionEvent | event | ) |
| inline private

Recompute focus.

参数

  event | the event

void com.ab.view.cropimage.CropImageView.resetView | ( | Bitmap | b | ) |
| inline

Reset view.

参数

  b | the b

void com.ab.view.cropimage.CropImageView.setCropImage | ( | CropImage | cropImage | ) |
| inline

Sets the crop image.

参数

  cropImage | the new crop image

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

描述：TODO.

版本
  v1.0

参见
  com.ab.view.cropimage.CropViewBase::zoomIn()

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

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

描述：TODO.

版本
  v1.0

参见
  com.ab.view.cropimage.CropViewBase::zoomOut()

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

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

描述：TODO.

版本
  v1.0

参数

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

参见
  com.ab.view.cropimage.CropViewBase::zoomTo(float, float, float)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:49

## 类成员变量说明

CropImage com.ab.view.cropimage.CropImageView.mCropImage
| private

The m crop image.

ArrayList<HighlightView> com.ab.view.cropimage.CropImageView.mHighlightViews = new ArrayList<HighlightView>()

The m highlight views.

float com.ab.view.cropimage.CropImageView.mLastX
| package

The m last y.

float com.ab.view.cropimage.CropImageView.mLastY
| package

int com.ab.view.cropimage.CropImageView.mMotionEdge
| package

The m motion edge.

HighlightView com.ab.view.cropimage.CropImageView.mMotionHighlightView = null
| package

The m motion highlight view.

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

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