Class DataFormat


  • public final class DataFormat
    extends java.lang.Object
    Defines the formatting of an Excel file's data cell.
    Since:
    2.3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      DataFormat()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBackgroundColor()
      Returns the cell's background color.
      java.lang.String getFontColor()
      Returns the cell's font color.
      java.lang.String getFontName()
      Returns the cell's font name.
      int getFontSize()
      Returns the cell's font size.
      java.util.List<FontStyle> getFontStyles()
      Returns the list of the cell's font style.
      void setBackgroundColor​(java.lang.String backgroundColor)
      Sets the cell's background color.
      void setFontColor​(java.lang.String fontColor)
      Sets the cell's font color.
      void setFontName​(java.lang.String fontName)
      Sets the cell's font name.
      void setFontSize​(int fontSize)
      Sets the cell's font size.
      void setFontStyles​(java.util.List<FontStyle> fontStyles)
      Sets the list of the cell's font style.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataFormat

        public DataFormat()
    • Method Detail

      • getFontName

        public java.lang.String getFontName()
        Returns the cell's font name.
      • setFontName

        public void setFontName​(java.lang.String fontName)
        Sets the cell's font name.
      • getFontSize

        public int getFontSize()
        Returns the cell's font size.
      • setFontSize

        public void setFontSize​(int fontSize)
        Sets the cell's font size.
      • getFontStyles

        public java.util.List<FontStyle> getFontStyles()
        Returns the list of the cell's font style.
      • setFontStyles

        public void setFontStyles​(java.util.List<FontStyle> fontStyles)
        Sets the list of the cell's font style.
      • getFontColor

        public java.lang.String getFontColor()
        Returns the cell's font color.
      • setFontColor

        public void setFontColor​(java.lang.String fontColor)
        Sets the cell's font color.
      • getBackgroundColor

        public java.lang.String getBackgroundColor()
        Returns the cell's background color.
      • setBackgroundColor

        public void setBackgroundColor​(java.lang.String backgroundColor)
        Sets the cell's background color.