public final class TextStyle
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 Slides 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TextStyle() |
| Modifier and Type | Method and Description |
|---|---|
TextStyle |
clone() |
OptionalColor |
getBackgroundColor()
The background color of the text.
|
String |
getBaselineOffset()
The text's vertical offset from its normal position.
|
Boolean |
getBold()
Whether or not the text is rendered as bold.
|
String |
getFontFamily()
The font family of the text.
|
Dimension |
getFontSize()
The size of the text's font.
|
OptionalColor |
getForegroundColor()
The color of the text itself.
|
Boolean |
getItalic()
Whether or not the text is italicized.
|
Link |
getLink()
The hyperlink destination of the text.
|
Boolean |
getSmallCaps()
Whether or not the text is in small capital letters.
|
Boolean |
getStrikethrough()
Whether or not the text is struck through.
|
Boolean |
getUnderline()
Whether or not the text is underlined.
|
WeightedFontFamily |
getWeightedFontFamily()
The font family and rendered weight of the text.
|
TextStyle |
set(String fieldName,
Object value) |
TextStyle |
setBackgroundColor(OptionalColor backgroundColor)
The background color of the text.
|
TextStyle |
setBaselineOffset(String baselineOffset)
The text's vertical offset from its normal position.
|
TextStyle |
setBold(Boolean bold)
Whether or not the text is rendered as bold.
|
TextStyle |
setFontFamily(String fontFamily)
The font family of the text.
|
TextStyle |
setFontSize(Dimension fontSize)
The size of the text's font.
|
TextStyle |
setForegroundColor(OptionalColor foregroundColor)
The color of the text itself.
|
TextStyle |
setItalic(Boolean italic)
Whether or not the text is italicized.
|
TextStyle |
setLink(Link link)
The hyperlink destination of the text.
|
TextStyle |
setSmallCaps(Boolean smallCaps)
Whether or not the text is in small capital letters.
|
TextStyle |
setStrikethrough(Boolean strikethrough)
Whether or not the text is struck through.
|
TextStyle |
setUnderline(Boolean underline)
Whether or not the text is underlined.
|
TextStyle |
setWeightedFontFamily(WeightedFontFamily weightedFontFamily)
The font family and rendered weight of the text.
|
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 OptionalColor getBackgroundColor()
null for nonepublic TextStyle setBackgroundColor(OptionalColor backgroundColor)
backgroundColor - backgroundColor or null for nonepublic String getBaselineOffset()
null for nonepublic TextStyle setBaselineOffset(String baselineOffset)
baselineOffset - baselineOffset or null for nonepublic Boolean getBold()
null for nonepublic TextStyle setBold(Boolean bold)
bold - bold or null for nonepublic String getFontFamily()
null for nonepublic TextStyle setFontFamily(String fontFamily)
fontFamily - fontFamily or null for nonepublic Dimension getFontSize()
null for nonepublic TextStyle setFontSize(Dimension fontSize)
fontSize - fontSize or null for nonepublic OptionalColor getForegroundColor()
null for nonepublic TextStyle setForegroundColor(OptionalColor foregroundColor)
foregroundColor - foregroundColor or null for nonepublic Boolean getItalic()
null for nonepublic TextStyle setItalic(Boolean italic)
italic - italic or null for nonepublic Link getLink()
null for nonepublic TextStyle setLink(Link link)
link - link or null for nonepublic Boolean getSmallCaps()
null for nonepublic TextStyle setSmallCaps(Boolean smallCaps)
smallCaps - smallCaps or null for nonepublic Boolean getStrikethrough()
null for nonepublic TextStyle setStrikethrough(Boolean strikethrough)
strikethrough - strikethrough or null for nonepublic Boolean getUnderline()
null for nonepublic TextStyle setUnderline(Boolean underline)
underline - underline or null for nonepublic WeightedFontFamily getWeightedFontFamily()
null for nonepublic TextStyle setWeightedFontFamily(WeightedFontFamily weightedFontFamily)
weightedFontFamily - weightedFontFamily or null for nonepublic TextStyle set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TextStyle clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.