Java org.apache.poi.xssf.usermodel XSSFCellStyle fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Constructor

Method

Objectclone()
Make a copy of this style.
voidcloneStyleFrom(CellStyle source)
Clones all the style information from another XSSFCellStyle, onto this one.
HorizontalAlignmentgetAlignment()
HorizontalAlignmentgetAlignmentEnum()
BorderStylegetBorderBottom()
BorderStylegetBorderBottomEnum()
BorderStylegetBorderLeft()
BorderStylegetBorderLeftEnum()
BorderStylegetBorderRight()
BorderStylegetBorderRightEnum()
BorderStylegetBorderTop()
BorderStylegetBorderTopEnum()
shortgetBottomBorderColor()
Get the color to use for the bottom border
Color is optional.
XSSFColorgetBottomBorderXSSFColor()
Get the color to use for the bottom border as a XSSFColor
CTXfgetCoreXf()
Used so that StylesSource can figure out our location
shortgetDataFormat()
Get the index of the number format (numFmt) record used by this cell format.
StringgetDataFormatString()
Get the contents of the format string, by looking up the StylesSource
shortgetFillBackgroundColor()
Get the background fill color.
XSSFColorgetFillBackgroundColorColor()
XSSFColorgetFillBackgroundXSSFColor()
Get the background fill color.
shortgetFillForegroundColor()
Get the foreground fill color.
XSSFColorgetFillForegroundColorColor()
XSSFColorgetFillForegroundXSSFColor()
Get the foreground fill color.
FillPatternTypegetFillPattern()
FillPatternTypegetFillPatternEnum()
XSSFFontgetFont()
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
shortgetLeftBorderColor()
Get the color to use for the left border
XSSFColorgetLeftBorderXSSFColor()
Get the color to use for the left border
booleangetLocked()
Get whether the cell's using this style are locked
shortgetRightBorderColor()
Get the color to use for the right border
XSSFColorgetRightBorderXSSFColor()
Get the color to use for the right border
shortgetRotation()
Get the degree of rotation for the text in the cell

Expressed in degrees.

shortgetTopBorderColor()
Get the color to use for the top border
XSSFColorgetTopBorderXSSFColor()
Get the color to use for the top border
VerticalAlignmentgetVerticalAlignment()
VerticalAlignmentgetVerticalAlignmentEnum()
booleangetWrapText()
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
voidsetBorderColor(BorderSide side, XSSFColor color)
Set the color to use for the selected border
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
voidsetBottomBorderColor(XSSFColor color)
Set the color to use for the bottom border
voidsetDataFormat(short fmt)
Set the index of a data format
voidsetDataFormat(int fmt)
Set the index of a data format
voidsetFillBackgroundColor(XSSFColor color)
Set the background fill color represented as a XSSFColor value.
voidsetFillBackgroundColor(short bg)
Set the background fill color represented as a indexed color value.
voidsetFillForegroundColor(XSSFColor color)
Set the foreground fill color represented as a XSSFColor value.
voidsetFillForegroundColor(short fg)
Set the foreground fill color as a indexed color value
Note: Ensure Foreground color is set prior to background color.
voidsetFillPattern(FillPatternType pattern)
This element is used to specify cell fill information for pattern and solid color cell fills.
voidsetFont(Font font)
Set the font for this style
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 as a indexed color value
voidsetLeftBorderColor(XSSFColor color)
Set the color to use for the left border as a XSSFColor value
voidsetRightBorderColor(short color)
Set the color to use for the right border
voidsetRightBorderColor(XSSFColor color)
Set the color to use for the right border as a XSSFColor value
voidsetRotation(short rotation)
Set the degree of rotation for the text in the cell

Expressed in degrees.

voidsetShrinkToFit(boolean shrinkToFit)
voidsetTopBorderColor(short color)
Set the color to use for the top border
voidsetTopBorderColor(XSSFColor color)
Set the color to use for the top border as a XSSFColor value
voidsetVerticalAlignment(VerticalAlignment align)
Set the type of vertical alignment for the cell
voidsetWrapText(boolean wrapped)
Set whether the text should be wrapped.