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.
|
inline |
Instantiates a new crop image view.
| context | the context |
| attrs | the attrs |
|
inline |
Adds the.
| hv | the hv |
|
inlineprivate |
Center based on highlight view.
| hv | the hv |
|
inlineprivate |
Ensure visible.
| hv | the hv |
|
inlineprotected |
描述:TODO.
| canvas | the canvas |
|
inlineprotected |
描述:TODO.
| changed | the changed |
| left | the left |
| top | the top |
| right | the right |
| bottom | the bottom |
|
inline |
描述:TODO.
| event | the event |
|
inlineprotected |
描述:TODO.
| deltaX | the delta x |
| deltaY | the delta y |
|
inlineprivate |
Recompute focus.
| event | the event |
|
inline |
Reset view.
| b | the b |
|
inline |
Sets the crop image.
| cropImage | the new crop image |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
描述:TODO.
| scale | the scale |
| centerX | the center x |
| centerY | the center y |
|
private |
The m crop image.
| ArrayList<HighlightView> com.ab.view.cropimage.CropImageView.mHighlightViews = new ArrayList<HighlightView>() |
The m highlight views.
|
package |
The m last y.
|
package |
|
package |
The m motion edge.
|
package |
The m motion highlight view.
1.8.8