@Override public float getScale() { return mAttacher.getScale(); }
@Override public float getScale() { return mAttacher.getScale(); }
@Override public float getScale() { return mAttacher.getScale(); }
@Override public float getScale() { return mAttacher.getScale(); }
@Override public float getScale() { return mAttacher.getScale(); }
public final void onScale(float scaleFactor, float focusX, float focusY) { if (DEBUG) { Log.d(LOG_TAG, String.format("onScale: scale: %.2f. fX: %.2f. fY: %.2f", scaleFactor, focusX, focusY)); } if (hasDrawable(getImageView()) && (getScale() < mMaxScale || scaleFactor < 1f)) { mSuppMatrix.postScale(scaleFactor, scaleFactor, focusX, focusY); checkAndDisplayMatrix(); } }
public final void onScale(float scaleFactor, float focusX, float focusY) { if (DEBUG) { Log.d(LOG_TAG, String.format("onScale: scale: %.2f. fX: %.2f. fY: %.2f", scaleFactor, focusX, focusY)); } if (hasDrawable(getImageView()) && (getScale() < mMaxScale || scaleFactor < 1f)) { mSuppMatrix.postScale(scaleFactor, scaleFactor, focusX, focusY); checkAndDisplayMatrix(); } }
public final void onScale(float scaleFactor, float focusX, float focusY) { if (DEBUG) { Log.d(LOG_TAG, String.format("onScale: scale: %.2f. fX: %.2f. fY: %.2f", scaleFactor, focusX, focusY)); } if (hasDrawable(getImageView()) && (getScale() < mMaxScale || scaleFactor < 1f)) { mSuppMatrix.postScale(scaleFactor, scaleFactor, focusX, focusY); checkAndDisplayMatrix(); } }
public final void onScale(float scaleFactor, float focusX, float focusY) { if (DEBUG) { Log.d(LOG_TAG, String.format("onScale: scale: %.2f. fX: %.2f. fY: %.2f", scaleFactor, focusX, focusY)); } if (hasDrawable(getImageView()) && (getScale() < mMaxScale || scaleFactor < 1f)) { mSuppMatrix.postScale(scaleFactor, scaleFactor, focusX, focusY); checkAndDisplayMatrix(); } }
public final void onScale(float scaleFactor, float focusX, float focusY) { if (DEBUG) { Log.d(LOG_TAG, String.format("onScale: scale: %.2f. fX: %.2f. fY: %.2f", scaleFactor, focusX, focusY)); } if (hasDrawable(getImageView()) && (getScale() < mMaxScale || scaleFactor < 1f)) { mSuppMatrix.postScale(scaleFactor, scaleFactor, focusX, focusY); checkAndDisplayMatrix(); } }
public final boolean onDoubleTap(MotionEvent ev) { try { float scale = getScale(); float x = ev.getX(); float y = ev.getY(); /* * if (scale < mMidScale) { zoomTo(mMidScale, x, y); } else */if (/* scale >= mMidScale && */scale < mMaxScale) { zoomTo(mMaxScale, x, y); } else { zoomTo(mMinScale, x, y); } } catch (ArrayIndexOutOfBoundsException e) { // Can sometimes happen when getX() and getY() is called } return true; }
public final boolean onDoubleTap(MotionEvent ev) { try { float scale = getScale(); float x = ev.getX(); float y = ev.getY(); /* * if (scale < mMidScale) { zoomTo(mMidScale, x, y); } else */if (/* scale >= mMidScale && */scale < mMaxScale) { zoomTo(mMaxScale, x, y); } else { zoomTo(mMinScale, x, y); } } catch (ArrayIndexOutOfBoundsException e) { // Can sometimes happen when getX() and getY() is called } return true; }
public final boolean onDoubleTap(MotionEvent ev) { try { float scale = getScale(); float x = ev.getX(); float y = ev.getY(); /* * if (scale < mMidScale) { zoomTo(mMidScale, x, y); } else */if (/* scale >= mMidScale && */scale < mMaxScale) { zoomTo(mMaxScale, x, y); } else { zoomTo(mMinScale, x, y); } } catch (ArrayIndexOutOfBoundsException e) { // Can sometimes happen when getX() and getY() is called } return true; }
public final boolean onDoubleTap(MotionEvent ev) { try { float scale = getScale(); float x = ev.getX(); float y = ev.getY(); /* * if (scale < mMidScale) { zoomTo(mMidScale, x, y); } else */if (/* scale >= mMidScale && */scale < mMaxScale) { zoomTo(mMaxScale, x, y); } else { zoomTo(mMinScale, x, y); } } catch (ArrayIndexOutOfBoundsException e) { // Can sometimes happen when getX() and getY() is called } return true; }
public final boolean onDoubleTap(MotionEvent ev) { try { float scale = getScale(); float x = ev.getX(); float y = ev.getY(); /* * if (scale < mMidScale) { zoomTo(mMidScale, x, y); } else */if (/* scale >= mMidScale && */scale < mMaxScale) { zoomTo(mMaxScale, x, y); } else { zoomTo(mMinScale, x, y); } } catch (ArrayIndexOutOfBoundsException e) { // Can sometimes happen when getX() and getY() is called } return true; }
@Override public final void zoomTo(float scale, float focalX, float focalY) { ImageView imageView = getImageView(); if (null != imageView) { imageView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY)); } }
@Override public final void zoomTo(float scale, float focalX, float focalY) { ImageView imageView = getImageView(); if (null != imageView) { imageView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY)); } }
@Override public final void zoomTo(float scale, float focalX, float focalY) { ImageView imageView = getImageView(); if (null != imageView) { imageView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY)); } }
@Override public final void zoomTo(float scale, float focalX, float focalY) { ImageView imageView = getImageView(); if (null != imageView) { imageView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY)); } }
@Override public final void zoomTo(float scale, float focalX, float focalY) { ImageView imageView = getImageView(); if (null != imageView) { imageView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY)); } }