public abstract class ImageViewTouchBase
extends android.support.v7.widget.AppCompatImageView
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Matrix |
mBaseMatrix |
protected RotateBitmap |
mBitmapDisplayed |
protected android.os.Handler |
mHandler |
protected android.graphics.Matrix |
mSuppMatrix |
static int |
TRANSITION_DURATION |
| Constructor and Description |
|---|
ImageViewTouchBase(android.content.Context context) |
ImageViewTouchBase(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
center(boolean horizontal,
boolean vertical) |
void |
clear() |
protected android.graphics.Matrix |
getImageViewMatrix() |
protected float |
getScale() |
protected float |
getScale(android.graphics.Matrix matrix) |
protected float |
getValue(android.graphics.Matrix matrix,
int whichValue) |
protected float |
maxZoom() |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
abstract void |
onZoomFinished() |
protected void |
panBy(float dx,
float dy) |
protected void |
postTranslate(float dx,
float dy) |
void |
setImageBitmap(android.graphics.Bitmap bitmap) |
void |
setImageBitmapResetBase(android.graphics.Bitmap bitmap,
boolean resetSupp,
int rotation) |
void |
setImageRotateBitmapResetBase(RotateBitmap bitmap,
boolean resetSupp) |
protected void |
zoomIn() |
protected void |
zoomIn(float rate) |
protected void |
zoomOut() |
protected void |
zoomOut(float rate) |
protected void |
zoomTo(float scale) |
protected void |
zoomTo(float scale,
float durationMs) |
protected void |
zoomTo(float scale,
float centerX,
float centerY) |
protected void |
zoomTo(float scale,
float centerX,
float centerY,
float durationMs) |
public static final int TRANSITION_DURATION
protected android.graphics.Matrix mBaseMatrix
protected android.graphics.Matrix mSuppMatrix
protected final RotateBitmap mBitmapDisplayed
protected android.os.Handler mHandler
public ImageViewTouchBase(android.content.Context context)
public ImageViewTouchBase(android.content.Context context,
android.util.AttributeSet attrs)
protected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
public void setImageBitmap(android.graphics.Bitmap bitmap)
public void clear()
public void setImageBitmapResetBase(android.graphics.Bitmap bitmap,
boolean resetSupp,
int rotation)
public void setImageRotateBitmapResetBase(RotateBitmap bitmap, boolean resetSupp)
protected void center(boolean horizontal,
boolean vertical)
protected float getValue(android.graphics.Matrix matrix,
int whichValue)
protected float getScale(android.graphics.Matrix matrix)
protected float getScale()
protected android.graphics.Matrix getImageViewMatrix()
protected float maxZoom()
protected void zoomTo(float scale,
float centerX,
float centerY)
protected void zoomTo(float scale,
float centerX,
float centerY,
float durationMs)
public abstract void onZoomFinished()
protected void zoomTo(float scale)
protected void zoomTo(float scale,
float durationMs)
protected void zoomIn()
protected void zoomOut()
protected void zoomIn(float rate)
protected void zoomOut(float rate)
protected void postTranslate(float dx,
float dy)
protected void panBy(float dx,
float dy)