Package org.geotools.styling.zoom
Interface ZoomContext
- All Known Subinterfaces:
ZoomContext
- All Known Implementing Classes:
ContinuousZoomContext
,ContinuousZoomContext
,ListZoomContext
,ListZoomContext
,MedialZoomContext
,MedialZoomContext
,RatioZoomContext
,RatioZoomContext
public interface ZoomContext
Represents a mapping between zoom level and scale.
- Author:
- Kevin Smith, Boundless
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn a scale range covering the specified zoom level but no others.double
getScaleDenominator
(int level) Find the reciprocal of the scale at a specified zoom level in this context.boolean
isInRange
(int level) Is the given level within the range for which the context has clearly defined scales.
-
Field Details
-
HINT_ID
- See Also:
-
-
Method Details
-
getScaleDenominator
double getScaleDenominator(int level) Find the reciprocal of the scale at a specified zoom level in this context.- Parameters:
level
- The level- Returns:
- The scale denominator
-
getRange
Return a scale range covering the specified zoom level but no others.- Parameters:
min
- Minimum zoom level. Absent (null) for open ended ranges.max
- Maximum zoom level. Absent (null) for open ended ranges.
-
isInRange
boolean isInRange(int level) Is the given level within the range for which the context has clearly defined scales.
-