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 double
getMedialScale
(int level) Get a scale between the given zoom level and the nextprotected abstract double
getScaleDenominator
(double level) Find the reciprocal of the scale at a specified zoom level in this context.double
getScaleDenominator
(int level) Find the reciprocal of the scale at a specified zoom level in this context.Methods inherited from class MedialZoomContext
getRange
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getScaleDenominator
in 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:
getMedialScale
in classMedialZoomContext
-