Class DefaultSectionStyle
java.lang.Object
com.independentsoft.office.odf.styles.DefaultStyle
com.independentsoft.office.odf.styles.DefaultSectionStyle
The Class DefaultSectionStyle.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.DefaultStyle
family -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DefaultSectionStyle class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the background color for the section.Gets the background image.Gets the gap between columns.Contains a collection of SectionColumn objects.Gets the left margin of the section.Gets the right margin of the section.Gets the separator line between columns.Gets the writing mode for an element.booleanSpecifies whether the text column content should be evenly distributed over all text columns or not.booleanSpecifies that sections should not be changed.voidsetBackgroundColor(String backgroundColor)Sets the background color for the section.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidsetColumnGap(Size columnGap)Sets the gap between columns.voidsetDontBalanceTextColumns(boolean dontBalanceTextColumns)Specifies whether the text column content should be evenly distributed over all text columns or not.voidsetLeftMargin(Size leftMargin)Sets the left margin of the section.voidsetProtect(boolean protect)Specifies that sections should not be changed.voidsetRightMargin(Size rightMargin)Sets the right margin of the section.voidsetSeparator(ColumnSeparator separator)Sets the separator line between columns.voidsetWritingMode(WritingMode writingMode)Sets the writing mode for an element.toString()Converts the value of the current DefaultSectionStyle object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.styles.DefaultStyle
getFamily, setFamily, toString
-
Constructor Details
-
DefaultSectionStyle
public DefaultSectionStyle()Initializes a new instance of the DefaultSectionStyle class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current DefaultSectionStyle object to its equivalent string representation.- Overrides:
toStringin classDefaultStyle- Returns:
- the string
-
getBackgroundColor
Gets the background color for the section.- Returns:
- the background color
-
setBackgroundColor
Sets the background color for the section.- Parameters:
backgroundColor- the new background color
-
getLeftMargin
Gets the left margin of the section.- Returns:
- the left margin
-
setLeftMargin
Sets the left margin of the section.- Parameters:
leftMargin- the new left margin
-
getRightMargin
Gets the right margin of the section.- Returns:
- the right margin
-
setRightMargin
Sets the right margin of the section.- Parameters:
rightMargin- the new right margin
-
getSeparator
Gets the separator line between columns.- Returns:
- the separator
-
setSeparator
Sets the separator line between columns.- Parameters:
separator- the new separator
-
getColumnGap
Gets the gap between columns.- Returns:
- the column gap
-
setColumnGap
Sets the gap between columns.- Parameters:
columnGap- the new column gap
-
getColumns
Contains a collection of SectionColumn objects.- Returns:
- the columns
-
isProtect
public boolean isProtect()Specifies that sections should not be changed.- Returns:
- true, if is protect
-
setProtect
public void setProtect(boolean protect)Specifies that sections should not be changed.- Parameters:
protect- the new protect
-
isDontBalanceTextColumns
public boolean isDontBalanceTextColumns()Specifies whether the text column content should be evenly distributed over all text columns or not.- Returns:
- true, if is dont balance text columns
-
setDontBalanceTextColumns
public void setDontBalanceTextColumns(boolean dontBalanceTextColumns)Specifies whether the text column content should be evenly distributed over all text columns or not.- Parameters:
dontBalanceTextColumns- the new dont balance text columns
-
getWritingMode
Gets the writing mode for an element.- Returns:
- the writing mode
-
setWritingMode
Sets the writing mode for an element.- Parameters:
writingMode- the new writing mode
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-