public static class NativeScaleLayer.Scale extends java.lang.Object
NativeScaleLayer.ScaleList
Modifier and Type | Field and Description |
---|---|
private int |
index |
private boolean |
isNative
True if this scale is native resolution for data source.
|
private double |
scale
Scale factor, same unit as in
NavigatableComponent |
Constructor and Description |
---|
Scale(double scale,
boolean isNative,
int index)
Constructs a new Scale with given scale, native and index values.
|
Scale(double scale,
int index)
Constructs a new Scale with given scale, native defaults to true.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Get index of this scale in a
NativeScaleLayer.ScaleList |
double |
getScale() |
java.lang.String |
toString() |
private double scale
NavigatableComponent
private boolean isNative
private int index
public Scale(double scale, int index)
scale
- as defined in WMTS (scaleDenominator)index
- zoom index for this scalepublic Scale(double scale, boolean isNative, int index)
scale
- as defined in WMTS (scaleDenominator)isNative
- is this scale native to the source or notindex
- zoom index for this scalepublic java.lang.String toString()
toString
in class java.lang.Object
public int getIndex()
NativeScaleLayer.ScaleList
public double getScale()