public interface TextParagraph<S extends Shape<S,P>,P extends TextParagraph<S,P,T>,T extends TextRun>
extends java.lang.Iterable<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
TextParagraph.BulletStyle |
static class |
TextParagraph.FontAlign |
static class |
TextParagraph.TextAlign
Specifies a list of text alignment types
|
Modifier and Type | Method and Description |
---|---|
void |
addTabStops(double positionInPoints,
TabStop.TabStopType tabStopType)
Set the
TabStop collection |
void |
clearTabStops()
Removes the tabstops of this paragraphs.
|
TextParagraph.BulletStyle |
getBulletStyle() |
java.lang.String |
getDefaultFontFamily() |
java.lang.Double |
getDefaultFontSize() |
java.lang.Double |
getDefaultTabSize() |
TextParagraph.FontAlign |
getFontAlign()
Returns the font alignment that is applied to the paragraph.
|
java.lang.Double |
getIndent() |
int |
getIndentLevel() |
java.lang.Double |
getLeftMargin() |
java.lang.Double |
getLineSpacing()
Returns the vertical line spacing that is to be used within a paragraph.
|
TextShape<S,P> |
getParentShape() |
java.lang.Double |
getRightMargin()
Specifies the right margin of the paragraph.
|
java.lang.Double |
getSpaceAfter()
The amount of vertical white space after the paragraph
This may be specified in two different ways, percentage spacing and font point spacing:
|
java.lang.Double |
getSpaceBefore()
The amount of vertical white space before the paragraph
This may be specified in two different ways, percentage spacing and font point spacing:
|
java.util.List<? extends TabStop> |
getTabStops()
Get the
TabStops - the list can't be and it's entries shouldn't be modified. |
TextParagraph.TextAlign |
getTextAlign()
Returns the alignment that is applied to the paragraph.
|
java.util.List<T> |
getTextRuns()
Fetch the text runs that are contained within this block of text
|
boolean |
isHeaderOrFooter()
Convenience method to determine if this text paragraph is part of
the slide header or footer
|
void |
setBulletStyle(java.lang.Object... styles)
Sets the bullet styles.
|
void |
setIndent(java.lang.Double indent)
Specifies the indent size that will be applied to the first line of text in the paragraph.
|
void |
setIndentLevel(int level)
Specifies the particular level text properties that this paragraph will follow.
|
void |
setLeftMargin(java.lang.Double leftMargin)
Specifies the left margin of the paragraph.
|
void |
setLineSpacing(java.lang.Double lineSpacing)
This element specifies the vertical line spacing that is to be used within a paragraph.
|
void |
setRightMargin(java.lang.Double rightMargin) |
void |
setSpaceAfter(java.lang.Double spaceAfter)
Set the amount of vertical white space that will be present after the paragraph.
|
void |
setSpaceBefore(java.lang.Double spaceBefore)
Set the amount of vertical white space that will be present before the paragraph.
|
void |
setTextAlign(TextParagraph.TextAlign align)
Specifies the alignment that is to be applied to the paragraph.
|
java.lang.Double getSpaceBefore()
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value in points
void setSpaceBefore(java.lang.Double spaceBefore)
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value of linespacing is the spacing in points
Examples:
// The paragraph will be formatted to have a spacing before the paragraph text.
// The spacing will be 200% of the size of the largest text on each line
paragraph.setSpaceBefore(200);
// The spacing will be a size of 48 points
paragraph.setSpaceBefore(-48.0);
spaceBefore
- the vertical white space before the paragraph, null to unsetjava.lang.Double getSpaceAfter()
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value of linespacing is the spacing in points
void setSpaceAfter(java.lang.Double spaceAfter)
If spaceAfter >= 0, then space is a percentage of normal line height. If spaceAfter < 0, the absolute value of linespacing is the spacing in points
Examples:
// The paragraph will be formatted to have a spacing after the paragraph text.
// The spacing will be 200% of the size of the largest text on each line
paragraph.setSpaceAfter(200);
// The spacing will be a size of 48 points
paragraph.setSpaceAfter(-48.0);
spaceAfter
- the vertical white space after the paragraph, null to unsetjava.lang.Double getLeftMargin()
void setLeftMargin(java.lang.Double leftMargin)
leftMargin
- the left margin (in points) or null to unsetjava.lang.Double getRightMargin()
void setRightMargin(java.lang.Double rightMargin)
rightMargin
- the right margin (in points) of the paragraphjava.lang.Double getIndent()
void setIndent(java.lang.Double indent)
indent
- the indent (in points) applied to the first line of text in the paragraphint getIndentLevel()
void setIndentLevel(int level)
level
- the level (0 ... 4)java.lang.Double getLineSpacing()
If linespacing >= 0, then linespacing is a percentage of normal line height. If linespacing < 0, the absolute value of linespacing is the spacing in points
void setLineSpacing(java.lang.Double lineSpacing)
If linespacing >= 0, then linespacing is a percentage of normal line height If linespacing < 0, the absolute value of linespacing is the spacing in points
Examples:
// spacing will be 120% of the size of the largest text on each line
paragraph.setLineSpacing(120);
// spacing will be 200% of the size of the largest text on each line
paragraph.setLineSpacing(200);
// spacing will be 48 points
paragraph.setLineSpacing(-48.0);
lineSpacing
- the vertical line spacingjava.lang.String getDefaultFontFamily()
java.lang.Double getDefaultFontSize()
TextParagraph.TextAlign getTextAlign()
TextParagraph.TextAlign.LEFT
then.void setTextAlign(TextParagraph.TextAlign align)
TextParagraph.TextAlign
.align
- text alignTextParagraph.FontAlign getFontAlign()
TextParagraph.FontAlign.AUTO
TextParagraph.BulletStyle getBulletStyle()
null
then no bullets are usedvoid setBulletStyle(java.lang.Object... styles)
java.lang.Double getDefaultTabSize()
java.util.List<T> getTextRuns()
boolean isHeaderOrFooter()
java.util.List<? extends TabStop> getTabStops()
TabStops
- the list can't be and it's entries shouldn't be modified.
Opposed to other properties, this method is not cascading to the master sheet,
if the property is not defined on the normal slide level, i.e. the tabstops on
different levels aren't merged.null
if no tabstops are definedvoid addTabStops(double positionInPoints, TabStop.TabStopType tabStopType)
TabStop
collectionvoid clearTabStops()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.