Package org.geotools.styling.zoom
Class MedialZoomContext
Object
MedialZoomContext
- All Implemented Interfaces:
ZoomContext
- Direct Known Subclasses:
ContinuousZoomContext
,ListZoomContext
,MedialZoomContext
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract double
getMedialScale
(int level) Get a scale between the given zoom level and the nextReturn 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
-
Constructor Details
-
MedialZoomContext
public MedialZoomContext()
-
-
Method Details
-
getMedialScale
protected abstract double getMedialScale(int level) Get a scale between the given zoom level and the next -
getRange
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.
-