Package org.geotools.styling.zoom
Class ContinuousZoomContext
Object
MedialZoomContext
ContinuousZoomContext
- All Implemented Interfaces:
ZoomContext
- Direct Known Subclasses:
ContinuousZoomContext,RatioZoomContext
Zoom Context supporting non-integer levels.
- Author:
- Kevin Smith, Boundless
-
Field Summary
Fields inherited from interface ZoomContext
HINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetMedialScale(int level) Get a scale between the given zoom level and the nextprotected abstract doublegetScaleDenominator(double level) Find the reciprocal of the scale at a specified zoom level in this context.doublegetScaleDenominator(int level) Find the reciprocal of the scale at a specified zoom level in this context.Methods inherited from class MedialZoomContext
getRangeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ZoomContext
getRange, isInRange
-
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:
getScaleDenominatorin interfaceZoomContext- 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:
getMedialScalein classMedialZoomContext
-