001 package com.google.gwt.maps.client.controls; 002 003 /** 004 * Identifiers for scale control ids. 005 * <br><br> 006 * See <a href="https://developers.google.com/maps/documentation/javascript/reference#ScaleControlStyle">ScaleControlStyle API Doc</a> 007 */ 008 public enum ScaleControlStyle { 009 010 /** 011 * The standard scale control. 012 */ 013 DEFAULT; 014 015 /** 016 * return the enum value as a String 017 * @return String 018 */ 019 public String value() { 020 return name(); 021 } 022 023 /** 024 * convert a String value to enum Type 025 * @param type 026 * @return TYPE 027 */ 028 public static ScaleControlStyle fromValue(String type) { 029 return valueOf(type.toUpperCase()); 030 } 031 032 /** 033 * return the enum Type as a String 034 */ 035 @Override 036 public String toString() { 037 return name(); 038 } 039 040 }