Package org.openstreetmap.josm.gui.layer
Class NativeScaleLayer.Scale
java.lang.Object
org.openstreetmap.josm.gui.layer.NativeScaleLayer.Scale
- Enclosing interface:
- NativeScaleLayer
Represents a scale with native flag, used in
NativeScaleLayer.ScaleList-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final booleanTrue if this scale is native resolution for data source.private final doubleScale factor, same unit as inNavigatableComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Get index of this scale in aNativeScaleLayer.ScaleListdoublegetScale()toString()
-
Field Details
-
scale
Scale factor, same unit as inNavigatableComponent -
isNative
True if this scale is native resolution for data source. -
index
-
-
Constructor Details
-
Scale
Constructs a new Scale with given scale, native defaults to true.- Parameters:
scale- as defined in WMTS (scaleDenominator)index- zoom index for this scale
-
Scale
Constructs a new Scale with given scale, native and index values.- Parameters:
scale- as defined in WMTS (scaleDenominator)isNative- is this scale native to the source or notindex- zoom index for this scale
-
-
Method Details
-
toString
-
getIndex
Get index of this scale in aNativeScaleLayer.ScaleList- Returns:
- index
-
getScale
-