Tabnine Logo
SubsamplingScaleImageView.easeOutQuad
Code IndexAdd Tabnine to your IDE (free)

How to use
easeOutQuad
method
in
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView

Best Java code snippets using com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.easeOutQuad (Showing top 2 results out of 315)

origin: davemorrissey/subsampling-scale-image-view

/**
 * Apply a selected type of easing.
 * @param type Easing type, from static fields
 * @param time Elapsed time
 * @param from Start value
 * @param change Target value
 * @param duration Anm duration
 * @return Current value
 */
private float ease(int type, long time, float from, float change, long duration) {
  switch (type) {
    case EASE_IN_OUT_QUAD:
      return easeInOutQuad(time, from, change, duration);
    case EASE_OUT_QUAD:
      return easeOutQuad(time, from, change, duration);
    default:
      throw new IllegalStateException("Unexpected easing type: " + type);
  }
}
origin: mozilla-tw/Rocket

/**
 * Apply a selected type of easing.
 * @param type Easing type, from static fields
 * @param time Elapsed time
 * @param from Start value
 * @param change Target value
 * @param duration Anm duration
 * @return Current value
 */
private float ease(int type, long time, float from, float change, long duration) {
  switch (type) {
    case EASE_IN_OUT_QUAD:
      return easeInOutQuad(time, from, change, duration);
    case EASE_OUT_QUAD:
      return easeOutQuad(time, from, change, duration);
    default:
      throw new IllegalStateException("Unexpected easing type: " + type);
  }
}
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageVieweaseOutQuad

Javadoc

Quadratic easing for fling. With thanks to Robert Penner - http://gizma.com/easing/

Popular methods of SubsamplingScaleImageView

  • setImage
    Set the image source from a bitmap, resource, asset, file or other URI, starting with a given orient
  • setDoubleTapZoomScale
    Set the scale the image will zoom in to when double tapped. This also the scale point where a double
  • setMaxScale
    Set the maximum scale allowed. A value of 1 means 1:1 pixels at maximum scale. You may wish to set t
  • setMinimumDpi
    This is a screen density aware alternative to #setMaxScale(float); it allows you to express the maxi
  • setScaleAndCenter
    Externally change the scale and translation of the source image. This may be used with getCenter() a
  • getWidth
  • setDoubleTapZoomDpi
    A density aware alternative to #setDoubleTapZoomScale(float); this allows you to express the scale t
  • setMinimumScaleType
    Set the minimum scale type. See static fields. Normally #SCALE_TYPE_CENTER_INSIDE is best, for image
  • setMinimumTileDpi
    By default, image tiles are at least as high resolution as the screen. For a retina screen this may
  • setPanEnabled
    Enable or disable pan gesture detection. Disabling pan causes the image to be centered.
  • setZoomEnabled
    Enable or disable zoom gesture detection. Disabling zoom locks the the current scale.
  • <init>
  • setZoomEnabled,
  • <init>,
  • getCenter,
  • getContext,
  • getHeight,
  • getOrientation,
  • getScale,
  • isReady,
  • onDraw,
  • onImageLoaded

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now