public final class ParagraphStyle
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ParagraphStyle() |
Modifier and Type | Method and Description |
---|---|
ParagraphStyle |
clone() |
String |
getAlignment()
The text alignment for this paragraph.
|
Boolean |
getAvoidWidowAndOrphan()
Whether to avoid widows and orphans for the paragraph.
|
ParagraphBorder |
getBorderBetween()
The border between this paragraph and the next and previous paragraphs.
|
ParagraphBorder |
getBorderBottom()
The border at the bottom of this paragraph.
|
ParagraphBorder |
getBorderLeft()
The border to the left of this paragraph.
|
ParagraphBorder |
getBorderRight()
The border to the right of this paragraph.
|
ParagraphBorder |
getBorderTop()
The border at the top of this paragraph.
|
String |
getDirection()
The text direction of this paragraph.
|
String |
getHeadingId()
The heading ID of the paragraph.
|
Dimension |
getIndentEnd()
The amount of indentation for the paragraph on the side that corresponds to the end of the
text, based on the current paragraph direction.
|
Dimension |
getIndentFirstLine()
The amount of indentation for the first line of the paragraph.
|
Dimension |
getIndentStart()
The amount of indentation for the paragraph on the side that corresponds to the start of the
text, based on the current paragraph direction.
|
Boolean |
getKeepLinesTogether()
Whether all lines of the paragraph should be laid out on the same page or column if possible.
|
Boolean |
getKeepWithNext()
Whether at least a part of this paragraph should be laid out on the same page or column as the
next paragraph if possible.
|
Float |
getLineSpacing()
The amount of space between lines, as a percentage of normal, where normal is represented as
100.0.
|
String |
getNamedStyleType()
The named style type of the paragraph.
|
Boolean |
getPageBreakBefore()
Whether the current paragraph should always start at the beginning of a page.
|
Shading |
getShading()
The shading of the paragraph.
|
Dimension |
getSpaceAbove()
The amount of extra space above the paragraph.
|
Dimension |
getSpaceBelow()
The amount of extra space below the paragraph.
|
String |
getSpacingMode()
The spacing mode for the paragraph.
|
List<TabStop> |
getTabStops()
A list of the tab stops for this paragraph.
|
ParagraphStyle |
set(String fieldName,
Object value) |
ParagraphStyle |
setAlignment(String alignment)
The text alignment for this paragraph.
|
ParagraphStyle |
setAvoidWidowAndOrphan(Boolean avoidWidowAndOrphan)
Whether to avoid widows and orphans for the paragraph.
|
ParagraphStyle |
setBorderBetween(ParagraphBorder borderBetween)
The border between this paragraph and the next and previous paragraphs.
|
ParagraphStyle |
setBorderBottom(ParagraphBorder borderBottom)
The border at the bottom of this paragraph.
|
ParagraphStyle |
setBorderLeft(ParagraphBorder borderLeft)
The border to the left of this paragraph.
|
ParagraphStyle |
setBorderRight(ParagraphBorder borderRight)
The border to the right of this paragraph.
|
ParagraphStyle |
setBorderTop(ParagraphBorder borderTop)
The border at the top of this paragraph.
|
ParagraphStyle |
setDirection(String direction)
The text direction of this paragraph.
|
ParagraphStyle |
setHeadingId(String headingId)
The heading ID of the paragraph.
|
ParagraphStyle |
setIndentEnd(Dimension indentEnd)
The amount of indentation for the paragraph on the side that corresponds to the end of the
text, based on the current paragraph direction.
|
ParagraphStyle |
setIndentFirstLine(Dimension indentFirstLine)
The amount of indentation for the first line of the paragraph.
|
ParagraphStyle |
setIndentStart(Dimension indentStart)
The amount of indentation for the paragraph on the side that corresponds to the start of the
text, based on the current paragraph direction.
|
ParagraphStyle |
setKeepLinesTogether(Boolean keepLinesTogether)
Whether all lines of the paragraph should be laid out on the same page or column if possible.
|
ParagraphStyle |
setKeepWithNext(Boolean keepWithNext)
Whether at least a part of this paragraph should be laid out on the same page or column as the
next paragraph if possible.
|
ParagraphStyle |
setLineSpacing(Float lineSpacing)
The amount of space between lines, as a percentage of normal, where normal is represented as
100.0.
|
ParagraphStyle |
setNamedStyleType(String namedStyleType)
The named style type of the paragraph.
|
ParagraphStyle |
setPageBreakBefore(Boolean pageBreakBefore)
Whether the current paragraph should always start at the beginning of a page.
|
ParagraphStyle |
setShading(Shading shading)
The shading of the paragraph.
|
ParagraphStyle |
setSpaceAbove(Dimension spaceAbove)
The amount of extra space above the paragraph.
|
ParagraphStyle |
setSpaceBelow(Dimension spaceBelow)
The amount of extra space below the paragraph.
|
ParagraphStyle |
setSpacingMode(String spacingMode)
The spacing mode for the paragraph.
|
ParagraphStyle |
setTabStops(List<TabStop> tabStops)
A list of the tab stops for this paragraph.
|
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 String getAlignment()
null
for nonepublic ParagraphStyle setAlignment(String alignment)
alignment
- alignment or null
for nonepublic Boolean getAvoidWidowAndOrphan()
null
for nonepublic ParagraphStyle setAvoidWidowAndOrphan(Boolean avoidWidowAndOrphan)
avoidWidowAndOrphan
- avoidWidowAndOrphan or null
for nonepublic ParagraphBorder getBorderBetween()
null
for nonepublic ParagraphStyle setBorderBetween(ParagraphBorder borderBetween)
borderBetween
- borderBetween or null
for nonepublic ParagraphBorder getBorderBottom()
null
for nonepublic ParagraphStyle setBorderBottom(ParagraphBorder borderBottom)
borderBottom
- borderBottom or null
for nonepublic ParagraphBorder getBorderLeft()
null
for nonepublic ParagraphStyle setBorderLeft(ParagraphBorder borderLeft)
borderLeft
- borderLeft or null
for nonepublic ParagraphBorder getBorderRight()
null
for nonepublic ParagraphStyle setBorderRight(ParagraphBorder borderRight)
borderRight
- borderRight or null
for nonepublic ParagraphBorder getBorderTop()
null
for nonepublic ParagraphStyle setBorderTop(ParagraphBorder borderTop)
borderTop
- borderTop or null
for nonepublic String getDirection()
null
for nonepublic ParagraphStyle setDirection(String direction)
direction
- direction or null
for nonepublic String getHeadingId()
null
for nonepublic ParagraphStyle setHeadingId(String headingId)
headingId
- headingId or null
for nonepublic Dimension getIndentEnd()
null
for nonepublic ParagraphStyle setIndentEnd(Dimension indentEnd)
indentEnd
- indentEnd or null
for nonepublic Dimension getIndentFirstLine()
null
for nonepublic ParagraphStyle setIndentFirstLine(Dimension indentFirstLine)
indentFirstLine
- indentFirstLine or null
for nonepublic Dimension getIndentStart()
null
for nonepublic ParagraphStyle setIndentStart(Dimension indentStart)
indentStart
- indentStart or null
for nonepublic Boolean getKeepLinesTogether()
null
for nonepublic ParagraphStyle setKeepLinesTogether(Boolean keepLinesTogether)
keepLinesTogether
- keepLinesTogether or null
for nonepublic Boolean getKeepWithNext()
null
for nonepublic ParagraphStyle setKeepWithNext(Boolean keepWithNext)
keepWithNext
- keepWithNext or null
for nonepublic Float getLineSpacing()
null
for nonepublic ParagraphStyle setLineSpacing(Float lineSpacing)
lineSpacing
- lineSpacing or null
for nonepublic String getNamedStyleType()
null
for nonepublic ParagraphStyle setNamedStyleType(String namedStyleType)
namedStyleType
- namedStyleType or null
for nonepublic Boolean getPageBreakBefore()
null
for nonepublic ParagraphStyle setPageBreakBefore(Boolean pageBreakBefore)
pageBreakBefore
- pageBreakBefore or null
for nonepublic Shading getShading()
null
for nonepublic ParagraphStyle setShading(Shading shading)
shading
- shading or null
for nonepublic Dimension getSpaceAbove()
null
for nonepublic ParagraphStyle setSpaceAbove(Dimension spaceAbove)
spaceAbove
- spaceAbove or null
for nonepublic Dimension getSpaceBelow()
null
for nonepublic ParagraphStyle setSpaceBelow(Dimension spaceBelow)
spaceBelow
- spaceBelow or null
for nonepublic String getSpacingMode()
null
for nonepublic ParagraphStyle setSpacingMode(String spacingMode)
spacingMode
- spacingMode or null
for nonepublic List<TabStop> getTabStops()
null
for nonepublic ParagraphStyle setTabStops(List<TabStop> tabStops)
tabStops
- tabStops or null
for nonepublic ParagraphStyle set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ParagraphStyle clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.