Class XlsCellStyle

  • All Implemented Interfaces:
    ICellStyle

    public class XlsCellStyle
    extends Object
    implements ICellStyle
    Author:
    snshor, Andrei Astrouski
    • Constructor Detail

      • XlsCellStyle

        public XlsCellStyle​(org.apache.poi.ss.usermodel.CellStyle xlsStyle,
                            org.apache.poi.ss.usermodel.Workbook workbook)
    • Method Detail

      • getBorderRGB

        public short[][] getBorderRGB()
        Specified by:
        getBorderRGB in interface ICellStyle
        Returns:
        RGB colors for all border sides.
      • getBorderStyle

        public org.apache.poi.ss.usermodel.BorderStyle[] getBorderStyle()
        Specified by:
        getBorderStyle in interface ICellStyle
        Returns:
        styles for all border sides.
      • getFillPattern

        public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
        Specified by:
        getFillPattern in interface ICellStyle
      • hasNoFill

        public boolean hasNoFill()
      • getFillBackgroundColor

        public short[] getFillBackgroundColor()
        Description copied from interface: ICellStyle
        get the background fill color
        Specified by:
        getFillBackgroundColor in interface ICellStyle
        Returns:
        fill color
      • getFillForegroundColor

        public short[] getFillForegroundColor()
        Description copied from interface: ICellStyle
        get the foreground fill color
        Specified by:
        getFillForegroundColor in interface ICellStyle
        Returns:
        fill color
      • getHorizontalAlignment

        public org.apache.poi.ss.usermodel.HorizontalAlignment getHorizontalAlignment()
        Description copied from interface: ICellStyle
        get the type of horizontal alignment for the cell
        Specified by:
        getHorizontalAlignment in interface ICellStyle
        Returns:
        align - the type of alignment
      • getVerticalAlignment

        public org.apache.poi.ss.usermodel.VerticalAlignment getVerticalAlignment()
        Description copied from interface: ICellStyle
        get the type of vertical alignment for the cell
        Specified by:
        getVerticalAlignment in interface ICellStyle
        Returns:
        align the type of alignment
      • getIndent

        public int getIndent()
        Description copied from interface: ICellStyle
        get the number of spaces to indent the text in the cell
        Specified by:
        getIndent in interface ICellStyle
        Returns:
        indent - number of spaces
      • getRotation

        public int getRotation()
        Description copied from interface: ICellStyle
        get the degree of rotation for the text in the cell
        Specified by:
        getRotation in interface ICellStyle
        Returns:
        rotation degrees (between -90 and 90 degrees)
      • isWrappedText

        public boolean isWrappedText()
        Description copied from interface: ICellStyle
        get whether the text should be wrapped
        Specified by:
        isWrappedText in interface ICellStyle
        Returns:
        wrap text or not
      • getFormatIndex

        public short getFormatIndex()
        Description copied from interface: ICellStyle
        Get the index of the data format. Built-in formats are defined in BuiltinFormats.
        Specified by:
        getFormatIndex in interface ICellStyle
        See Also:
        DataFormat
      • getXlsStyle

        public org.apache.poi.ss.usermodel.CellStyle getXlsStyle()