001    package com.google.gwt.maps.client.controls;
002    
003    /**
004     * Identifiers for the zoom control.
005     * <br><br>
006     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#ZoomControlStyle">ZoomControlStyle API Doc</a> 
007     */
008    public enum ZoomControlStyle {
009    
010      /**
011       * 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.
012       */
013      DEFAULT,
014      
015      /**
016       * The larger control, with the zoom slider in addition to +/- buttons.
017       */
018      LARGE,
019      
020      /**
021       * A small control with buttons to zoom in and out.
022       */
023      SMALL;
024      
025      /**
026       * return the enum value as a String
027       * @return String
028       */
029      public String value() {
030        return name();
031      }
032    
033      /**
034       * convert a String value to enum Type
035       * @param type
036       * @return TYPE
037       */
038      public static ZoomControlStyle fromValue(String type) {
039        return valueOf(type.toUpperCase());
040      }
041    
042      /**
043       * return the enum Type as a String
044       */
045      @Override
046      public String toString() {
047        return name();
048      }
049      
050    }