Package com.luciad.view
Enum Class TLcdMapScale.ScaleLocation
- All Implemented Interfaces:
Serializable
,Comparable<TLcdMapScale.ScaleLocation>
,Constable
- Enclosing class:
TLcdMapScale
Defines how a map scale is measured.
- Since:
- 2021.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA map scale ratio at the center of the current view extents.A map scale ratio at the origin of the projection. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdMapScale.ScaleLocation
Returns the enum constant of this class with the specified name.static TLcdMapScale.ScaleLocation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException
- if the argument is null
-