Package org.geotools.styling.zoom
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
-
-
Field Summary
-
Fields inherited from interface ZoomContext
HINT_ID
-
-
Constructor Summary
Constructors Constructor Description ContinuousZoomContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
-
-