Package com.arubanetworks.meridian.maps
Enum Class MapInfo.ZoomLevel
- All Implemented Interfaces:
Serializable
,Comparable<MapInfo.ZoomLevel>
,java.lang.constant.Constable
- Enclosing class:
- MapInfo
An enumeration to qualify real world zoom levels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA constant to specify the zoomable scale of objects 0 meters/pointA constant to specify the zoomable scale of objects 0.0186 meters/point (~20 feet)A constant to specify the zoomable scale of objects 0.0046 meters/point (~5 feet)A constant to specify the zoomable scale of objects 0.0372 meters/point (~40 feet)A constant to specify the zoomable scale of objects 1.193 meters/point (~0.25 miles)A constant to specify the zoomable scale of objects 9.547 meters/point (~2 miles)A constant to specify the zoomable scale of objects 0.298 meters/point (~300 feet)A constant to specify the zoomable scale of objects 0.596 meters/point (~625 feet)A constant to specify the zoomable scale of objects 4.773 meters/point (~1 mile)A constant to specify the zoomable scale of objects 0.149 meters/point (~150 feet)A constant to specify the zoomable scale of objects 0.0093 meters/point (~10 feet)A constant to specify the zoomable scale of objects 2.387 meters/point (~0.5 miles)A constant to specify the zoomable scale of objects 0.0745 meters/point (~80 feet)A constant to specify the zoomable scale of objects 19.093 meters/pointA constant to specify the zoomable scale of objects 156,412 meters/point -
Method Summary
Modifier and TypeMethodDescriptionint
static float
getScaleFor
(double unitsPerMeter, double level) float
getScaleFor
(float unitsPerMeter) static MapInfo.ZoomLevel
Returns the enum constant of this class with the specified name.static MapInfo.ZoomLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ZOOM_LEVEL_WORLD
A constant to specify the zoomable scale of objects 156,412 meters/point -
ZOOM_LEVEL_TOWN
A constant to specify the zoomable scale of objects 19.093 meters/point -
ZOOM_LEVEL_LARGE_CAMPUS
A constant to specify the zoomable scale of objects 9.547 meters/point (~2 miles) -
ZOOM_LEVEL_MEDIUM_CAMPUS
A constant to specify the zoomable scale of objects 4.773 meters/point (~1 mile) -
ZOOM_LEVEL_SMALL_CAMPUS
A constant to specify the zoomable scale of objects 2.387 meters/point (~0.5 miles) -
ZOOM_LEVEL_LARGE_BUILDING
A constant to specify the zoomable scale of objects 1.193 meters/point (~0.25 miles) -
ZOOM_LEVEL_MEDIUM_BUILDING
A constant to specify the zoomable scale of objects 0.596 meters/point (~625 feet) -
ZOOM_LEVEL_LARGE_STORE
A constant to specify the zoomable scale of objects 0.298 meters/point (~300 feet) -
ZOOM_LEVEL_MEDIUM_STORE
A constant to specify the zoomable scale of objects 0.149 meters/point (~150 feet) -
ZOOM_LEVEL_SMALL_STORE
A constant to specify the zoomable scale of objects 0.0745 meters/point (~80 feet) -
ZOOM_LEVEL_DEPARTMENT
A constant to specify the zoomable scale of objects 0.0372 meters/point (~40 feet) -
ZOOM_LEVEL_CONFERENCE_ROOM
A constant to specify the zoomable scale of objects 0.0186 meters/point (~20 feet) -
ZOOM_LEVEL_OFFICE
A constant to specify the zoomable scale of objects 0.0093 meters/point (~10 feet) -
ZOOM_LEVEL_CUBICLE
A constant to specify the zoomable scale of objects 0.0046 meters/point (~5 feet) -
ZOOM_LEVEL_ATOM
A constant to specify the zoomable scale of objects 0 meters/point
-
-
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
-
getLevelValue
public int getLevelValue() -
getScaleFor
public float getScaleFor(float unitsPerMeter) -
getScaleFor
public static float getScaleFor(double unitsPerMeter, double level)
-