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

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

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

origin: davemorrissey/subsampling-scale-image-view

/**
 * Sets scale and translate ready for the next draw.
 */
private void preDraw() {
  if (getWidth() == 0 || getHeight() == 0 || sWidth <= 0 || sHeight <= 0) {
    return;
  }
  // If waiting to translate to new center position, set translate now
  if (sPendingCenter != null && pendingScale != null) {
    scale = pendingScale;
    if (vTranslate == null) {
      vTranslate = new PointF();
    }
    vTranslate.x = (getWidth()/2) - (scale * sPendingCenter.x);
    vTranslate.y = (getHeight()/2) - (scale * sPendingCenter.y);
    sPendingCenter = null;
    pendingScale = null;
    fitToBounds(true);
    refreshRequiredTiles(true);
  }
  // On first display of base image set up position, and in other cases make sure scale is correct.
  fitToBounds(false);
}
origin: davemorrissey/subsampling-scale-image-view

    refreshRequiredTiles(eagerLoadingEnabled);
  refreshRequiredTiles(eagerLoadingEnabled);
    refreshRequiredTiles(eagerLoadingEnabled);
refreshRequiredTiles(true);
return true;
origin: davemorrissey/subsampling-scale-image-view

/**
 * Enable or disable pan gesture detection. Disabling pan causes the image to be centered. Pan
 * can still be changed from code.
 * @param panEnabled true to enable panning, false to disable.
 */
public final void setPanEnabled(boolean panEnabled) {
  this.panEnabled = panEnabled;
  if (!panEnabled && vTranslate != null) {
    vTranslate.x = (getWidth()/2) - (scale * (sWidth()/2));
    vTranslate.y = (getHeight()/2) - (scale * (sHeight()/2));
    if (isReady()) {
      refreshRequiredTiles(true);
      invalidate();
    }
  }
}
origin: davemorrissey/subsampling-scale-image-view

refreshRequiredTiles(finished);
if (finished) {
  if (anim.listener != null) {
origin: davemorrissey/subsampling-scale-image-view

  execute(task);
refreshRequiredTiles(true);
origin: mozilla-tw/Rocket

refreshRequiredTiles(finished);
if (finished) {
  if (anim.listener != null) {
origin: mozilla-tw/Rocket

/**
 * Sets scale and translate ready for the next draw.
 */
private void preDraw() {
  if (getWidth() == 0 || getHeight() == 0 || sWidth <= 0 || sHeight <= 0) {
    return;
  }
  // If waiting to translate to new center position, set translate now
  if (sPendingCenter != null && pendingScale != null) {
    scale = pendingScale;
    if (vTranslate == null) {
      vTranslate = new PointF();
    }
    vTranslate.x = (getWidth()/2) - (scale * sPendingCenter.x);
    vTranslate.y = (getHeight()/2) - (scale * sPendingCenter.y);
    sPendingCenter = null;
    pendingScale = null;
    fitToBounds(true);
    refreshRequiredTiles(true);
  }
  // On first display of base image set up position, and in other cases make sure scale is correct.
  fitToBounds(false);
}
origin: mozilla-tw/Rocket

    refreshRequiredTiles(false);
  refreshRequiredTiles(false);
    refreshRequiredTiles(false);
refreshRequiredTiles(true);
return true;
origin: mozilla-tw/Rocket

/**
 * Enable or disable pan gesture detection. Disabling pan causes the image to be centered.
 */
public final void setPanEnabled(boolean panEnabled) {
  this.panEnabled = panEnabled;
  if (!panEnabled && vTranslate != null) {
    vTranslate.x = (getWidth()/2) - (scale * (sWidth()/2));
    vTranslate.y = (getHeight()/2) - (scale * (sHeight()/2));
    if (isReady()) {
      refreshRequiredTiles(true);
      invalidate();
    }
  }
}
origin: mozilla-tw/Rocket

  execute(task);
refreshRequiredTiles(true);
com.davemorrissey.labs.subscaleviewSubsamplingScaleImageViewrefreshRequiredTiles

Javadoc

Loads the optimum tiles for display at the current scale and translate, so the screen can be filled with tiles that are at least as high resolution as the screen. Frees up bitmaps that are now off the screen.

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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
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