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 Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Color() |
| Modifier and Type | Method and Description |
|---|---|
Color |
clone() |
Float |
getAlpha()
The fraction of this color that should be applied to the pixel.
|
Float |
getBlue()
The amount of blue in the color as a value in the interval [0, 1].
|
Float |
getGreen()
The amount of green in the color as a value in the interval [0, 1].
|
Float |
getRed()
The amount of red in the color as a value in the interval [0, 1].
|
Color |
set(String fieldName,
Object value) |
Color |
setAlpha(Float alpha)
The fraction of this color that should be applied to the pixel.
|
Color |
setBlue(Float blue)
The amount of blue in the color as a value in the interval [0, 1].
|
Color |
setGreen(Float green)
The amount of green in the color as a value in the interval [0, 1].
|
Color |
setRed(Float red)
The amount of red in the color as a value in the interval [0, 1].
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Float getAlpha()
null for nonepublic Color setAlpha(Float alpha)
alpha - alpha or null for nonepublic Float getBlue()
null for nonepublic Color setBlue(Float blue)
blue - blue or null for nonepublic Float getGreen()
null for nonepublic Color setGreen(Float green)
green - green or null for nonepublic Float getRed()
null for nonepublic Color setRed(Float red)
red - red or null for nonepublic Color set(String fieldName, Object value)
set in class GenericJsonpublic Color clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.