Class ContinuousZoomContext

Object
MedialZoomContext
ContinuousZoomContext
All Implemented Interfaces:
ZoomContext
Direct Known Subclasses:
ContinuousZoomContext, RatioZoomContext

public abstract class ContinuousZoomContext extends MedialZoomContext implements ZoomContext
Zoom Context supporting non-integer levels.
Author:
Kevin Smith, Boundless
  • Constructor Details

    • ContinuousZoomContext

      public ContinuousZoomContext()
  • Method Details

    • getScaleDenominator

      protected abstract double getScaleDenominator(double level)
      Find the reciprocal of the scale at a specified zoom level in this context.
      Parameters:
      level - The level
      Returns:
      The scale denominator
    • getScaleDenominator

      public double getScaleDenominator(int level)
      Find the reciprocal of the scale at a specified zoom level in this context.
      Specified by:
      getScaleDenominator in interface ZoomContext
      Parameters:
      level - The level
      Returns:
      The scale denominator
    • getMedialScale

      protected double getMedialScale(int level)
      Get a scale between the given zoom level and the next
      Specified by:
      getMedialScale in class MedialZoomContext