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 Docs 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
Constructor and Description |
---|
TextStyle() |
Modifier and Type | Method and Description |
---|---|
TextStyle |
clone() |
OptionalColor |
getBackgroundColor()
The background color of the text.
|
java.lang.String |
getBaselineOffset()
The text's vertical offset from its normal position.
|
java.lang.Boolean |
getBold()
Whether or not the text is rendered as bold.
|
Dimension |
getFontSize()
The size of the text's font.
|
OptionalColor |
getForegroundColor()
The foreground color of the text.
|
java.lang.Boolean |
getItalic()
Whether or not the text is italicized.
|
Link |
getLink()
The hyperlink destination of the text.
|
java.lang.Boolean |
getSmallCaps()
Whether or not the text is in small capital letters.
|
java.lang.Boolean |
getStrikethrough()
Whether or not the text is struck through.
|
java.lang.Boolean |
getUnderline()
Whether or not the text is underlined.
|
WeightedFontFamily |
getWeightedFontFamily()
The font family and rendered weight of the text.
|
TextStyle |
set(java.lang.String fieldName,
java.lang.Object value) |
TextStyle |
setBackgroundColor(OptionalColor backgroundColor)
The background color of the text.
|
TextStyle |
setBaselineOffset(java.lang.String baselineOffset)
The text's vertical offset from its normal position.
|
TextStyle |
setBold(java.lang.Boolean bold)
Whether or not the text is rendered as bold.
|
TextStyle |
setFontSize(Dimension fontSize)
The size of the text's font.
|
TextStyle |
setForegroundColor(OptionalColor foregroundColor)
The foreground color of the text.
|
TextStyle |
setItalic(java.lang.Boolean italic)
Whether or not the text is italicized.
|
TextStyle |
setLink(Link link)
The hyperlink destination of the text.
|
TextStyle |
setSmallCaps(java.lang.Boolean smallCaps)
Whether or not the text is in small capital letters.
|
TextStyle |
setStrikethrough(java.lang.Boolean strikethrough)
Whether or not the text is struck through.
|
TextStyle |
setUnderline(java.lang.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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public OptionalColor getBackgroundColor()
null
for nonepublic TextStyle setBackgroundColor(OptionalColor backgroundColor)
backgroundColor
- backgroundColor or null
for nonepublic java.lang.String getBaselineOffset()
null
for nonepublic TextStyle setBaselineOffset(java.lang.String baselineOffset)
baselineOffset
- baselineOffset or null
for nonepublic java.lang.Boolean getBold()
null
for nonepublic TextStyle setBold(java.lang.Boolean bold)
bold
- bold 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 java.lang.Boolean getItalic()
null
for nonepublic TextStyle setItalic(java.lang.Boolean italic)
italic
- italic or null
for nonepublic Link getLink()
null
for nonepublic TextStyle setLink(Link link)
link
- link or null
for nonepublic java.lang.Boolean getSmallCaps()
null
for nonepublic TextStyle setSmallCaps(java.lang.Boolean smallCaps)
smallCaps
- smallCaps or null
for nonepublic java.lang.Boolean getStrikethrough()
null
for nonepublic TextStyle setStrikethrough(java.lang.Boolean strikethrough)
strikethrough
- strikethrough or null
for nonepublic java.lang.Boolean getUnderline()
null
for nonepublic TextStyle setUnderline(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TextStyle clone()
clone
in class com.google.api.client.json.GenericJson