Class CellStyle

    • Constructor Detail

      • CellStyle

        public CellStyle​(ICellStyle cellStyle)
    • 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.
      • 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
      • 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)
      • 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
      • 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
      • 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)
      • getFillPattern

        public org.apache.poi.ss.usermodel.FillPatternType getFillPattern()
        Specified by:
        getFillPattern in interface ICellStyle
      • 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