Package org.openl.rules.table.xls
Class XlsCellStyle
- java.lang.Object
-
- org.openl.rules.table.xls.XlsCellStyle
-
- All Implemented Interfaces:
ICellStyle
public class XlsCellStyle extends Object implements ICellStyle
- Author:
- snshor, Andrei Astrouski
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.table.ui.ICellStyle
BOTTOM, LEFT, RIGHT, TOP
-
-
Constructor Summary
Constructors Constructor Description XlsCellStyle(org.apache.poi.ss.usermodel.CellStyle xlsStyle, org.apache.poi.ss.usermodel.Workbook workbook)
-
Method Summary
All Methods Instance Methods Concrete 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 cellorg.apache.poi.ss.usermodel.CellStylegetXlsStyle()booleanhasNoFill()booleanisWrappedText()get whether the text should be wrapped
-
-
-
Method Detail
-
getBorderRGB
public short[][] getBorderRGB()
- Specified by:
getBorderRGBin interfaceICellStyle- Returns:
- RGB colors for all border sides.
-
getBorderStyle
public org.apache.poi.ss.usermodel.BorderStyle[] getBorderStyle()
- Specified by:
getBorderStylein interfaceICellStyle- Returns:
- styles for all border sides.
-
getFillPattern
public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
- Specified by:
getFillPatternin interfaceICellStyle
-
hasNoFill
public boolean hasNoFill()
-
getFillBackgroundColor
public short[] getFillBackgroundColor()
Description copied from interface:ICellStyleget the background fill color- Specified by:
getFillBackgroundColorin interfaceICellStyle- Returns:
- fill color
-
getFillBackgroundColorIndex
public short getFillBackgroundColorIndex()
- Specified by:
getFillBackgroundColorIndexin interfaceICellStyle
-
getFillForegroundColor
public short[] getFillForegroundColor()
Description copied from interface:ICellStyleget the foreground fill color- Specified by:
getFillForegroundColorin interfaceICellStyle- Returns:
- fill color
-
getFillForegroundColorIndex
public short getFillForegroundColorIndex()
- Specified by:
getFillForegroundColorIndexin interfaceICellStyle
-
getHorizontalAlignment
public org.apache.poi.ss.usermodel.HorizontalAlignment getHorizontalAlignment()
Description copied from interface:ICellStyleget the type of horizontal alignment for the cell- Specified by:
getHorizontalAlignmentin interfaceICellStyle- Returns:
- align - the type of alignment
-
getVerticalAlignment
public org.apache.poi.ss.usermodel.VerticalAlignment getVerticalAlignment()
Description copied from interface:ICellStyleget the type of vertical alignment for the cell- Specified by:
getVerticalAlignmentin interfaceICellStyle- Returns:
- align the type of alignment
-
getIndent
public int getIndent()
Description copied from interface:ICellStyleget the number of spaces to indent the text in the cell- Specified by:
getIndentin interfaceICellStyle- Returns:
- indent - number of spaces
-
getRotation
public int getRotation()
Description copied from interface:ICellStyleget the degree of rotation for the text in the cell- Specified by:
getRotationin interfaceICellStyle- Returns:
- rotation degrees (between -90 and 90 degrees)
-
isWrappedText
public boolean isWrappedText()
Description copied from interface:ICellStyleget whether the text should be wrapped- Specified by:
isWrappedTextin interfaceICellStyle- Returns:
- wrap text or not
-
getFormatIndex
public short getFormatIndex()
Description copied from interface:ICellStyleGet the index of the data format. Built-in formats are defined inBuiltinFormats.- Specified by:
getFormatIndexin interfaceICellStyle- See Also:
DataFormat
-
getFormatString
public String getFormatString()
Description copied from interface:ICellStyleGet the format string- Specified by:
getFormatStringin interfaceICellStyle
-
getXlsStyle
public org.apache.poi.ss.usermodel.CellStyle getXlsStyle()
-
-