target.apidocs.com.google.api.services.sheets.v4.model.GradientRule.html Maven / Gradle / Ivy
GradientRule (Google Sheets API v4-rev20240319-2.0.0)
com.google.api.services.sheets.v4.model
Class GradientRule
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sheets.v4.model.GradientRule
-
public final class GradientRule
extends com.google.api.client.json.GenericJson
A rule that applies a gradient color scale format, based on the interpolation points listed. The
format of a cell will vary based on its contents as compared to the values of the interpolation
points.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
GradientRule()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
GradientRule
clone()
InterpolationPoint
getMaxpoint()
The final interpolation point.
InterpolationPoint
getMidpoint()
An optional midway interpolation point.
InterpolationPoint
getMinpoint()
The starting interpolation point.
GradientRule
set(String fieldName,
Object value)
GradientRule
setMaxpoint(InterpolationPoint maxpoint)
The final interpolation point.
GradientRule
setMidpoint(InterpolationPoint midpoint)
An optional midway interpolation point.
GradientRule
setMinpoint(InterpolationPoint minpoint)
The starting interpolation point.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getMaxpoint
public InterpolationPoint getMaxpoint()
The final interpolation point.
- Returns:
- value or
null
for none
-
setMaxpoint
public GradientRule setMaxpoint(InterpolationPoint maxpoint)
The final interpolation point.
- Parameters:
maxpoint
- maxpoint or null
for none
-
getMidpoint
public InterpolationPoint getMidpoint()
An optional midway interpolation point.
- Returns:
- value or
null
for none
-
setMidpoint
public GradientRule setMidpoint(InterpolationPoint midpoint)
An optional midway interpolation point.
- Parameters:
midpoint
- midpoint or null
for none
-
getMinpoint
public InterpolationPoint getMinpoint()
The starting interpolation point.
- Returns:
- value or
null
for none
-
setMinpoint
public GradientRule setMinpoint(InterpolationPoint minpoint)
The starting interpolation point.
- Parameters:
minpoint
- minpoint or null
for none
-
set
public GradientRule set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public GradientRule clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.