Java org.apache.poi.hssf.usermodel HSSFCellStyle fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.hssf.usermodel HSSFCellStyle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.hssf.usermodel HSSFCellStyle.

The text is from its open source code.

Method

voidcloneStyleFrom(CellStyle source)
Clones all the style information from another HSSFCellStyle, onto this one.
voidcloneStyleFrom(HSSFCellStyle source)
HorizontalAlignmentgetAlignment()
HorizontalAlignmentgetAlignmentEnum()
BorderStylegetBorderBottom()
BorderStylegetBorderBottomEnum()
BorderStylegetBorderLeft()
BorderStylegetBorderLeftEnum()
BorderStylegetBorderRight()
BorderStylegetBorderRightEnum()
BorderStylegetBorderTop()
BorderStylegetBorderTopEnum()
shortgetBottomBorderColor()
get the color to use for the left border
shortgetDataFormat()
get the index of the format
StringgetDataFormatString()
Get the contents of the format string, by looking up the DataFormat against the bound workbook
shortgetFillBackgroundColor()
Get the background fill color.
HSSFColorgetFillBackgroundColorColor()
shortgetFillForegroundColor()
Get the foreground fill color.
HSSFColorgetFillForegroundColorColor()
FillPatternTypegetFillPattern()
FillPatternTypegetFillPatternEnum()
HSSFFontgetFont(org.apache.poi.ss.usermodel.Workbook parentWorkbook)
gets the font for this style
shortgetFontIndex()
gets the index of the font for this style
booleangetHidden()
get whether the cell's using this style are to be hidden
shortgetIndention()
get the number of spaces to indent the text in the cell
shortgetIndex()
get the index within the HSSFWorkbook (sequence within the collection of ExtnededFormat objects)
shortgetLeftBorderColor()
get the color to use for the left border
booleangetLocked()
get whether the cell's using this style are to be locked
HSSFCellStylegetParentStyle()
Return the parent style for this cell style.
shortgetRightBorderColor()
get the color to use for the left border
shortgetRotation()
get the degree of rotation for the text in the cell
shortgetTopBorderColor()
get the color to use for the top border
StringgetUserStyleName()
Gets the name of the user defined style.
VerticalAlignmentgetVerticalAlignment()
VerticalAlignmentgetVerticalAlignmentEnum()
booleangetWrapText()
get whether the text should be wrapped
voidsetAlignment(HorizontalAlignment align)
set the type of horizontal alignment for the cell
voidsetBorderBottom(BorderStyle border)
set the type of border to use for the bottom border of the cell
voidsetBorderLeft(BorderStyle border)
set the type of border to use for the left border of the cell
voidsetBorderRight(BorderStyle border)
set the type of border to use for the right border of the cell
voidsetBorderTop(BorderStyle border)
set the type of border to use for the top border of the cell
voidsetBottomBorderColor(short color)
set the color to use for the bottom border
voidsetDataFormat(short fmt)
set the data format (must be a valid format)
voidsetFillBackgroundColor(short bg)
set the background fill color.
voidsetFillForegroundColor(short bg)
set the foreground fill color Note: Ensure Foreground color is set prior to background color.
voidsetFillPattern(FillPatternType fp)
setting to one fills the cell with the foreground color...
voidsetFont(Font font)
set the font for this style
voidsetFont(HSSFFont font)
voidsetHidden(boolean hidden)
set the cell's using this style to be hidden
voidsetIndention(short indent)
set the number of spaces to indent the text in the cell
voidsetLeftBorderColor(short color)
set the color to use for the left border
voidsetLocked(boolean locked)
set the cell's using this style to be locked
voidsetRightBorderColor(short color)
set the color to use for the right border
voidsetRotation(short rotation)
set the degree of rotation for the text in the cell Note: HSSF uses values from -90 to 90 degrees, whereas XSSF uses values from 0 to 180 degrees.
voidsetShrinkToFit(boolean shrinkToFit)
Controls if the Cell should be auto-sized to shrink to fit if the text is too long
voidsetTopBorderColor(short color)
set the color to use for the top border
voidsetUserStyleName(String styleName)
Sets the name of the user defined style.
voidsetVerticalAlignment(VerticalAlignment align)
set the type of vertical alignment for the cell
voidsetWrapText(boolean wrapped)
set whether the text should be wrapped