public final class Color extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Maps Engine API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Color() |
| Modifier and Type | Method and Description |
|---|---|
Color |
clone() |
String |
getColor()
The CSS style color, can be in format of "red" or "#7733EE".
|
Double |
getOpacity()
Opacity ranges from 0 to 1, inclusive.
|
Color |
set(String fieldName,
Object value) |
Color |
setColor(String color)
The CSS style color, can be in format of "red" or "#7733EE".
|
Color |
setOpacity(Double opacity)
Opacity ranges from 0 to 1, inclusive.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getColor()
null for nonepublic Color setColor(String color)
color - color or null for nonepublic Double getOpacity()
null for nonepublic Color setOpacity(Double opacity)
opacity - opacity or null for nonepublic Color set(String fieldName, Object value)
set in class GenericJsonpublic Color clone()
clone in class GenericJson