|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CellStyle
Method Summary | |
---|---|
void |
cloneStyleFrom(CellStyle source)
Clones all the style information from another CellStyle, onto this one. |
short |
getAlignment()
Deprecated. POI 3.15 beta 3. Use getAlignmentEnum() instead. |
HorizontalAlignment |
getAlignmentEnum()
get the type of horizontal alignment for the cell |
short |
getBorderBottom()
Deprecated. POI 3.15. Use getBorderBottomEnum() instead.
This will return a BorderStyle enum in the future. |
BorderStyle |
getBorderBottomEnum()
get the type of border to use for the bottom border of the cell |
short |
getBorderLeft()
Deprecated. POI 3.15. Use getBorderLeftEnum() instead.
This will return a BorderStyle enum in the future. |
BorderStyle |
getBorderLeftEnum()
get the type of border to use for the left border of the cell |
short |
getBorderRight()
Deprecated. POI 3.15. Use getBorderRightEnum() instead.
This will return a BorderStyle enum in the future. |
BorderStyle |
getBorderRightEnum()
get the type of border to use for the right border of the cell |
short |
getBorderTop()
Deprecated. POI 3.15. Use getBorderTopEnum() instead.
This will return a BorderStyle enum in the future. |
BorderStyle |
getBorderTopEnum()
get the type of border to use for the top border of the cell |
short |
getBottomBorderColor()
get the color to use for the left border |
short |
getDataFormat()
get the index of the data format. |
java.lang.String |
getDataFormatString()
Get the format string |
short |
getFillBackgroundColor()
get the background fill color, if the fill is defined with an indexed color. |
Color |
getFillBackgroundColorColor()
Gets the color object representing the current background fill, resolving indexes using the supplied workbook. |
short |
getFillForegroundColor()
get the foreground fill color, if the fill is defined with an indexed color. |
Color |
getFillForegroundColorColor()
Gets the color object representing the current foreground fill, resolving indexes using the supplied workbook. |
short |
getFillPattern()
Deprecated. POI 3.15 beta 3. This method will return FillPatternType in the future. Use setFillPattern(FillPatternType) instead. |
FillPatternType |
getFillPatternEnum()
get the fill pattern (??) - set to 1 to fill with foreground color |
short |
getFontIndex()
gets the index of the font for this style |
boolean |
getHidden()
get whether the cell's using this style are to be hidden |
short |
getIndention()
get the number of spaces to indent the text in the cell |
short |
getIndex()
get the index within the Workbook (sequence within the collection of ExtnededFormat objects) |
short |
getLeftBorderColor()
get the color to use for the left border |
boolean |
getLocked()
get whether the cell's using this style are to be locked |
boolean |
getQuotePrefixed()
Is "Quote Prefix" or "123 Prefix" enabled for the cell? Having this on is somewhat (but not completely, see IgnoredErrorType )
like prefixing the cell value with a ' in Excel |
short |
getRightBorderColor()
get the color to use for the left border |
short |
getRotation()
get the degree of rotation for the text in the cell. |
boolean |
getShrinkToFit()
Should the Cell be auto-sized by Excel to shrink it to fit if this text is too long? |
short |
getTopBorderColor()
get the color to use for the top border |
short |
getVerticalAlignment()
Deprecated. POI 3.15 beta 3. Use getVerticalAlignmentEnum() instead. |
VerticalAlignment |
getVerticalAlignmentEnum()
get the type of vertical alignment for the cell |
boolean |
getWrapText()
get whether the text should be wrapped |
void |
setAlignment(HorizontalAlignment align)
set the type of horizontal alignment for the cell |
void |
setBorderBottom(BorderStyle border)
set the type of border to use for the bottom border of the cell |
void |
setBorderLeft(BorderStyle border)
set the type of border to use for the left border of the cell |
void |
setBorderRight(BorderStyle border)
set the type of border to use for the right border of the cell |
void |
setBorderTop(BorderStyle border)
set the type of border to use for the top border of the cell |
void |
setBottomBorderColor(short color)
set the color to use for the bottom border |
void |
setDataFormat(short fmt)
set the data format (must be a valid format). |
void |
setFillBackgroundColor(short bg)
set the background fill color. |
void |
setFillForegroundColor(short bg)
set the foreground fill color Note: Ensure Foreground color is set prior to background color. |
void |
setFillPattern(FillPatternType fp)
setting to one fills the cell with the foreground color... |
void |
setFont(Font font)
set the font for this style |
void |
setHidden(boolean hidden)
set the cell's using this style to be hidden |
void |
setIndention(short indent)
set the number of spaces to indent the text in the cell |
void |
setLeftBorderColor(short color)
set the color to use for the left border |
void |
setLocked(boolean locked)
set the cell's using this style to be locked |
void |
setQuotePrefixed(boolean quotePrefix)
Turn on or off "Quote Prefix" or "123 Prefix" for the style, which is used to tell Excel that the thing which looks like a number or a formula shouldn't be treated as on. |
void |
setRightBorderColor(short color)
set the color to use for the right border |
void |
setRotation(short rotation)
set the degree of rotation for the text in the cell. |
void |
setShrinkToFit(boolean shrinkToFit)
Controls if the Cell should be auto-sized to shrink to fit if the text is too long |
void |
setTopBorderColor(short color)
set the color to use for the top border |
void |
setVerticalAlignment(VerticalAlignment align)
set the type of vertical alignment for the cell |
void |
setWrapText(boolean wrapped)
Set whether the text should be wrapped. |
Method Detail |
---|
short getIndex()
void setDataFormat(short fmt)
BuiltinFormats
.
DataFormat
short getDataFormat()
BuiltinFormats
.
DataFormat
java.lang.String getDataFormatString()
void setFont(Font font)
font
- a font object created or retrieved from the Workbook objectWorkbook.createFont()
,
Workbook.getFontAt(short)
short getFontIndex()
Workbook.getFontAt(short)
void setHidden(boolean hidden)
hidden
- - whether the cell using this style should be hiddenboolean getHidden()
void setLocked(boolean locked)
locked
- - whether the cell using this style should be lockedboolean getLocked()
void setQuotePrefixed(boolean quotePrefix)
IgnoredErrorType
)
like prefixing the cell value with a ' in Excel
boolean getQuotePrefixed()
IgnoredErrorType
)
like prefixing the cell value with a ' in Excel
void setAlignment(HorizontalAlignment align)
align
- - the type of alignmentshort getAlignment()
getAlignmentEnum()
instead.
HorizontalAlignment getAlignmentEnum()
void setWrapText(boolean wrapped)
true
make all content visible
within a cell by displaying it on multiple lines
wrapped
- wrap text or notboolean getWrapText()
void setVerticalAlignment(VerticalAlignment align)
align
- the type of alignmentshort getVerticalAlignment()
getVerticalAlignmentEnum()
instead.
VerticalAlignment getVerticalAlignmentEnum()
void setRotation(short rotation)
rotation
- degrees (see note above)short getRotation()
void setIndention(short indent)
indent
- - number of spacesshort getIndention()
void setBorderLeft(BorderStyle border)
border
- typeshort getBorderLeft()
getBorderLeftEnum()
instead.
This will return a BorderStyle enum in the future.
BorderStyle getBorderLeftEnum()
void setBorderRight(BorderStyle border)
border
- typeshort getBorderRight()
getBorderRightEnum()
instead.
This will return a BorderStyle enum in the future.
BorderStyle getBorderRightEnum()
void setBorderTop(BorderStyle border)
border
- typeshort getBorderTop()
getBorderTopEnum()
instead.
This will return a BorderStyle enum in the future.
BorderStyle getBorderTopEnum()
void setBorderBottom(BorderStyle border)
border
- typeshort getBorderBottom()
getBorderBottomEnum()
instead.
This will return a BorderStyle enum in the future.
BorderStyle getBorderBottomEnum()
void setLeftBorderColor(short color)
color
- The index of the color definitionshort getLeftBorderColor()
void setRightBorderColor(short color)
color
- The index of the color definitionshort getRightBorderColor()
void setTopBorderColor(short color)
color
- The index of the color definitionshort getTopBorderColor()
void setBottomBorderColor(short color)
color
- The index of the color definitionshort getBottomBorderColor()
void setFillPattern(FillPatternType fp)
fp
- fill pattern (set to FillPatternType.SOLID_FOREGROUND
to fill w/foreground color)short getFillPattern()
FillPatternType
in the future. Use setFillPattern(FillPatternType)
instead.
FillPatternType getFillPatternEnum()
void setFillBackgroundColor(short bg)
bg
- colorshort getFillBackgroundColor()
Color getFillBackgroundColorColor()
void setFillForegroundColor(short bg)
bg
- colorshort getFillForegroundColor()
Color getFillForegroundColorColor()
void cloneStyleFrom(CellStyle source)
void setShrinkToFit(boolean shrinkToFit)
boolean getShrinkToFit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |