Java org.apache.poi.ss.usermodel CellStyle fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Implementation

org.apache.poi.ss.usermodel.CellStyle has the following implementations.
Click this link to see all its implementation.

Method

voidcloneStyleFrom(CellStyle source)
Clones all the style information from another CellStyle, onto this one.
HorizontalAlignmentgetAlignment()
get the type of horizontal alignment for the cell
HorizontalAlignmentgetAlignmentEnum()
get the type of horizontal alignment for the cell
BorderStylegetBorderBottom()
get the type of border to use for the bottom border of the cell
BorderStylegetBorderBottomEnum()
get the type of border to use for the bottom border of the cell
BorderStylegetBorderLeft()
get the type of border to use for the left border of the cell
BorderStylegetBorderLeftEnum()
get the type of border to use for the left border of the cell
BorderStylegetBorderRight()
get the type of border to use for the right border of the cell
BorderStylegetBorderRightEnum()
get the type of border to use for the right border of the cell
BorderStylegetBorderTop()
get the type of border to use for the top border of the cell
BorderStylegetBorderTopEnum()
get the type of border to use for the top border of the cell
shortgetBottomBorderColor()
get the color to use for the left border
shortgetDataFormat()
get the index of the data format.
StringgetDataFormatString()
Get the format string
shortgetFillBackgroundColor()
get the background fill color, if the fill is defined with an indexed color.
ColorgetFillBackgroundColorColor()
Gets the color object representing the current background fill, resolving indexes using the supplied workbook.
shortgetFillForegroundColor()
get the foreground fill color, if the fill is defined with an indexed color.
ColorgetFillForegroundColorColor()
Gets the color object representing the current foreground fill, resolving indexes using the supplied workbook.
FillPatternTypegetFillPattern()
Get the fill pattern
shortgetFontIndex()
gets the index of the font for this style
intgetFontIndexAsInt()
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 Workbook (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
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
VerticalAlignmentgetVerticalAlignment()
get the type of vertical alignment for the cell
VerticalAlignmentgetVerticalAlignmentEnum()
get the type of vertical alignment for the cell
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
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.
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
voidsetVerticalAlignment(VerticalAlignment align)
set the type of vertical alignment for the cell
voidsetWrapText(boolean wrapped)
Set whether the text should be wrapped.