Package org.geotools.ysld.parse
Interface ZoomContext
-
- All Known Implementing Classes:
ContinuousZoomContext
,ListZoomContext
,MedialZoomContext
,RatioZoomContext
public interface ZoomContext
Represents a mapping between zoom level and scale.- Author:
- Kevin Smith, Boundless
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScaleRange
getRange(Integer min, Integer max)
Return 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 Detail
-
HINT_ID
static final String HINT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
ScaleRange getRange(@Nullable Integer min, @Nullable Integer max)
Return a scale range covering the specified zoom level but no others.- Parameters:
min
- Minimum zoom level. Absent for open ended.max
- Maximum zoom level. Absent for open ended.
-
isInRange
boolean isInRange(int level)
Is the given level within the range for which the context has clearly defined scales.
-
-