public class Attacher extends java.lang.Object implements IAttacher, android.view.View.OnTouchListener, OnScaleDragGestureListener
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Attacher.OrientationMode |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HORIZONTAL |
static int |
VERTICAL |
DEFAULT_MAX_SCALE, DEFAULT_MID_SCALE, DEFAULT_MIN_SCALE, ZOOM_DURATION| 构造器和说明 |
|---|
Attacher(<any> draweeView) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkMatrixAndInvalidate() |
boolean |
checkMatrixBounds() |
android.graphics.RectF |
getDisplayRect() |
<any> |
getDraweeView() |
android.graphics.Matrix |
getDrawMatrix() |
float |
getMaximumScale() |
float |
getMediumScale() |
float |
getMinimumScale() |
OnPhotoTapListener |
getOnPhotoTapListener() |
OnViewTapListener |
getOnViewTapListener() |
float |
getScale() |
protected void |
onDetachedFromWindow() |
void |
onDrag(float dx,
float dy) |
void |
onFling(float startX,
float startY,
float velocityX,
float velocityY) |
void |
onScale(float scaleFactor,
float focusX,
float focusY) |
void |
onScaleEnd() |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setAllowParentInterceptOnEdge(boolean allow) |
void |
setMaximumScale(float maximumScale) |
void |
setMediumScale(float mediumScale) |
void |
setMinimumScale(float minimumScale) |
void |
setOnDoubleTapListener(android.view.GestureDetector.OnDoubleTapListener newOnDoubleTapListener) |
void |
setOnLongClickListener(android.view.View.OnLongClickListener listener) |
void |
setOnPhotoTapListener(OnPhotoTapListener listener) |
void |
setOnScaleChangeListener(OnScaleChangeListener listener) |
void |
setOnViewTapListener(OnViewTapListener listener) |
void |
setOrientation(int orientation) |
void |
setScale(float scale) |
void |
setScale(float scale,
boolean animate) |
void |
setScale(float scale,
float focalX,
float focalY,
boolean animate) |
void |
setZoomTransitionDuration(long duration) |
void |
update(int imageInfoWidth,
int imageInfoHeight) |
public static final int HORIZONTAL
public static final int VERTICAL
public void setOnDoubleTapListener(android.view.GestureDetector.OnDoubleTapListener newOnDoubleTapListener)
setOnDoubleTapListener 在接口中 IAttacherpublic <any> getDraweeView()
public float getMinimumScale()
getMinimumScale 在接口中 IAttacherpublic float getMediumScale()
getMediumScale 在接口中 IAttacherpublic float getMaximumScale()
getMaximumScale 在接口中 IAttacherpublic void setMaximumScale(float maximumScale)
setMaximumScale 在接口中 IAttacherpublic void setMediumScale(float mediumScale)
setMediumScale 在接口中 IAttacherpublic void setMinimumScale(float minimumScale)
setMinimumScale 在接口中 IAttacherpublic void setScale(float scale,
float focalX,
float focalY,
boolean animate)
public void setOrientation(int orientation)
setOrientation 在接口中 IAttacherpublic void setZoomTransitionDuration(long duration)
setZoomTransitionDuration 在接口中 IAttacherpublic void setAllowParentInterceptOnEdge(boolean allow)
setAllowParentInterceptOnEdge 在接口中 IAttacherpublic void setOnScaleChangeListener(OnScaleChangeListener listener)
setOnScaleChangeListener 在接口中 IAttacherpublic void setOnLongClickListener(android.view.View.OnLongClickListener listener)
setOnLongClickListener 在接口中 IAttacherpublic void setOnPhotoTapListener(OnPhotoTapListener listener)
setOnPhotoTapListener 在接口中 IAttacherpublic void setOnViewTapListener(OnViewTapListener listener)
setOnViewTapListener 在接口中 IAttacherpublic OnPhotoTapListener getOnPhotoTapListener()
getOnPhotoTapListener 在接口中 IAttacherpublic OnViewTapListener getOnViewTapListener()
getOnViewTapListener 在接口中 IAttacherpublic android.graphics.Matrix getDrawMatrix()
public android.graphics.RectF getDisplayRect()
public void checkMatrixAndInvalidate()
public boolean checkMatrixBounds()
public void onScale(float scaleFactor,
float focusX,
float focusY)
onScale 在接口中 OnScaleDragGestureListenerpublic void onScaleEnd()
onScaleEnd 在接口中 OnScaleDragGestureListenerpublic void onDrag(float dx,
float dy)
onDrag 在接口中 OnScaleDragGestureListenerpublic void onFling(float startX,
float startY,
float velocityX,
float velocityY)
onFling 在接口中 OnScaleDragGestureListenerpublic boolean onTouch(android.view.View v,
android.view.MotionEvent event)
onTouch 在接口中 android.view.View.OnTouchListenerprotected void onDetachedFromWindow()