Enum Class TLcdMapScale.ScaleLocation

java.lang.Object
java.lang.Enum<TLcdMapScale.ScaleLocation>
com.luciad.view.TLcdMapScale.ScaleLocation
All Implemented Interfaces:
Serializable, Comparable<TLcdMapScale.ScaleLocation>, Constable
Enclosing class:
TLcdMapScale

public static enum TLcdMapScale.ScaleLocation extends Enum<TLcdMapScale.ScaleLocation>
Defines how a map scale is measured.
Since:
2021.0
  • Enum Constant Details

    • PROJECTION_CENTER

      public static final TLcdMapScale.ScaleLocation PROJECTION_CENTER
      A map scale ratio at the origin of the projection. The accuracy of this map scale depends on the distance (in meters) between the origin of the projection, and what is currently visible on screen. Typically, the larger the distance, the greater the distortion will be that is caused by the projection, and the less accurate the scale is.

      If, for example, the projection is centered on Paris, the scale is calculated for Paris. Therefore, if the view is showing the US, the scale calculated by this method is potentially way off compared to what is visible on screen.

    • MAP_CENTER

      public static final TLcdMapScale.ScaleLocation MAP_CENTER
      A map scale ratio at the center of the current view extents. If the projection is centered on a spot far away of the current view extents, the scale calculated by this method is still accurate (it is measured horizontally). This does imply however that the map scale changes by simply panning the map around.
  • Method Details

    • values

      public static TLcdMapScale.ScaleLocation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TLcdMapScale.ScaleLocation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null