Package org.geotools.styling.zoom
Class MedialZoomContext
- Object
-
- MedialZoomContext
-
- All Implemented Interfaces:
ZoomContext
- Direct Known Subclasses:
ContinuousZoomContext
,ListZoomContext
,MedialZoomContext
public abstract class MedialZoomContext extends Object implements ZoomContext
A zoom context that can find half way points between zoom levels.- Author:
- Kevin Smith, Boundless
-
-
Field Summary
-
Fields inherited from interface ZoomContext
HINT_ID
-
-
Constructor Summary
Constructors Constructor Description MedialZoomContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double
getMedialScale(int level)
Get a scale between the given zoom level and the nextScaleRange
getRange(Integer min, Integer max)
Return a scale range covering the specified zoom level but no others.-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ZoomContext
getScaleDenominator, isInRange
-
-
-
-
Method Detail
-
getMedialScale
protected abstract double getMedialScale(int level)
Get a scale between the given zoom level and the next
-
getRange
public ScaleRange getRange(Integer min, Integer max)
Description copied from interface:ZoomContext
Return a scale range covering the specified zoom level but no others.- Specified by:
getRange
in interfaceZoomContext
- Parameters:
min
- Minimum zoom level. Absent (null) for open ended ranges.max
- Maximum zoom level. Absent (null) for open ended ranges.
-
-