com.esri.map
Enum GPSLayer.Mode

java.lang.Object
  extended by java.lang.Enum<GPSLayer.Mode>
      extended by com.esri.map.GPSLayer.Mode
All Implemented Interfaces:
Serializable, Comparable<GPSLayer.Mode>
Enclosing class:
GPSLayer

public static enum GPSLayer.Mode
extends Enum<GPSLayer.Mode>

GPS modes.

Since:
10.1.1

Enum Constant Summary
AUTOPAN
          Map is auto-panned so that the new extent includes the GPS point.
NAVIGATION
          The map is automatically panned and rotated so that the GPS point is fixed on screen and the pointed towards the top.
OFF
          In this mode, map's extent is not dependent on the GPS point.
 
Method Summary
static GPSLayer.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GPSLayer.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFF

public static final GPSLayer.Mode OFF
In this mode, map's extent is not dependent on the GPS point.


AUTOPAN

public static final GPSLayer.Mode AUTOPAN
Map is auto-panned so that the new extent includes the GPS point.


NAVIGATION

public static final GPSLayer.Mode NAVIGATION
The map is automatically panned and rotated so that the GPS point is fixed on screen and the pointed towards the top. The location along the line is determined by the "Navigation Point Height Factor".

Map animation is turned off in this mode.

Method Detail

values

public static GPSLayer.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GPSLayer.Mode c : GPSLayer.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GPSLayer.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.