org.ros.android.view
Enum ZoomMode

java.lang.Object
  extended by java.lang.Enum<ZoomMode>
      extended by org.ros.android.view.ZoomMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ZoomMode>

public enum ZoomMode
extends java.lang.Enum<ZoomMode>


Enum Constant Summary
CLUTTER_ZOOM_MODE
          In the CLUTTER_ZOOM_MODE the DistanceView will auto adjust the level of zoom based on proximity to objects near by.
CUSTOM_ZOOM_MODE
          In CUSTOM_ZOOM_MODE the DistanceView allows the user to change the zoom level via pinch and reverse-pinch gestures.
VELOCITY_ZOOM_MODE
          In the VELOCITY_ZOOM_MODE the DistanceView will auto adjust the level of zoom based on the current linear velocity of the robot.
 
Method Summary
static ZoomMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ZoomMode[] 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

CLUTTER_ZOOM_MODE

public static final ZoomMode CLUTTER_ZOOM_MODE
In the CLUTTER_ZOOM_MODE the DistanceView will auto adjust the level of zoom based on proximity to objects near by. The view will zoom in further when there are objects closer to the robot and vice versa.


VELOCITY_ZOOM_MODE

public static final ZoomMode VELOCITY_ZOOM_MODE
In the VELOCITY_ZOOM_MODE the DistanceView will auto adjust the level of zoom based on the current linear velocity of the robot. The faster the robot moves the move zoomed out the view will be.


CUSTOM_ZOOM_MODE

public static final ZoomMode CUSTOM_ZOOM_MODE
In CUSTOM_ZOOM_MODE the DistanceView allows the user to change the zoom level via pinch and reverse-pinch gestures.

Method Detail

values

public static ZoomMode[] 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 (ZoomMode c : ZoomMode.values())
    System.out.println(c);

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

valueOf

public static ZoomMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null