com.google.gwt.maps.client.overlays
Enum Animation

java.lang.Object
  extended by java.lang.Enum<Animation>
      extended by com.google.gwt.maps.client.overlays.Animation
All Implemented Interfaces:
Serializable, Comparable<Animation>

public enum Animation
extends Enum<Animation>

Start an animation. Any ongoing animation will be cancelled. Currently supported animations are: BOUNCE, DROP. Passing in null will cause any animation to stop.


Enum Constant Summary
BOUNCE
           
DROP
           
STOPANIMATION
          Same as set Animation to null.
 
Method Summary
static Animation fromValue(Integer value)
           
static Animation fromValue(String value)
          convert a String value to enum Type
 String toString()
          return the enum Type as a String
 Integer value()
          return the enum value as a String
static Animation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Animation[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOUNCE

public static final Animation BOUNCE

DROP

public static final Animation DROP

STOPANIMATION

public static final Animation STOPANIMATION
Same as set Animation to null. This will stop the animation

Method Detail

values

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

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

valueOf

public static Animation 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

value

public Integer value()
return the enum value as a String

Returns:
String

fromValue

public static Animation fromValue(String value)
convert a String value to enum Type

Parameters:
value -
Returns:
TYPE

fromValue

public static Animation fromValue(Integer value)

toString

public String toString()
return the enum Type as a String

Overrides:
toString in class Enum<Animation>


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.