public class CropImageView
extends AppCompatImageView
| Modifier and Type | Class and Description |
|---|---|
static interface |
com.yaantra.neeraj.serviceslib.ImageViewTouchBase.Recycler |
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Matrix |
baseMatrix |
protected com.yaantra.neeraj.serviceslib.RotateBitmap |
bitmapDisplayed |
protected android.os.Handler |
handler |
protected android.graphics.Matrix |
suppMatrix |
| Constructor and Description |
|---|
CropImageView(android.content.Context context) |
CropImageView(android.content.Context context,
android.util.AttributeSet attrs) |
CropImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.yaantra.neeraj.serviceslib.HighlightView hv) |
protected float |
calculateMaxZoom() |
protected void |
center() |
void |
clear() |
protected android.graphics.Matrix |
getImageViewMatrix() |
protected float |
getScale() |
protected float |
getScale(android.graphics.Matrix matrix) |
android.graphics.Matrix |
getUnrotatedMatrix() |
protected float |
getValue(android.graphics.Matrix matrix,
int whichValue) |
protected void |
onDraw(android.graphics.Canvas canvas) |
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event) |
boolean |
onKeyUp(int keyCode,
android.view.KeyEvent event) |
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
boolean |
onTouchEvent(android.view.MotionEvent event) |
protected void |
panBy(float dx,
float dy) |
protected void |
postTranslate(float deltaX,
float deltaY) |
void |
setImageBitmap(android.graphics.Bitmap bitmap) |
void |
setImageBitmapResetBase(android.graphics.Bitmap bitmap,
boolean resetSupp) |
void |
setImageRotateBitmapResetBase(com.yaantra.neeraj.serviceslib.RotateBitmap bitmap,
boolean resetSupp) |
void |
setRecycler(com.yaantra.neeraj.serviceslib.ImageViewTouchBase.Recycler recycler) |
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 centerX,
float centerY) |
protected void |
zoomTo(float scale,
float centerX,
float centerY,
float durationMs) |
protected android.graphics.Matrix baseMatrix
protected android.graphics.Matrix suppMatrix
protected final com.yaantra.neeraj.serviceslib.RotateBitmap bitmapDisplayed
protected android.os.Handler handler
public CropImageView(android.content.Context context)
public CropImageView(android.content.Context context,
android.util.AttributeSet attrs)
public CropImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
protected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
protected void zoomTo(float scale,
float centerX,
float centerY)
protected void zoomIn()
protected void zoomOut()
protected void postTranslate(float deltaX,
float deltaY)
public boolean onTouchEvent(android.view.MotionEvent event)
protected void onDraw(android.graphics.Canvas canvas)
public void add(com.yaantra.neeraj.serviceslib.HighlightView hv)
public void setRecycler(com.yaantra.neeraj.serviceslib.ImageViewTouchBase.Recycler recycler)
public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
public boolean onKeyUp(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)
public void setImageRotateBitmapResetBase(com.yaantra.neeraj.serviceslib.RotateBitmap bitmap,
boolean resetSupp)
protected void center()
protected float getValue(android.graphics.Matrix matrix,
int whichValue)
protected float getScale(android.graphics.Matrix matrix)
protected float getScale()
protected android.graphics.Matrix getImageViewMatrix()
public android.graphics.Matrix getUnrotatedMatrix()
protected float calculateMaxZoom()
protected void zoomTo(float scale,
float centerX,
float centerY,
float durationMs)
protected void zoomTo(float scale)
protected void zoomIn(float rate)
protected void zoomOut(float rate)
protected void panBy(float dx,
float dy)