Package csv.impl
Class DefaultExcelFormatter.StyleDescription
java.lang.Object
csv.impl.DefaultExcelFormatter.StyleDescription
- Enclosing class:
DefaultExcelFormatter
Describes a style for a cell.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.StyleDescription(Short format, Short fgColor, org.apache.poi.ss.usermodel.FillPatternType fillPattern, Short bgColor, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.HorizontalAlignment alignment, Short topBorderColor, org.apache.poi.ss.usermodel.BorderStyle topBorderThickness, Short leftBorderColor, org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness, Short rightBorderColor, org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness, Short bottomBorderColor, org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness, boolean textWrap) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(org.apache.poi.ss.usermodel.CellStyle style) Applies the style to the cell.booleanorg.apache.poi.ss.usermodel.HorizontalAlignmentReturns the alignment.Returns the background color.Returns the color of the bottom border.org.apache.poi.ss.usermodel.BorderStyleReturns the thickness of the bottom border.Returns the foreground color.org.apache.poi.ss.usermodel.FillPatternTypeReturns the fill pattern.org.apache.poi.ss.usermodel.FontgetFont()Returns the text font.Returns the format.Returns the color of the left border.org.apache.poi.ss.usermodel.BorderStyleReturns the thickness of the left border.Sets the color of the right border.org.apache.poi.ss.usermodel.BorderStyleReturns the thickness of the right border.Returns the color of the top border.org.apache.poi.ss.usermodel.BorderStyleReturns the thickness of the top border.inthashCode()booleanbooleanReturns whether text is wrapped in cell.voidsetAlignment(org.apache.poi.ss.usermodel.HorizontalAlignment alignment) Sets the alignment.voidsetBgColor(Short bgColor) Sets the background color.voidsetBottomBorderColor(Short bottomBorderColor) Sets the color of the bottom border.voidsetBottomBorderThickness(org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness) Sets the thickness of the bottom border.voidsetFgColor(Short fgColor) Sets the foreground color.voidsetFillPattern(org.apache.poi.ss.usermodel.FillPatternType fillPattern) Sets the fill pattern.voidsetFont(org.apache.poi.ss.usermodel.Font font) Sets the text font.voidSets the format.voidsetLeftBorderColor(Short leftBorderColor) Sets the color of the left border.voidsetLeftBorderThickness(org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness) Sets the thickness of the left border.voidsetRightBorderColor(Short rightBorderColor) voidsetRightBorderThickness(org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness) Sets the thickness of the right border.voidsetTextWrap(boolean textWrap) Sets whether text is wrapped in cell.voidsetTopBorderColor(Short topBorderColor) Sets the color of the top border.voidsetTopBorderThickness(org.apache.poi.ss.usermodel.BorderStyle topBorderThickness) Sets the thickness of the top border.toString()
-
Field Details
-
DEFAULT_DESC
- See Also:
-
-
Constructor Details
-
StyleDescription
public StyleDescription()Constructor. -
StyleDescription
public StyleDescription(Short format, Short fgColor, org.apache.poi.ss.usermodel.FillPatternType fillPattern, Short bgColor, org.apache.poi.ss.usermodel.Font font, org.apache.poi.ss.usermodel.HorizontalAlignment alignment, Short topBorderColor, org.apache.poi.ss.usermodel.BorderStyle topBorderThickness, Short leftBorderColor, org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness, Short rightBorderColor, org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness, Short bottomBorderColor, org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness, boolean textWrap) Constructor.- Parameters:
format- - ID of formatfgColor- - ID of foreground colorfillPattern- - ID of fill patternbgColor- - ID of background colorfont- - ID of fontalignment- - ID of alignmenttopBorderColor- - ID of color for top bordertopBorderThickness- - ID of thickness for top borderleftBorderColor- - ID of color for left borderleftBorderThickness- - ID of thickness for left borderrightBorderColor- - ID of color for right borderrightBorderThickness- - ID of thickness for right borderbottomBorderColor- - ID of color for bottom borderbottomBorderThickness- - ID of thickness for bottom bordertextWrap- - ID of wrapping style
-
-
Method Details
-
getFormat
Returns the format.- Returns:
- the format
-
setFormat
Sets the format.- Parameters:
format- the format to set
-
getFgColor
Returns the foreground color.- Returns:
- the fgColor
-
setFgColor
Sets the foreground color.- Parameters:
fgColor- the fgColor to set
-
getFillPattern
public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()Returns the fill pattern.- Returns:
- the fillPattern
-
setFillPattern
public void setFillPattern(org.apache.poi.ss.usermodel.FillPatternType fillPattern) Sets the fill pattern.- Parameters:
fillPattern- the fillPattern to set
-
getBgColor
Returns the background color.- Returns:
- the bgColor
-
setBgColor
Sets the background color.- Parameters:
bgColor- the bgColor to set
-
getFont
public org.apache.poi.ss.usermodel.Font getFont()Returns the text font.- Returns:
- the font
-
setFont
public void setFont(org.apache.poi.ss.usermodel.Font font) Sets the text font.- Parameters:
font- the font to set
-
getAlignment
public org.apache.poi.ss.usermodel.HorizontalAlignment getAlignment()Returns the alignment.- Returns:
- the alignment
-
setAlignment
public void setAlignment(org.apache.poi.ss.usermodel.HorizontalAlignment alignment) Sets the alignment.- Parameters:
alignment- the alignment to set
-
getTopBorderColor
Returns the color of the top border.- Returns:
- the topBorderColor
-
setTopBorderColor
Sets the color of the top border.- Parameters:
topBorderColor- the topBorderColor to set
-
getTopBorderThickness
public org.apache.poi.ss.usermodel.BorderStyle getTopBorderThickness()Returns the thickness of the top border.- Returns:
- the topBorderThickness
-
setTopBorderThickness
public void setTopBorderThickness(org.apache.poi.ss.usermodel.BorderStyle topBorderThickness) Sets the thickness of the top border.- Parameters:
topBorderThickness- the topBorderThickness to set
-
getLeftBorderColor
Returns the color of the left border.- Returns:
- the leftBorderColor
-
setLeftBorderColor
Sets the color of the left border.- Parameters:
leftBorderColor- the leftBorderColor to set
-
getLeftBorderThickness
public org.apache.poi.ss.usermodel.BorderStyle getLeftBorderThickness()Returns the thickness of the left border.- Returns:
- the leftBorderThickness
-
setLeftBorderThickness
public void setLeftBorderThickness(org.apache.poi.ss.usermodel.BorderStyle leftBorderThickness) Sets the thickness of the left border.- Parameters:
leftBorderThickness- the leftBorderThickness to set
-
getRightBorderColor
Sets the color of the right border. Returns the color of the right border.- Returns:
- the rightBorderColor
-
setRightBorderColor
- Parameters:
rightBorderColor- the rightBorderColor to set
-
getRightBorderThickness
public org.apache.poi.ss.usermodel.BorderStyle getRightBorderThickness()Returns the thickness of the right border.- Returns:
- the rightBorderThickness
-
setRightBorderThickness
public void setRightBorderThickness(org.apache.poi.ss.usermodel.BorderStyle rightBorderThickness) Sets the thickness of the right border.- Parameters:
rightBorderThickness- the rightBorderThickness to set
-
getBottomBorderColor
Returns the color of the bottom border.- Returns:
- the bottomBorderColor
-
setBottomBorderColor
Sets the color of the bottom border.- Parameters:
bottomBorderColor- the bottomBorderColor to set
-
getBottomBorderThickness
public org.apache.poi.ss.usermodel.BorderStyle getBottomBorderThickness()Returns the thickness of the bottom border.- Returns:
- the bottomBorderThickness
-
setBottomBorderThickness
public void setBottomBorderThickness(org.apache.poi.ss.usermodel.BorderStyle bottomBorderThickness) Sets the thickness of the bottom border.- Parameters:
bottomBorderThickness- the bottomBorderThickness to set
-
isTextWrap
public boolean isTextWrap()Returns whether text is wrapped in cell.- Returns:
- the textWrap
-
setTextWrap
public void setTextWrap(boolean textWrap) Sets whether text is wrapped in cell.- Parameters:
textWrap- the textWrap to set
-
applyStyle
public void applyStyle(org.apache.poi.ss.usermodel.CellStyle style) Applies the style to the cell.- Parameters:
style- the style to be set from this description
-
equals
-
hashCode
public int hashCode() -
toString
-
isDefault
public boolean isDefault()
-