@Beta public class XSLFTextParagraph extends Object implements TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>
TextParagraph.BulletStyle, TextParagraph.FontAlign, TextParagraph.TextAlign| Modifier and Type | Method and Description |
|---|---|
XSLFTextRun |
addLineBreak()
Insert a line break
|
XSLFTextRun |
addNewTextRun()
Add a new run of text
|
void |
addTabStop(double value) |
void |
addTabStops(double positionInPoints,
TabStop.TabStopType tabStopType) |
void |
clearTabStops() |
AutoNumberingScheme |
getAutoNumberingScheme() |
Integer |
getAutoNumberingStartAt() |
String |
getBulletCharacter() |
String |
getBulletFont() |
PaintStyle |
getBulletFontColor() |
Double |
getBulletFontSize()
Returns the bullet size that is to be used within a paragraph.
|
TextParagraph.BulletStyle |
getBulletStyle() |
String |
getDefaultFontFamily() |
Double |
getDefaultFontSize() |
org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties |
getDefaultMasterStyle() |
Double |
getDefaultTabSize() |
TextParagraph.FontAlign |
getFontAlign() |
Double |
getIndent() |
int |
getIndentLevel() |
Double |
getLeftMargin() |
Double |
getLineSpacing() |
XSLFTextShape |
getParentShape() |
Double |
getRightMargin() |
Double |
getSpaceAfter() |
Double |
getSpaceBefore() |
double |
getTabStop(int idx) |
List<XSLFTabStop> |
getTabStops() |
String |
getText() |
TextParagraph.TextAlign |
getTextAlign() |
List<XSLFTextRun> |
getTextRuns() |
org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph |
getXmlObject() |
boolean |
isBullet()
Returns whether this paragraph has bullets
|
boolean |
isHeaderOrFooter() |
Iterator<XSLFTextRun> |
iterator() |
protected XSLFTextRun |
newTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextLineBreak r) |
protected XSLFTextRun |
newTextRun(org.apache.xmlbeans.XmlObject r)
Helper method to allow subclasses to provide their own text run
|
boolean |
removeTextRun(XSLFTextRun textRun)
Remove a text run
|
void |
setBullet(boolean flag) |
void |
setBulletAutoNumber(AutoNumberingScheme scheme,
int startAt)
Specifies that automatic numbered bullet points should be applied to this paragraph
|
void |
setBulletCharacter(String str) |
void |
setBulletFont(String typeface) |
void |
setBulletFontColor(Color color) |
void |
setBulletFontColor(PaintStyle color)
Set the color to be used on bullet characters within a given paragraph.
|
void |
setBulletFontSize(double bulletSize)
Sets the bullet size that is to be used within a paragraph.
|
void |
setBulletStyle(Object... styles) |
void |
setFontAlign(TextParagraph.FontAlign align)
Specifies the font alignment that is to be applied to the paragraph.
|
void |
setIndent(Double indent) |
void |
setIndentLevel(int level) |
void |
setLeftMargin(Double leftMargin) |
void |
setLineSpacing(Double lineSpacing) |
void |
setRightMargin(Double rightMargin) |
void |
setSpaceAfter(Double spaceAfter) |
void |
setSpaceBefore(Double spaceBefore) |
void |
setTextAlign(TextParagraph.TextAlign align) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String getText()
@Internal public org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph getXmlObject()
public XSLFTextShape getParentShape()
getParentShape in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public List<XSLFTextRun> getTextRuns()
getTextRuns in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Iterator<XSLFTextRun> iterator()
iterator in interface Iterable<XSLFTextRun>public XSLFTextRun addNewTextRun()
public boolean removeTextRun(XSLFTextRun textRun)
textRun - a run of textpublic XSLFTextRun addLineBreak()
public TextParagraph.TextAlign getTextAlign()
getTextAlign in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setTextAlign(TextParagraph.TextAlign align)
setTextAlign in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public TextParagraph.FontAlign getFontAlign()
getFontAlign in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setFontAlign(TextParagraph.FontAlign align)
TextParagraph.FontAlign.align - font alignpublic String getBulletFont()
public void setBulletFont(String typeface)
public String getBulletCharacter()
public void setBulletCharacter(String str)
public PaintStyle getBulletFontColor()
null value means to use the text font color.public void setBulletFontColor(Color color)
public void setBulletFontColor(PaintStyle color)
color - the bullet colorpublic Double getBulletFontSize()
If bulletSize >= 0, then bulletSize is a percentage of the font size. If bulletSize < 0, then it specifies the size in points
public void setBulletFontSize(double bulletSize)
If bulletSize >= 0, then bulletSize is a percentage of the font size. If bulletSize < 0, then it specifies the size in points
public AutoNumberingScheme getAutoNumberingScheme()
public Integer getAutoNumberingStartAt()
public void setIndent(Double indent)
setIndent in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getIndent()
getIndent in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setLeftMargin(Double leftMargin)
setLeftMargin in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getLeftMargin()
getLeftMargin in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setRightMargin(Double rightMargin)
setRightMargin in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getRightMargin()
getRightMargin in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getDefaultTabSize()
getDefaultTabSize in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public double getTabStop(int idx)
public void addTabStop(double value)
public void setLineSpacing(Double lineSpacing)
setLineSpacing in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getLineSpacing()
getLineSpacing in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setSpaceBefore(Double spaceBefore)
setSpaceBefore in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getSpaceBefore()
getSpaceBefore in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setSpaceAfter(Double spaceAfter)
setSpaceAfter in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public Double getSpaceAfter()
getSpaceAfter in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setIndentLevel(int level)
setIndentLevel in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public int getIndentLevel()
getIndentLevel in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public boolean isBullet()
public void setBullet(boolean flag)
flag - whether text in this paragraph has bulletspublic void setBulletAutoNumber(AutoNumberingScheme scheme, int startAt)
scheme - type of auto-numberingstartAt - the number that will start number for a given sequence of automatically
numbered bullets (1-based).@Internal public org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties getDefaultMasterStyle()
null if
there are no master slides or the master slides do not contain a text paragraphpublic Double getDefaultFontSize()
getDefaultFontSize in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public String getDefaultFontFamily()
getDefaultFontFamily in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public TextParagraph.BulletStyle getBulletStyle()
getBulletStyle in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void setBulletStyle(Object... styles)
setBulletStyle in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public List<XSLFTabStop> getTabStops()
getTabStops in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void addTabStops(double positionInPoints,
TabStop.TabStopType tabStopType)
addTabStops in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public void clearTabStops()
clearTabStops in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>public boolean isHeaderOrFooter()
isHeaderOrFooter in interface TextParagraph<XSLFShape,XSLFTextParagraph,XSLFTextRun>protected XSLFTextRun newTextRun(org.apache.xmlbeans.XmlObject r)
r - the xml referenceprotected XSLFTextRun newTextRun(org.openxmlformats.schemas.drawingml.x2006.main.CTTextLineBreak r)