public static enum MapInfo.ZoomLevel extends java.lang.Enum<MapInfo.ZoomLevel>
An enumeration to qualify real world zoom levels.
Enum Constant and Description |
---|
ZOOM_LEVEL_ATOM
A constant to specify the zoomable scale of objects
0 meters/point
|
ZOOM_LEVEL_CONFERENCE_ROOM
A constant to specify the zoomable scale of objects
0.0186 meters/point (~20 feet)
|
ZOOM_LEVEL_CUBICLE
A constant to specify the zoomable scale of objects
0.0046 meters/point (~5 feet)
|
ZOOM_LEVEL_DEPARTMENT
A constant to specify the zoomable scale of objects
0.0372 meters/point (~40 feet)
|
ZOOM_LEVEL_LARGE_BUILDING
A constant to specify the zoomable scale of objects
1.193 meters/point (~0.25 miles)
|
ZOOM_LEVEL_LARGE_CAMPUS
A constant to specify the zoomable scale of objects
9.547 meters/point (~2 miles)
|
ZOOM_LEVEL_LARGE_STORE
A constant to specify the zoomable scale of objects
0.298 meters/point (~300 feet)
|
ZOOM_LEVEL_MEDIUM_BUILDING
A constant to specify the zoomable scale of objects
0.596 meters/point (~625 feet)
|
ZOOM_LEVEL_MEDIUM_CAMPUS
A constant to specify the zoomable scale of objects
4.773 meters/point (~1 mile)
|
ZOOM_LEVEL_MEDIUM_STORE
A constant to specify the zoomable scale of objects
0.149 meters/point (~150 feet)
|
ZOOM_LEVEL_OFFICE
A constant to specify the zoomable scale of objects
0.0093 meters/point (~10 feet)
|
ZOOM_LEVEL_SMALL_CAMPUS
A constant to specify the zoomable scale of objects
2.387 meters/point (~0.5 miles)
|
ZOOM_LEVEL_SMALL_STORE
A constant to specify the zoomable scale of objects
0.0745 meters/point (~80 feet)
|
ZOOM_LEVEL_TOWN
A constant to specify the zoomable scale of objects
19.093 meters/point
|
ZOOM_LEVEL_WORLD
A constant to specify the zoomable scale of objects
156,412 meters/point
|
Modifier and Type | Method and Description |
---|---|
int |
getLevelValue() |
static float |
getScaleFor(double unitsPerMeter,
double level) |
float |
getScaleFor(float unitsPerMeter) |
static MapInfo.ZoomLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapInfo.ZoomLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapInfo.ZoomLevel ZOOM_LEVEL_WORLD
public static final MapInfo.ZoomLevel ZOOM_LEVEL_TOWN
public static final MapInfo.ZoomLevel ZOOM_LEVEL_LARGE_CAMPUS
public static final MapInfo.ZoomLevel ZOOM_LEVEL_MEDIUM_CAMPUS
public static final MapInfo.ZoomLevel ZOOM_LEVEL_SMALL_CAMPUS
public static final MapInfo.ZoomLevel ZOOM_LEVEL_LARGE_BUILDING
public static final MapInfo.ZoomLevel ZOOM_LEVEL_MEDIUM_BUILDING
public static final MapInfo.ZoomLevel ZOOM_LEVEL_LARGE_STORE
public static final MapInfo.ZoomLevel ZOOM_LEVEL_MEDIUM_STORE
public static final MapInfo.ZoomLevel ZOOM_LEVEL_SMALL_STORE
public static final MapInfo.ZoomLevel ZOOM_LEVEL_DEPARTMENT
public static final MapInfo.ZoomLevel ZOOM_LEVEL_CONFERENCE_ROOM
public static final MapInfo.ZoomLevel ZOOM_LEVEL_OFFICE
public static final MapInfo.ZoomLevel ZOOM_LEVEL_CUBICLE
public static final MapInfo.ZoomLevel ZOOM_LEVEL_ATOM
public static MapInfo.ZoomLevel[] values()
for (MapInfo.ZoomLevel c : MapInfo.ZoomLevel.values()) System.out.println(c);
public static MapInfo.ZoomLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getLevelValue()
public float getScaleFor(float unitsPerMeter)
public static float getScaleFor(double unitsPerMeter, double level)