Package org.openl.rules.table.ui
Class CellStyle
- java.lang.Object
-
- org.openl.rules.table.ui.CellStyle
-
- All Implemented Interfaces:
ICellStyle
public class CellStyle extends Object implements ICellStyle
- Author:
- snshor
-
-
Field Summary
-
Fields inherited from interface org.openl.rules.table.ui.ICellStyle
BOTTOM, LEFT, RIGHT, TOP
-
-
Constructor Summary
Constructors Constructor Description CellStyle(ICellStyle cellStyle)
-
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 cellbooleanisWrappedText()get whether the text should be wrappedvoidsetBorderRGB(short[][] borderRGB)voidsetBorderStyle(org.apache.poi.ss.usermodel.BorderStyle[] borderStyle)voidsetFillBackgroundColor(short[] fillBackgroundColor)voidsetFillForegroundColor(short[] fillForegroundColor)
-
-
-
Constructor Detail
-
CellStyle
public CellStyle(ICellStyle cellStyle)
-
-
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.
-
getFillBackgroundColor
public short[] getFillBackgroundColor()
Description copied from interface:ICellStyleget the background fill color- Specified by:
getFillBackgroundColorin interfaceICellStyle- Returns:
- fill color
-
getFillForegroundColor
public short[] getFillForegroundColor()
Description copied from interface:ICellStyleget the foreground fill color- Specified by:
getFillForegroundColorin interfaceICellStyle- Returns:
- fill color
-
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
-
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)
-
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
-
isWrappedText
public boolean isWrappedText()
Description copied from interface:ICellStyleget whether the text should be wrapped- Specified by:
isWrappedTextin interfaceICellStyle- Returns:
- wrap text or not
-
setBorderRGB
public void setBorderRGB(short[][] borderRGB)
-
setBorderStyle
public void setBorderStyle(org.apache.poi.ss.usermodel.BorderStyle[] borderStyle)
-
setFillBackgroundColor
public void setFillBackgroundColor(short[] fillBackgroundColor)
-
setFillForegroundColor
public void setFillForegroundColor(short[] fillForegroundColor)
-
getFillBackgroundColorIndex
public short getFillBackgroundColorIndex()
- Specified by:
getFillBackgroundColorIndexin interfaceICellStyle
-
getFillForegroundColorIndex
public short getFillForegroundColorIndex()
- Specified by:
getFillForegroundColorIndexin interfaceICellStyle
-
getFillPattern
public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
- Specified by:
getFillPatternin interfaceICellStyle
-
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
-
-