Documentation of 'org.apache.poi.ss.usermodel.FontFormatting' Java class
FontFormatting
org.apache.poi.ss.usermodel

Interface FontFormatting

  • All Known Implementing Classes:
    HSSFFontFormatting, XSSFFontFormatting


    public interface FontFormatting
    High level representation for Font Formatting component of Conditional Formatting settings
    • Method Detail

      • getEscapementType

        short getEscapementType()
        get the type of super or subscript for the font
        Returns:
        super or subscript option
        See Also:
        SS_NONE, SS_SUPER, SS_SUB
      • setEscapementType

        void setEscapementType(short escapementType)
        set the escapement type for the font
        Parameters:
        escapementType - super or subscript option
        See Also:
        SS_NONE, SS_SUPER, SS_SUB
      • getFontColorIndex

        short getFontColorIndex()
        Returns:
        font color index
      • setFontColorIndex

        void setFontColorIndex(short color)
        Parameters:
        color - font color index
      • getFontHeight

        int getFontHeight()
        gets the height of the font in 1/20th point units
        Returns:
        fontheight (in points/20); or -1 if not modified
      • setFontHeight

        void setFontHeight(int height)
        Sets the height of the font in 1/20th point units
        Parameters:
        height - the height in twips (in points/20)
      • isBold

        boolean isBold()
        get whether the font weight is set to bold or not
        Returns:
        bold - whether the font is bold or not
      • isItalic

        boolean isItalic()
        Returns:
        true if font style was set to italic
      • setFontStyle

        void setFontStyle(boolean italic,
                          boolean bold)
        set font style options.
        Parameters:
        italic - - if true, set posture style to italic, otherwise to normal
        bold - if true, set font weight to bold, otherwise to normal
      • resetFontStyle

        void resetFontStyle()
        set font style options to default values (non-italic, non-bold)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.