类 | |
| 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.
|
inline |
Instantiates a new crop view base.
| context | the context |
|
inline |
Instantiates a new crop view base.
| context | the context |
| attrs | the attrs |
|
inline |
Center.
| horizontal | the horizontal |
| vertical | the vertical |
|
inline |
Clear.
|
inlineprotected |
Gets the image view matrix.
|
inlineprivate |
Gets the proper base matrix.
| bitmap | the bitmap |
| matrix | the matrix |
|
inlineprotected |
Gets the scale.
| matrix | the matrix |
|
inline |
Gets the scale.
|
inlineprotected |
Gets the value.
| matrix | the matrix |
| whichValue | the which value |
|
inlineprivate |
Inits the.
|
inlineprotected |
Max zoom.
|
inline |
描述:TODO.
| keyCode | the key code |
| event | the event |
|
inlineprotected |
描述:TODO.
| changed | the changed |
| left | the left |
| top | the top |
| right | the right |
| bottom | the bottom |
|
inlineprotected |
Pan by.
| dx | the dx |
| dy | the dy |
|
inlineprotected |
Post translate.
| dx | the dx |
| dy | the dy |
|
inline |
描述:TODO.
| bitmap | the new image bitmap |
|
inlineprivate |
Sets the image bitmap.
| bitmap | the bitmap |
| rotation | the rotation |
|
inline |
Sets the image bitmap reset base.
| bitmap | the bitmap |
| resetSupp | the reset supp |
|
inline |
Sets the image rotate bitmap reset base.
| bitmap | the bitmap |
| resetSupp | the reset supp |
|
inline |
Sets the recycler.
| r | the new recycler |
|
inlineprotected |
Zoom in.
|
inlineprotected |
Zoom in.
| rate | the rate |
|
inlineprotected |
Zoom out.
|
inlineprotected |
Zoom out.
| rate | the rate |
|
inlineprotected |
Zoom to.
| scale | the scale |
| centerX | the center x |
| centerY | the center y |
|
inlineprotected |
Zoom to.
| scale | the scale |
| centerX | the center x |
| centerY | the center y |
| durationMs | the duration ms |
|
inlineprotected |
Zoom to.
| scale | the scale |
|
protected |
The m base matrix.
| final RotateBitmap com.ab.view.cropimage.CropViewBase.mBitmapDisplayed = new RotateBitmap(null) |
The m bitmap displayed.
|
private |
The m display matrix.
|
protected |
The m handler.
|
protected |
The m last x touch pos.
|
protected |
The m last y touch pos.
|
private |
The m matrix values.
|
package |
The m max zoom.
|
private |
The m on layout runnable.
|
private |
The m recycler.
|
protected |
The m state.
|
protected |
The m supp matrix.
|
package |
|
package |
The m this height.
|
staticpackage |
The Constant SCALE_RATE.
|
static |
涂鸦状态.
|
static |
高亮状态.
|
static |
没有任何操作.
|
staticprivate |
The Constant TAG.
1.8.8