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
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 com.google.api.client.json.GenericJson
public Color clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.