Follow us on GitHub

com.google.gwt.maps.client.controls
Enum ZoomControlStyle

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

public enum ZoomControlStyle
extends Enum<ZoomControlStyle>

Identifiers for the zoom control.

See ZoomControlStyle API Doc


Enum Constant Summary
DEFAULT
          The default zoom control.
LARGE
          The larger control, with the zoom slider in addition to +/- buttons.
SMALL
          A small control with buttons to zoom in and out.
 
Method Summary
static ZoomControlStyle fromValue(String type)
          convert a String value to enum Type
 String toString()
          return the enum Type as a String
 String value()
          return the enum value as a String
static ZoomControlStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZoomControlStyle[] 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

DEFAULT

public static final ZoomControlStyle DEFAULT
The default zoom control. The control which DEFAULT maps to will vary according to map size and other factors. It may change in future versions of the API.


LARGE

public static final ZoomControlStyle LARGE
The larger control, with the zoom slider in addition to +/- buttons.


SMALL

public static final ZoomControlStyle SMALL
A small control with buttons to zoom in and out.

Method Detail

values

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

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

valueOf

public static ZoomControlStyle 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 String value()
return the enum value as a String

Returns:
String

fromValue

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

Parameters:
type -
Returns:
TYPE

toString

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

Overrides:
toString in class Enum<ZoomControlStyle>


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.