public interface IPhotoView
| Modifier and Type | Method and Description |
|---|---|
boolean |
canZoom()
Returns true if the PhotoView is set to allow zooming of Photos.
|
android.graphics.Matrix |
getDisplayMatrix()
Gets the Display Matrix of the currently displayed Drawable.
|
android.graphics.RectF |
getDisplayRect()
Gets the Display Rectangle of the currently displayed Drawable.
|
float |
getMaximumScale() |
float |
getMaxScale()
Deprecated.
|
float |
getMediumScale() |
float |
getMidScale()
Deprecated.
|
float |
getMinimumScale() |
float |
getMinScale()
Deprecated.
|
float |
getScale()
Returns the current scale value
|
android.widget.ImageView.ScaleType |
getScaleType()
Return the current scale type in use by the ImageView.
|
void |
setAllowParentInterceptOnEdge(boolean allow)
Whether to allow the ImageView's parent to intercept the touch event when the photo is scroll to it's horizontal edge.
|
boolean |
setDisplayMatrix(android.graphics.Matrix finalMatrix)
Sets the Display Matrix of the currently displayed Drawable.
|
void |
setMaximumScale(float maximumScale)
Sets the maximum scale level.
|
void |
setMaxScale(float maxScale)
Deprecated.
|
void |
setMediumScale(float mediumScale) |
void |
setMidScale(float midScale)
Deprecated.
|
void |
setMinimumScale(float minimumScale)
Sets the minimum scale level.
|
void |
setMinScale(float minScale)
Deprecated.
|
void |
setOnLongClickListener(android.view.View.OnLongClickListener listener)
Register a callback to be invoked when the Photo displayed by this view is long-pressed.
|
void |
setOnMatrixChangeListener(PhotoViewAttacher.OnMatrixChangedListener listener)
Register a callback to be invoked when the Matrix has changed for this
View.
|
void |
setOnPhotoTapListener(PhotoViewAttacher.OnPhotoTapListener listener)
Register a callback to be invoked when the Photo displayed by this View
is tapped with a single tap.
|
void |
setOnViewTapListener(PhotoViewAttacher.OnViewTapListener listener)
Register a callback to be invoked when the View is tapped with a single
tap.
|
void |
setPhotoViewRotation(float rotationDegree)
Enables rotation via PhotoView internal functions.
|
void |
setScale(float scale)
Changes the current scale to the specified value.
|
void |
setScale(float scale,
boolean animate)
Changes the current scale to the specified value.
|
void |
setScale(float scale,
float focalX,
float focalY,
boolean animate)
Changes the current scale to the specified value, around the given focal point.
|
void |
setScaleType(android.widget.ImageView.ScaleType scaleType)
Controls how the image should be resized or moved to match the size of
the ImageView.
|
void |
setZoomable(boolean zoomable)
Allows you to enable/disable the zoom functionality on the ImageView.
|
boolean canZoom()
android.graphics.RectF getDisplayRect()
boolean setDisplayMatrix(android.graphics.Matrix finalMatrix)
android.graphics.Matrix getDisplayMatrix()
@Deprecated float getMinScale()
getMinimumScale() instead, this will be removed in future releaseImageView.ScaleType.float getMinimumScale()
ImageView.ScaleType.@Deprecated float getMidScale()
getMediumScale() instead, this will be removed in future releaseImageView.ScaleType.float getMediumScale()
ImageView.ScaleType.@Deprecated float getMaxScale()
getMaximumScale() instead, this will be removed in future releaseImageView.ScaleType.float getMaximumScale()
ImageView.ScaleType.float getScale()
android.widget.ImageView.ScaleType getScaleType()
void setAllowParentInterceptOnEdge(boolean allow)
@Deprecated void setMinScale(float minScale)
setMinimumScale(float minimumScale) instead, this will be removed in future release
Sets the minimum scale level. What this value represents depends on the current ImageView.ScaleType.void setMinimumScale(float minimumScale)
ImageView.ScaleType.@Deprecated void setMidScale(float midScale)
setMediumScale(float mediumScale) instead, this will be removed in future release
Sets the middle scale level. What this value represents depends on the current ImageView.ScaleType.void setMediumScale(float mediumScale)
@Deprecated void setMaxScale(float maxScale)
setMaximumScale(float maximumScale) instead, this will be removed in future release
Sets the maximum scale level. What this value represents depends on the current ImageView.ScaleType.void setMaximumScale(float maximumScale)
ImageView.ScaleType.void setOnLongClickListener(android.view.View.OnLongClickListener listener)
listener - - Listener to be registered.void setOnMatrixChangeListener(PhotoViewAttacher.OnMatrixChangedListener listener)
listener - - Listener to be registered.void setOnPhotoTapListener(PhotoViewAttacher.OnPhotoTapListener listener)
listener - - Listener to be registered.void setOnViewTapListener(PhotoViewAttacher.OnViewTapListener listener)
listener - - Listener to be registered.void setScale(float scale)
scale - - Value to scale tovoid setScale(float scale,
boolean animate)
scale - - Value to scale toanimate - - Whether to animate the scalevoid setScale(float scale,
float focalX,
float focalY,
boolean animate)
scale - - Value to scale tofocalX - - X Focus PointfocalY - - Y Focus Pointanimate - - Whether to animate the scalevoid setScaleType(android.widget.ImageView.ScaleType scaleType)
ImageView.ScaleType.scaleType - - The desired scaling mode.void setZoomable(boolean zoomable)
zoomable - - Whether the zoom functionality is enabled.void setPhotoViewRotation(float rotationDegree)
rotationDegree - - Degree to rotate PhotoView by, should be in range 0 to 360Copyright © 2015 Hannes Dorfmann. All rights reserved.