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
(设置 TabStop 集合)
|
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.
(获取 TabStops - 列表不能,它的条目不应该被修改。)
|
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
(段落前的垂直空白量 这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果 spaceBefore >= 0,则间距是正常行高的百分比。如果 spaceBefore < 0,则以点为单位的绝对值)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 >= 0,则空间是法线高度的百分比。如果 spaceBefore < 0,则 linepacing 的绝对值是以磅为单位的间距示例: // 段落将被格式化为在段落文本之前有一个间距。 // 间距将是每行最大文本大小的 200%。paragraph.setSpaceBefore(200); // 间距将是 48 磅的大小 paragraph.setSpaceBefore(-48.0);)
spaceBefore
- the vertical white space before the paragraph, null to unset
(spaceBefore - 段落前的垂直空白,null 取消设置)
java.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
(段落后的垂直空白量 这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果 spaceBefore >= 0,则间距是正常行高的百分比。如果 spaceBefore < 0,则 linepacing 的绝对值是以磅为单位的间距)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 >= 0,则空间是法线高度的百分比。如果 spaceAfter < 0,则 linepacing 的绝对值是以磅为单位的间距示例: // 段落将被格式化为在段落文本之后有一个间距。 // 间距将是每行最大文本大小的 200%。paragraph.setSpaceAfter(200); // 间距将是 48 磅的大小 paragraph.setSpaceAfter(-48.0);)
spaceAfter
- the vertical white space after the paragraph, null to unset
(spaceAfter - 段落后的垂直空白,null 取消设置)
java.lang.Double getLeftMargin()
void setLeftMargin(java.lang.Double leftMargin)
leftMargin
- the left margin (in points) or null to unset
(leftMargin - 左边距(以磅为单位)或 null 取消设置)
java.lang.Double getRightMargin()
void setRightMargin(java.lang.Double rightMargin)
rightMargin
- the right margin (in points) of the paragraph
(rightMargin - 段落的右边距(以磅为单位))
java.lang.Double getIndent()
void setIndent(java.lang.Double indent)
indent
- the indent (in points) applied to the first line of text in the paragraph
(indent - 应用于段落中第一行文本的缩进(以磅为单位))
int getIndentLevel()
void setIndentLevel(int level)
level
- the level (0 ... 4)
(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
(返回要在段落中使用的垂直行距。这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果行间距 >= 0,则行间距是正常行高的百分比。如果linespacing < 0,则linespacing的绝对值是以点为单位的间距)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);
(此元素指定要在段落中使用的垂直行距。这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果行间距 >= 0,则行间距是正常行高的百分比 如果行间距 < 0,行间距的绝对值是以点为单位的间距示例://间距将是每行段落上最大文本大小的 120%.setLineSpacing(120); // 间距将是每行最大文本大小的 200%。paragraph.setLineSpacing(200); // 间距为 48 点 paragraph.setLineSpacing(-48.0);)
lineSpacing
- the vertical line spacing
(lineSpacing - 垂直行距)
java.lang.String getDefaultFontFamily()
java.lang.Double getDefaultFontSize()
TextParagraph.TextAlign getTextAlign()
TextParagraph.TextAlign.LEFT
then.
(返回应用于段落的对齐方式。如果省略此属性,则返回 null。用户代码可以隐含 TextParagraph.TextAlign.LEFT 的值。)
void setTextAlign(TextParagraph.TextAlign align)
TextParagraph.TextAlign
.
(指定要应用于段落的对齐方式。可能的值包括左、右、居中、对齐和分布,请参阅 TextParagraph.TextAlign。)
align
- text align
(对齐 - 文本对齐)
TextParagraph.FontAlign getFontAlign()
TextParagraph.FontAlign.AUTO
(返回应用于段落的字体对齐方式。如果省略该属性,则返回 null,用户代码可以隐含 TextParagraph.FontAlign.AUTO 的值)
TextParagraph.BulletStyle getBulletStyle()
null
then no bullets are used
(段落的项目符号样式,如果为 null 则不使用项目符号)
void setBulletStyle(java.lang.Object... styles)
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.
(获取 TabStops - 列表不能,它的条目不应该被修改。与其他属性相反,如果该属性未在正常幻灯片级别上定义,即不合并不同级别的制表位,则此方法不会级联到主工作表。)
null
if no tabstops are defined
(tabstop 集合,如果没有定义 tabstop,则返回 null)
void addTabStops(double positionInPoints, TabStop.TabStopType tabStopType)
TabStop
collection
(设置 TabStop 集合)
tabStops
- the
TabStop
collection
(tabStops - TabStop 集合)
void clearTabStops()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.