Package org.openl.rules.table.ui
Interface ICellStyle
-
- All Known Implementing Classes:
CellStyle,XlsCellStyle
public interface ICellStyle- Author:
- snshor Temporary we copy POI constants in here, we will provide more complicated mapping once we start using other libraries, if ever
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description short[][]getBorderRGB()org.apache.poi.ss.usermodel.BorderStyle[]getBorderStyle()short[]getFillBackgroundColor()get the background fill colorshortgetFillBackgroundColorIndex()short[]getFillForegroundColor()get the foreground fill colorshortgetFillForegroundColorIndex()org.apache.poi.ss.usermodel.FillPatternTypegetFillPattern()shortgetFormatIndex()Get the index of the data format.StringgetFormatString()Get the format stringorg.apache.poi.ss.usermodel.HorizontalAlignmentgetHorizontalAlignment()get the type of horizontal alignment for the cellintgetIndent()get the number of spaces to indent the text in the cellintgetRotation()get the degree of rotation for the text in the cellorg.apache.poi.ss.usermodel.VerticalAlignmentgetVerticalAlignment()get the type of vertical alignment for the cellbooleanisWrappedText()get whether the text should be wrapped
-
-
-
Field Detail
-
TOP
static final int TOP
- See Also:
- Constant Field Values
-
RIGHT
static final int RIGHT
- See Also:
- Constant Field Values
-
BOTTOM
static final int BOTTOM
- See Also:
- Constant Field Values
-
LEFT
static final int LEFT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBorderRGB
short[][] getBorderRGB()
- Returns:
- RGB colors for all border sides.
-
getBorderStyle
org.apache.poi.ss.usermodel.BorderStyle[] getBorderStyle()
- Returns:
- styles for all border sides.
-
getFillBackgroundColor
short[] getFillBackgroundColor()
get the background fill color- Returns:
- fill color
-
getFillForegroundColor
short[] getFillForegroundColor()
get the foreground fill color- Returns:
- fill color
-
getFillBackgroundColorIndex
short getFillBackgroundColorIndex()
-
getFillForegroundColorIndex
short getFillForegroundColorIndex()
-
getFillPattern
org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
-
getHorizontalAlignment
org.apache.poi.ss.usermodel.HorizontalAlignment getHorizontalAlignment()
get the type of horizontal alignment for the cell- Returns:
- align - the type of alignment
-
getIndent
int getIndent()
get the number of spaces to indent the text in the cell- Returns:
- indent - number of spaces
-
getRotation
int getRotation()
get the degree of rotation for the text in the cell- Returns:
- rotation degrees (between -90 and 90 degrees)
-
getVerticalAlignment
org.apache.poi.ss.usermodel.VerticalAlignment getVerticalAlignment()
get the type of vertical alignment for the cell- Returns:
- align the type of alignment
-
isWrappedText
boolean isWrappedText()
get whether the text should be wrapped- Returns:
- wrap text or not
-
getFormatIndex
short getFormatIndex()
Get the index of the data format. Built-in formats are defined inBuiltinFormats.- See Also:
DataFormat
-
getFormatString
String getFormatString()
Get the format string
-
-