|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.style.ParagraphProperties
public class ParagraphProperties
This class represents the paragraph style settings. It provides methods to access horizontal alignment. More functions will be added latter.
This class is a corresponded high level class for element "style:paragraph-properties". It provides methods to access the attributes and children of "style:paragraph-properties".
| Constructor Summary | |
|---|---|
protected |
ParagraphProperties()
Create an empty paragraph style setting object |
protected |
ParagraphProperties(StyleParagraphPropertiesElement properties)
Create a paragraph style setting object, which has the association with an element "style:paragraph-properties". |
| Method Summary | |
|---|---|
StyleTypeDefinitions.HorizontalAlignmentType |
getHorizontalAlignment()
Return the horizontal alignment. |
static ParagraphProperties |
getOrCreateParagraphProperties(OdfStyleBase style)
Return an instance of ParagraphProperties |
static ParagraphProperties |
getParagraphProperties(OdfStyleBase style)
Return an instance of ParagraphProperties |
void |
setHorizontalAlignment(StyleTypeDefinitions.HorizontalAlignmentType alignType)
Set the horizontal alignment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ParagraphProperties()
protected ParagraphProperties(StyleParagraphPropertiesElement properties)
properties - - the element "style:paragraph-properties"| Method Detail |
|---|
public void setHorizontalAlignment(StyleTypeDefinitions.HorizontalAlignmentType alignType)
If the first parameter is null, the horizontal alignment setting will be removed.
alignType - - the horizontal alignmentpublic StyleTypeDefinitions.HorizontalAlignmentType getHorizontalAlignment()
Null will be returned if there is no horizontal alignment setting.
public static ParagraphProperties getOrCreateParagraphProperties(OdfStyleBase style)
ParagraphProperties to represent the "style:paragraph-properties" in a style element.
If there is no "style:paragraph-properties" defined in the style element, a new "style:paragraph-properties" element will be created.
- Parameters:
style - - a style element
- Returns:
- an instance of
ParagraphProperties
public static ParagraphProperties getParagraphProperties(OdfStyleBase style)
ParagraphProperties to represent the "style:paragraph-properties" in a style element.
If there is no "style:paragraph-properties" defined in the style element, null will be returned.
- Parameters:
style - - a style element
- Returns:
- an instance of
ParagraphProperties;Null if there is no
"style:paragraph-properties" defined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||