com.google.gwt.maps.client.drawinglib
Enum OverlayType

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

public enum OverlayType
extends Enum<OverlayType>

The types of overlay that may be created by the DrawingManager.

See OverlayType API Doc


Enum Constant Summary
CIRCLE
          Specifies that the DrawingManager creates circles, and that the overlay given in the overlaycomplete event is a circle.
MARKER
          Specifies that the DrawingManager creates markers, and that the overlay given in the overlaycomplete event is a marker.
POLYGON
          Specifies that the DrawingManager creates polygons, and that the overlay given in the overlaycomplete event is a polygon.
POLYLINE
          Specifies that the DrawingManager creates polylines, and that the overlay given in the overlaycomplete event is a polyline.
RECTANGLE
          Specifies that the DrawingManager creates rectangles, and that the overlay given in the overlaycomplete event is a rectangle.
 
Method Summary
static OverlayType fromValue(String type)
           
 String toString()
           
 String value()
           
static OverlayType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OverlayType[] 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

CIRCLE

public static final OverlayType CIRCLE
Specifies that the DrawingManager creates circles, and that the overlay given in the overlaycomplete event is a circle.


MARKER

public static final OverlayType MARKER
Specifies that the DrawingManager creates markers, and that the overlay given in the overlaycomplete event is a marker.


POLYGON

public static final OverlayType POLYGON
Specifies that the DrawingManager creates polygons, and that the overlay given in the overlaycomplete event is a polygon.


POLYLINE

public static final OverlayType POLYLINE
Specifies that the DrawingManager creates polylines, and that the overlay given in the overlaycomplete event is a polyline.


RECTANGLE

public static final OverlayType RECTANGLE
Specifies that the DrawingManager creates rectangles, and that the overlay given in the overlaycomplete event is a rectangle.

Method Detail

values

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

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

valueOf

public static OverlayType 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()

fromValue

public static OverlayType fromValue(String type)

toString

public String toString()
Overrides:
toString in class Enum<OverlayType>


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