public class Style
extends java.lang.Object
Style object holds desired properties and property values for
later reference. If a property value is null, then that
indicates NOT to override the current style value on a cell.| Constructor | Description |
|---|---|
Style() |
Construct a
Style with no style preferences. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
apply(Style style) |
Applies the given
Style to this Style,
overwriting any properties in common. |
Alignment |
getAlignment() |
Returns the horizontal alignment.
|
java.lang.String |
getBorderBottomColor() |
Returns the bottom border color, as a color name or a hex string.
|
BorderType |
getBorderBottomType() |
Returns the bottom border type.
|
java.lang.String |
getBorderLeftColor() |
Returns the left border color, as a color name or a hex string.
|
BorderType |
getBorderLeftType() |
Returns the left border type.
|
java.lang.String |
getBorderRightColor() |
Returns the right border color, as a color name or a hex string.
|
BorderType |
getBorderRightType() |
Returns the right border type.
|
java.lang.String |
getBorderTopColor() |
Returns the top border color, as a color name or a hex string.
|
BorderType |
getBorderTopType() |
Returns the top border type.
|
java.lang.Integer |
getColumnWidth() |
Returns the column width in number of characters.
|
java.lang.String |
getDataFormat() |
Returns the data format string.
|
java.lang.String |
getFillBackgroundColor() |
Returns the fill background color, as a color name or a hex string.
|
java.lang.String |
getFillForegroundColor() |
Returns the fill foreground color, as a color name or a hex string.
|
FillPattern |
getFillPatternType() |
Returns the fill pattern type.
|
FontBoldweight |
getFontBoldweight() |
Returns the font boldweight.
|
FontCharset |
getFontCharset() |
Returns the font charset.
|
java.lang.String |
getFontColor() |
Returns the font color, either a color name or a hex string.
|
java.lang.Short |
getFontHeightInPoints() |
Returns the font height in points.
|
java.lang.String |
getFontName() |
Returns the font name.
|
FontTypeOffset |
getFontTypeOffset() |
Returns the
FontTypeOffset. |
FontUnderline |
getFontUnderline() |
Returns the
FontUnderLine. |
java.lang.Short |
getIndention() |
Returns the number characters the text is indented.
|
java.lang.Short |
getRotationDegrees() |
Returns the degrees the text is rotated.
|
java.lang.Short |
getRowHeight() |
Sets the row height in points.
|
VerticalAlignment |
getVerticalAlignment() |
Returns the vertical alignment.
|
java.lang.Boolean |
isFontItalic() |
Returns whether the font is italic.
|
java.lang.Boolean |
isFontStrikeout() |
Returns whether the font is strikeout.
|
java.lang.Boolean |
isHidden() |
Returns whether the cell is "hidden".
|
java.lang.Boolean |
isLocked() |
Returns whether the cell is "locked".
|
boolean |
isStyleToApply() |
Returns whether there are styles to apply, i.e.
|
java.lang.Boolean |
isWrappingText() |
Returns whether text is wrapped on to the next line.
|
void |
setAlignment(Alignment alignment) |
Sets the horizontal alignment.
|
void |
setBorderBottomColor(java.lang.String borderBottomColor) |
Sets the bottom border color, as a color name or a hex string.
|
void |
setBorderBottomType(BorderType borderBottomType) |
Sets the bottom border type.
|
void |
setBorderLeftColor(java.lang.String borderLeftColor) |
Sets the left border color, as a color name or a hex string.
|
void |
setBorderLeftType(BorderType borderLeftType) |
Sets the left border type.
|
void |
setBorderRightColor(java.lang.String borderRightColor) |
Sets the right border color, as a color name or a hex string.
|
void |
setBorderRightType(BorderType borderRightType) |
Sets the right border type.
|
void |
setBorderTopColor(java.lang.String borderTopColor) |
Sets the top border color, as a color name or a hex string.
|
void |
setBorderTopType(BorderType borderTopType) |
Sets the top border type.
|
void |
setColumnWidth(java.lang.Integer columnWidth) |
Sets the column width in number of characters.
|
void |
setDataFormat(java.lang.String dataFormat) |
Sets the data format string.
|
void |
setFillBackgroundColor(java.lang.String fillBackgroundColor) |
Sets the fill background color, as a color name or a hex string.
|
void |
setFillForegroundColor(java.lang.String fillForegroundColor) |
Sets the fill foreground color, as a color name or a hex string.
|
void |
setFillPatternType(FillPattern fillPatternType) |
Sets the fill pattern type.
|
void |
setFontBoldweight(FontBoldweight fontBoldweight) |
Sets the font boldweight.
|
void |
setFontCharset(FontCharset fontCharset) |
Returns the font charset.
|
void |
setFontColor(java.lang.String fontColor) |
Sets the font color, either a color name or a hex string.
|
void |
setFontHeightInPoints(java.lang.Short fontHeightInPoints) |
Sets the font height in points.
|
void |
setFontItalic(java.lang.Boolean isFontItalic) |
Sets whether the font is italic.
|
void |
setFontName(java.lang.String fontName) |
Sets the font name.
|
void |
setFontStrikeout(java.lang.Boolean isFontStrikeout) |
Sets whether the font is strikeout.
|
void |
setFontTypeOffset(FontTypeOffset fontTypeOffset) |
Sets the
FontTypeOffset. |
void |
setFontUnderline(FontUnderline fontUnderline) |
Sets the
FontUnderLine. |
void |
setHidden(java.lang.Boolean isHidden) |
Sets whether the cell is "hidden".
|
void |
setIndention(java.lang.Short indention) |
Sets the number characters the text is indented.
|
void |
setLocked(java.lang.Boolean isLocked) |
Sets whether the cell is "locked".
|
void |
setRotationDegrees(java.lang.Short rotationDegrees) |
Sets the degrees the text is rotated.
|
void |
setRowHeight(java.lang.Short rowHeight) |
Sets the row height in points.
|
void |
setVerticalAlignment(VerticalAlignment verticalAlignment) |
Sets the vertical alignment.
|
void |
setWrappingText(java.lang.Boolean isWrappingText) |
Sets whether text is wrapped on to the next line.
|
public Alignment getAlignment()
public void setAlignment(Alignment alignment)
alignment - The horizontal alignment.public BorderType getBorderBottomType()
public void setBorderBottomType(BorderType borderBottomType)
borderBottomType - The bottom border type.public BorderType getBorderLeftType()
public void setBorderLeftType(BorderType borderLeftType)
borderLeftType - The left border type.public BorderType getBorderRightType()
public void setBorderRightType(BorderType borderRightType)
borderRightType - The right border type.public BorderType getBorderTopType()
public void setBorderTopType(BorderType borderTopType)
borderTopType - The top border type.public java.lang.String getBorderBottomColor()
public void setBorderBottomColor(java.lang.String borderBottomColor)
borderBottomColor - The bottom border color, as a color name or a
hex string.public java.lang.String getBorderLeftColor()
public void setBorderLeftColor(java.lang.String borderLeftColor)
borderLeftColor - The left border color, as a color name or a hex
string.public java.lang.String getBorderRightColor()
public void setBorderRightColor(java.lang.String borderRightColor)
borderRightColor - The right border color, as a color name or a hex
string.public java.lang.String getBorderTopColor()
public void setBorderTopColor(java.lang.String borderTopColor)
borderTopColor - The top border color, as a color name or a hex
string.public java.lang.Integer getColumnWidth()
public void setColumnWidth(java.lang.Integer columnWidth)
columnWidth - The column width in number of characters.public java.lang.String getDataFormat()
public void setDataFormat(java.lang.String dataFormat)
dataFormat - The data format string.public java.lang.String getFillBackgroundColor()
public void setFillBackgroundColor(java.lang.String fillBackgroundColor)
fillBackgroundColor - The fill background color, as a color name or
a hex string.public java.lang.String getFillForegroundColor()
public void setFillForegroundColor(java.lang.String fillForegroundColor)
fillForegroundColor - The fill foreground color, as a color name or
a hex string.public FillPattern getFillPatternType()
public void setFillPatternType(FillPattern fillPatternType)
fillPatternType - The fill pattern type.public java.lang.Boolean isHidden()
public void setHidden(java.lang.Boolean isHidden)
isHidden - Whether the cell is "hidden".public java.lang.Short getIndention()
public void setIndention(java.lang.Short indention)
indention - The number characters the text is indented.public java.lang.Boolean isLocked()
public void setLocked(java.lang.Boolean isLocked)
isLocked - Whether the cell is "locked".public java.lang.Short getRotationDegrees()
public void setRotationDegrees(java.lang.Short rotationDegrees)
rotationDegrees - The degrees the text is rotated.public java.lang.Short getRowHeight()
public void setRowHeight(java.lang.Short rowHeight)
rowHeight - The row height in points.public VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
verticalAlignment - The vertical alignment.public java.lang.Boolean isWrappingText()
public void setWrappingText(java.lang.Boolean isWrappingText)
isWrappingText - Whether text is wrapped on to the next line.public FontBoldweight getFontBoldweight()
public void setFontBoldweight(FontBoldweight fontBoldweight)
fontBoldweight - The font boldweight.public FontCharset getFontCharset()
public void setFontCharset(FontCharset fontCharset)
fontCharset - The font charset.public java.lang.String getFontColor()
public void setFontColor(java.lang.String fontColor)
fontColor - The font color, either a color name or a hex string.public java.lang.Short getFontHeightInPoints()
public void setFontHeightInPoints(java.lang.Short fontHeightInPoints)
fontHeightInPoints - The font height in points.public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
fontName - The font name.public java.lang.Boolean isFontItalic()
public void setFontItalic(java.lang.Boolean isFontItalic)
isFontItalic - Whether the font is italic.public java.lang.Boolean isFontStrikeout()
public void setFontStrikeout(java.lang.Boolean isFontStrikeout)
isFontStrikeout - Whether the font is strikeout.public FontTypeOffset getFontTypeOffset()
FontTypeOffset.FontTypeOffset.public void setFontTypeOffset(FontTypeOffset fontTypeOffset)
FontTypeOffset.fontTypeOffset - The FontTypeOffset.public FontUnderline getFontUnderline()
FontUnderLine.FontUnderLine.public void setFontUnderline(FontUnderline fontUnderline)
FontUnderLine.fontUnderline - The FontUnderLine.public boolean isStyleToApply()
public void apply(Style style)
Style to this Style,
overwriting any properties in common.style - Another Style.Copyright © 2012–2018 Jett Team. All rights reserved.