target.apidocs.com.google.api.services.sheets.v4.model.OverlayPosition.html Maven / Gradle / Ivy
OverlayPosition (Google Sheets API v4-rev20230526-2.0.0)
com.google.api.services.sheets.v4.model
Class OverlayPosition
- 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.OverlayPosition
-
public final class OverlayPosition
extends com.google.api.client.json.GenericJson
The location an object is overlaid on top of a grid.
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
OverlayPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OverlayPosition
clone()
GridCoordinate
getAnchorCell()
The cell the object is anchored to.
Integer
getHeightPixels()
The height of the object, in pixels.
Integer
getOffsetXPixels()
The horizontal offset, in pixels, that the object is offset from the anchor cell.
Integer
getOffsetYPixels()
The vertical offset, in pixels, that the object is offset from the anchor cell.
Integer
getWidthPixels()
The width of the object, in pixels.
OverlayPosition
set(String fieldName,
Object value)
OverlayPosition
setAnchorCell(GridCoordinate anchorCell)
The cell the object is anchored to.
OverlayPosition
setHeightPixels(Integer heightPixels)
The height of the object, in pixels.
OverlayPosition
setOffsetXPixels(Integer offsetXPixels)
The horizontal offset, in pixels, that the object is offset from the anchor cell.
OverlayPosition
setOffsetYPixels(Integer offsetYPixels)
The vertical offset, in pixels, that the object is offset from the anchor cell.
OverlayPosition
setWidthPixels(Integer widthPixels)
The width of the object, in pixels.
-
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
-
getAnchorCell
public GridCoordinate getAnchorCell()
The cell the object is anchored to.
- Returns:
- value or
null
for none
-
setAnchorCell
public OverlayPosition setAnchorCell(GridCoordinate anchorCell)
The cell the object is anchored to.
- Parameters:
anchorCell
- anchorCell or null
for none
-
getHeightPixels
public Integer getHeightPixels()
The height of the object, in pixels. Defaults to 371.
- Returns:
- value or
null
for none
-
setHeightPixels
public OverlayPosition setHeightPixels(Integer heightPixels)
The height of the object, in pixels. Defaults to 371.
- Parameters:
heightPixels
- heightPixels or null
for none
-
getOffsetXPixels
public Integer getOffsetXPixels()
The horizontal offset, in pixels, that the object is offset from the anchor cell.
- Returns:
- value or
null
for none
-
setOffsetXPixels
public OverlayPosition setOffsetXPixels(Integer offsetXPixels)
The horizontal offset, in pixels, that the object is offset from the anchor cell.
- Parameters:
offsetXPixels
- offsetXPixels or null
for none
-
getOffsetYPixels
public Integer getOffsetYPixels()
The vertical offset, in pixels, that the object is offset from the anchor cell.
- Returns:
- value or
null
for none
-
setOffsetYPixels
public OverlayPosition setOffsetYPixels(Integer offsetYPixels)
The vertical offset, in pixels, that the object is offset from the anchor cell.
- Parameters:
offsetYPixels
- offsetYPixels or null
for none
-
getWidthPixels
public Integer getWidthPixels()
The width of the object, in pixels. Defaults to 600.
- Returns:
- value or
null
for none
-
setWidthPixels
public OverlayPosition setWidthPixels(Integer widthPixels)
The width of the object, in pixels. Defaults to 600.
- Parameters:
widthPixels
- widthPixels or null
for none
-
set
public OverlayPosition set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public OverlayPosition clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.