public final class Color
extends com.google.api.client.json.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-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Color() |
| Modifier and Type | Method and Description |
|---|---|
Color |
clone() |
java.lang.String |
getColor()
The CSS style color, can be in format of "red" or "#7733EE".
|
java.lang.Double |
getOpacity()
Opacity ranges from 0 to 1, inclusive.
|
Color |
set(java.lang.String fieldName,
java.lang.Object value) |
Color |
setColor(java.lang.String color)
The CSS style color, can be in format of "red" or "#7733EE".
|
Color |
setOpacity(java.lang.Double opacity)
Opacity ranges from 0 to 1, inclusive.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getColor()
null for nonepublic Color setColor(java.lang.String color)
color - color or null for nonepublic java.lang.Double getOpacity()
null for nonepublic Color setOpacity(java.lang.Double opacity)
opacity - opacity or null for nonepublic Color set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Color clone()
clone in class com.google.api.client.json.GenericJson