Class NativeScaleLayer.Scale

java.lang.Object
org.openstreetmap.josm.gui.layer.NativeScaleLayer.Scale
Enclosing interface:
NativeScaleLayer

public static class NativeScaleLayer.Scale extends Object
Represents a scale with native flag, used in NativeScaleLayer.ScaleList
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final boolean
    True if this scale is native resolution for data source.
    private final double
    Scale factor, same unit as in NavigatableComponent
  • Constructor Summary

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get index of this scale in a NativeScaleLayer.ScaleList
    double
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • scale

      private final double scale
      Scale factor, same unit as in NavigatableComponent
    • isNative

      private final boolean isNative
      True if this scale is native resolution for data source.
    • index

      private final int index
  • Constructor Details

    • Scale

      public Scale(double scale, int index)
      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

      public Scale(double scale, boolean isNative, int index)
      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 not
      index - zoom index for this scale
  • Method Details