Class HeaderStyle
java.lang.Object
com.independentsoft.office.odf.styles.HeaderStyle
Represents the formatting properties for a header element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the background color for the header or footer.Gets the background image.Gets the border for the header or footer.Gets the widths of borders.Gets the bottom border for the header or footer.Gets the bottom widths of borders.Gets the bottom margin.Gets the bottom padding.Gets the height of an header or footer.Gets the left border for the header or footer.Gets the left widths of borders.Gets the left margin.Gets the left padding.Gets the margin.Gets the minimum height for a header or footer.Gets the padding.Gets the right border for the header or footer.Gets the right widths of borders.Gets the right margin.Gets the right padding.Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.Gets the top border for the header or footer.Gets the top widths of borders.Gets the top margin.Gets the top padding.booleanSpecifies whether the header or footer grows into the space between the page body and the header or footer before the height of the page body becomes smaller.voidsetBackgroundColor(String backgroundColor)Sets the background color for the header or footer.voidsetBackgroundImage(BackgroundImage backgroundImage)Sets the background image.voidSets the border for the header or footer.voidsetBorderLineWidth(BorderLineWidth borderLineWidth)Sets the widths of borders.voidsetBottomBorder(Border bottomBorder)Sets the bottom border for the header or footer.voidsetBottomBorderLineWidth(BorderLineWidth bottomBorderLineWidth)Sets the bottom widths of borders.voidsetBottomMargin(Size bottomMargin)Sets the bottom margin.voidsetBottomPadding(Size bottomPadding)Sets the bottom padding.voidsetDynamicSpacing(boolean dynamicSpacing)Specifies whether the header or footer grows into the space between the page body and the header or footer before the height of the page body becomes smaller.voidSets the height of an header or footer.voidsetLeftBorder(Border leftBorder)Sets the left border for the header or footer.voidsetLeftBorderLineWidth(BorderLineWidth leftBorderLineWidth)Sets the left widths of borders.voidsetLeftMargin(Size leftMargin)Sets the left margin.voidsetLeftPadding(Size leftPadding)Sets the left padding.voidSets the margin.voidsetMinHeight(Size minHeight)Sets the minimum height for a header or footer.voidsetPadding(Size padding)Sets the padding.voidsetRightBorder(Border rightBorder)Sets the right border for the header or footer.voidsetRightBorderLineWidth(BorderLineWidth rightBorderLineWidth)Sets the right widths of borders.voidsetRightMargin(Size rightMargin)Sets the right margin.voidsetRightPadding(Size rightPadding)Sets the right padding.voidSpecifies if enables or disables a three-dimensional shadow for a three-dimensional object.voidsetTopBorder(Border topBorder)Sets the top border for the header or footer.voidsetTopBorderLineWidth(BorderLineWidth topBorderLineWidth)Sets the top widths of borders.voidsetTopMargin(Size topMargin)Sets the top margin.voidsetTopPadding(Size topPadding)Sets the top padding.toString()Converts the value of the current HeaderStyle object to its equivalent string representation.
-
Constructor Details
-
HeaderStyle
public HeaderStyle()Initializes a new instance of the HeaderStyle class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current HeaderStyle object to its equivalent string representation. -
getHeight
Gets the height of an header or footer.- Returns:
- the height
-
setHeight
Sets the height of an header or footer.- Parameters:
height- the new height
-
getMinHeight
Gets the minimum height for a header or footer.- Returns:
- the min height
-
setMinHeight
Sets the minimum height for a header or footer.- Parameters:
minHeight- the new min height
-
isDynamicSpacing
public boolean isDynamicSpacing()Specifies whether the header or footer grows into the space between the page body and the header or footer before the height of the page body becomes smaller.- Returns:
- true, if is dynamic spacing
-
setDynamicSpacing
public void setDynamicSpacing(boolean dynamicSpacing)Specifies whether the header or footer grows into the space between the page body and the header or footer before the height of the page body becomes smaller.- Parameters:
dynamicSpacing- the new dynamic spacing
-
getMargin
Gets the margin.- Returns:
- the margin
-
setMargin
Sets the margin.- Parameters:
margin- the new margin
-
getLeftMargin
Gets the left margin.- Returns:
- the left margin
-
setLeftMargin
Sets the left margin.- Parameters:
leftMargin- the new left margin
-
getRightMargin
Gets the right margin.- Returns:
- the right margin
-
setRightMargin
Sets the right margin.- Parameters:
rightMargin- the new right margin
-
getTopMargin
Gets the top margin.- Returns:
- the top margin
-
setTopMargin
Sets the top margin.- Parameters:
topMargin- the new top margin
-
getBottomMargin
Gets the bottom margin.- Returns:
- the bottom margin
-
setBottomMargin
Sets the bottom margin.- Parameters:
bottomMargin- the new bottom margin
-
getBorder
Gets the border for the header or footer.- Returns:
- the border
-
setBorder
Sets the border for the header or footer.- Parameters:
border- the new border
-
getLeftBorder
Gets the left border for the header or footer.- Returns:
- the left border
-
setLeftBorder
Sets the left border for the header or footer.- Parameters:
leftBorder- the new left border
-
getRightBorder
Gets the right border for the header or footer.- Returns:
- the right border
-
setRightBorder
Sets the right border for the header or footer.- Parameters:
rightBorder- the new right border
-
getTopBorder
Gets the top border for the header or footer.- Returns:
- the top border
-
setTopBorder
Sets the top border for the header or footer.- Parameters:
topBorder- the new top border
-
getBottomBorder
Gets the bottom border for the header or footer.- Returns:
- the bottom border
-
setBottomBorder
Sets the bottom border for the header or footer.- Parameters:
bottomBorder- the new bottom border
-
getBorderLineWidth
Gets the widths of borders.- Returns:
- the border line width
-
setBorderLineWidth
Sets the widths of borders.- Parameters:
borderLineWidth- the new border line width
-
getLeftBorderLineWidth
Gets the left widths of borders.- Returns:
- the left border line width
-
setLeftBorderLineWidth
Sets the left widths of borders.- Parameters:
leftBorderLineWidth- the new left border line width
-
getRightBorderLineWidth
Gets the right widths of borders.- Returns:
- the right border line width
-
setRightBorderLineWidth
Sets the right widths of borders.- Parameters:
rightBorderLineWidth- the new right border line width
-
getTopBorderLineWidth
Gets the top widths of borders.- Returns:
- the top border line width
-
setTopBorderLineWidth
Sets the top widths of borders.- Parameters:
topBorderLineWidth- the new top border line width
-
getBottomBorderLineWidth
Gets the bottom widths of borders.- Returns:
- the bottom border line width
-
setBottomBorderLineWidth
Sets the bottom widths of borders.- Parameters:
bottomBorderLineWidth- the new bottom border line width
-
getPadding
Gets the padding.- Returns:
- the padding
-
setPadding
Sets the padding.- Parameters:
padding- the new padding
-
getLeftPadding
Gets the left padding.- Returns:
- the left padding
-
setLeftPadding
Sets the left padding.- Parameters:
leftPadding- the new left padding
-
getRightPadding
Gets the right padding.- Returns:
- the right padding
-
setRightPadding
Sets the right padding.- Parameters:
rightPadding- the new right padding
-
getTopPadding
Gets the top padding.- Returns:
- the top padding
-
setTopPadding
Sets the top padding.- Parameters:
topPadding- the new top padding
-
getBottomPadding
Gets the bottom padding.- Returns:
- the bottom padding
-
setBottomPadding
Sets the bottom padding.- Parameters:
bottomPadding- the new bottom padding
-
getBackgroundColor
Gets the background color for the header or footer.- Returns:
- the background color
-
setBackgroundColor
Sets the background color for the header or footer.- Parameters:
backgroundColor- the new background color
-
getShadow
Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.- Returns:
- the shadow
-
setShadow
Specifies if enables or disables a three-dimensional shadow for a three-dimensional object.- Parameters:
shadow- the new shadow
-
getBackgroundImage
Gets the background image.- Returns:
- the background image
-
setBackgroundImage
Sets the background image.- Parameters:
backgroundImage- the new background image
-