Class TextParagraphProperties
java.lang.Object
com.independentsoft.office.drawing.TextParagraphProperties
The Class TextParagraphProperties.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new text paragraph properties.TextParagraphProperties(InternalXMLStreamReader reader, String localName)Instantiates a new text paragraph properties. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the alignment.intGets the default tab size.Gets the default text run properties.Gets the font alignment.intGets the indent.intGets the left margin.getLevel()Gets the level.Gets the line spacing.intGets the right margin.Gets the space after.Gets the space before.Gets the tab stops.Gets the text bullet.Gets the text bullet color.Gets the text bullet size.Gets the text bullet typeface.booleanChecks if is east asian line break.static booleanChecks if is empty.booleanChecks if is hanging punctuation.booleanChecks if is latin line break.booleanChecks if is right to left.voidsetAlignment(TextAlignmentType alignment)Sets the alignment.voidsetDefaultTabSize(int defaultTabSize)Sets the default tab size.voidsetEastAsianLineBreak(boolean eastAsianLineBreak)Sets the east asian line break.voidsetFontAlignment(TextFontAlignmentType fontAlignment)Sets the font alignment.voidsetHangingPunctuation(boolean hangingPunctuation)Sets the hanging punctuation.voidsetIndent(int indent)Sets the indent.voidsetLatinLineBreak(boolean latinLineBreak)Sets the latin line break.voidsetLeftMargin(int leftMargin)Sets the left margin.voidsetLevel(TextIndentLevelType level)Sets the level.voidsetLineSpacing(TextSpacing lineSpacing)Sets the line spacing.voidsetRightMargin(int rightMargin)Sets the right margin.voidsetRightToLeft(boolean rightToLeft)Sets the right to left.voidsetSpaceAfter(TextSpacing spaceAfter)Sets the space after.voidsetSpaceBefore(TextSpacing spaceBefore)Sets the space before.voidsetTextBullet(TextBullet textBullet)Sets the text bullet.voidsetTextBulletColor(TextBulletColor textBulletColor)Sets the text bullet color.voidsetTextBulletSize(TextBulletSize textBulletSize)Sets the text bullet size.voidsetTextBulletTypeface(TextBulletTypeface textBulletTypeface)Sets the text bullet typeface.To xml.
-
Constructor Details
-
TextParagraphProperties
public TextParagraphProperties()Instantiates a new text paragraph properties. -
TextParagraphProperties
public TextParagraphProperties(InternalXMLStreamReader reader, String localName) throws XMLStreamExceptionInstantiates a new text paragraph properties.- Parameters:
reader- the readerlocalName- the local name- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toXml
To xml.- Parameters:
localName- the local name- Returns:
- the string
-
isEmpty
Checks if is empty.- Parameters:
value- the valuelocalName- the local name- Returns:
- true, if is empty
-
getLineSpacing
Gets the line spacing.- Returns:
- the line spacing
-
setLineSpacing
Sets the line spacing.- Parameters:
lineSpacing- the new line spacing
-
getSpaceBefore
Gets the space before.- Returns:
- the space before
-
setSpaceBefore
Sets the space before.- Parameters:
spaceBefore- the new space before
-
getSpaceAfter
Gets the space after.- Returns:
- the space after
-
setSpaceAfter
Sets the space after.- Parameters:
spaceAfter- the new space after
-
getTextBulletColor
Gets the text bullet color.- Returns:
- the text bullet color
-
setTextBulletColor
Sets the text bullet color.- Parameters:
textBulletColor- the new text bullet color
-
getTextBulletSize
Gets the text bullet size.- Returns:
- the text bullet size
-
setTextBulletSize
Sets the text bullet size.- Parameters:
textBulletSize- the new text bullet size
-
getTextBulletTypeface
Gets the text bullet typeface.- Returns:
- the text bullet typeface
-
setTextBulletTypeface
Sets the text bullet typeface.- Parameters:
textBulletTypeface- the new text bullet typeface
-
getTextBullet
Gets the text bullet.- Returns:
- the text bullet
-
setTextBullet
Sets the text bullet.- Parameters:
textBullet- the new text bullet
-
getTabStops
Gets the tab stops.- Returns:
- the tab stops
-
getDefaultTextRunProperties
Gets the default text run properties.- Returns:
- the default text run properties
-
getAlignment
Gets the alignment.- Returns:
- the alignment
-
setAlignment
Sets the alignment.- Parameters:
alignment- the new alignment
-
getDefaultTabSize
public int getDefaultTabSize()Gets the default tab size.- Returns:
- the default tab size
-
setDefaultTabSize
public void setDefaultTabSize(int defaultTabSize)Sets the default tab size.- Parameters:
defaultTabSize- the new default tab size
-
isEastAsianLineBreak
public boolean isEastAsianLineBreak()Checks if is east asian line break.- Returns:
- true, if is east asian line break
-
setEastAsianLineBreak
public void setEastAsianLineBreak(boolean eastAsianLineBreak)Sets the east asian line break.- Parameters:
eastAsianLineBreak- the new east asian line break
-
getFontAlignment
Gets the font alignment.- Returns:
- the font alignment
-
setFontAlignment
Sets the font alignment.- Parameters:
fontAlignment- the new font alignment
-
isHangingPunctuation
public boolean isHangingPunctuation()Checks if is hanging punctuation.- Returns:
- true, if is hanging punctuation
-
setHangingPunctuation
public void setHangingPunctuation(boolean hangingPunctuation)Sets the hanging punctuation.- Parameters:
hangingPunctuation- the new hanging punctuation
-
getIndent
public int getIndent()Gets the indent.- Returns:
- the indent
-
setIndent
public void setIndent(int indent)Sets the indent.- Parameters:
indent- the new indent
-
isLatinLineBreak
public boolean isLatinLineBreak()Checks if is latin line break.- Returns:
- true, if is latin line break
-
setLatinLineBreak
public void setLatinLineBreak(boolean latinLineBreak)Sets the latin line break.- Parameters:
latinLineBreak- the new latin line break
-
getLevel
Gets the level.- Returns:
- the level
-
setLevel
Sets the level.- Parameters:
level- the new level
-
getLeftMargin
public int getLeftMargin()Gets the left margin.- Returns:
- the left margin
-
setLeftMargin
public void setLeftMargin(int leftMargin)Sets the left margin.- Parameters:
leftMargin- the new left margin
-
getRightMargin
public int getRightMargin()Gets the right margin.- Returns:
- the right margin
-
setRightMargin
public void setRightMargin(int rightMargin)Sets the right margin.- Parameters:
rightMargin- the new right margin
-
isRightToLeft
public boolean isRightToLeft()Checks if is right to left.- Returns:
- true, if is right to left
-
setRightToLeft
public void setRightToLeft(boolean rightToLeft)Sets the right to left.- Parameters:
rightToLeft- the new right to left
-