public class ListZoomContext extends MedialZoomContext
HINT_ID
Constructor and Description |
---|
ListZoomContext(List<Double> scales) |
ListZoomContext(List<Double> scales,
int initial) |
Modifier and Type | Method and Description |
---|---|
double |
getMedialScale(int level)
Get a scale between the given zoom level and the next
|
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.
|
static void |
validate(List<Double> scales)
Checks if the list contains a decreasing sequence of finite, positive, non-null values.
|
getRange
public static void validate(List<Double> scales)
scales
- IllegalArgumentException
- if the values are not decreasing, positive, and finite.NullPointerException
- if any values are null.public double getScaleDenominator(int level)
ZoomContext
level
- The levelpublic double getMedialScale(int level)
MedialZoomContext
getMedialScale
in class MedialZoomContext
public boolean isInRange(int level)
ZoomContext
Copyright © 1996–2019 Geotools. All rights reserved.