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 Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Color() |
Modifier and Type | Method and Description |
---|---|
Color |
clone() |
java.lang.Float |
getAlpha()
The fraction of this color that should be applied to the pixel.
|
java.lang.Float |
getBlue()
The amount of blue in the color as a value in the interval [0, 1].
|
java.lang.Float |
getGreen()
The amount of green in the color as a value in the interval [0, 1].
|
java.lang.Float |
getRed()
The amount of red in the color as a value in the interval [0, 1].
|
Color |
set(java.lang.String fieldName,
java.lang.Object value) |
Color |
setAlpha(java.lang.Float alpha)
The fraction of this color that should be applied to the pixel.
|
Color |
setBlue(java.lang.Float blue)
The amount of blue in the color as a value in the interval [0, 1].
|
Color |
setGreen(java.lang.Float green)
The amount of green in the color as a value in the interval [0, 1].
|
Color |
setRed(java.lang.Float red)
The amount of red in the color as a value in the interval [0, 1].
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Float getAlpha()
null
for nonepublic Color setAlpha(java.lang.Float alpha)
alpha
- alpha or null
for nonepublic java.lang.Float getBlue()
null
for nonepublic Color setBlue(java.lang.Float blue)
blue
- blue or null
for nonepublic java.lang.Float getGreen()
null
for nonepublic Color setGreen(java.lang.Float green)
green
- green or null
for nonepublic java.lang.Float getRed()
null
for nonepublic Color setRed(java.lang.Float red)
red
- red or null
for nonepublic Color set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Color clone()
clone
in class com.google.api.client.json.GenericJson