Class OdsFont

java.lang.Object
org.spdx.spreadsheetstore.ods.OdsFont
All Implemented Interfaces:
org.apache.poi.ss.usermodel.Font

public class OdsFont extends Object implements org.apache.poi.ss.usermodel.Font
Adapter for Apache POI Font over SODS styles. Holds font configurations (size, bold, italic, underline, strikeout) for an ODS cell.
  • Constructor Details

    • OdsFont

      public OdsFont(short index)
  • Method Details

    • setFontName

      public void setFontName(String name)
      Specified by:
      setFontName in interface org.apache.poi.ss.usermodel.Font
    • getFontName

      public String getFontName()
      Specified by:
      getFontName in interface org.apache.poi.ss.usermodel.Font
    • setFontHeight

      public void setFontHeight(short height)
      Specified by:
      setFontHeight in interface org.apache.poi.ss.usermodel.Font
    • setFontHeightInPoints

      public void setFontHeightInPoints(short height)
      Specified by:
      setFontHeightInPoints in interface org.apache.poi.ss.usermodel.Font
    • getFontHeight

      public short getFontHeight()
      Specified by:
      getFontHeight in interface org.apache.poi.ss.usermodel.Font
    • getFontHeightInPoints

      public short getFontHeightInPoints()
      Specified by:
      getFontHeightInPoints in interface org.apache.poi.ss.usermodel.Font
    • setItalic

      public void setItalic(boolean italic)
      Specified by:
      setItalic in interface org.apache.poi.ss.usermodel.Font
    • getItalic

      public boolean getItalic()
      Specified by:
      getItalic in interface org.apache.poi.ss.usermodel.Font
    • setStrikeout

      public void setStrikeout(boolean strikeout)
      Specified by:
      setStrikeout in interface org.apache.poi.ss.usermodel.Font
    • getStrikeout

      public boolean getStrikeout()
      Specified by:
      getStrikeout in interface org.apache.poi.ss.usermodel.Font
    • setColor

      public void setColor(short color)
      Specified by:
      setColor in interface org.apache.poi.ss.usermodel.Font
    • getColor

      public short getColor()
      Specified by:
      getColor in interface org.apache.poi.ss.usermodel.Font
    • setTypeOffset

      public void setTypeOffset(short offset)
      Specified by:
      setTypeOffset in interface org.apache.poi.ss.usermodel.Font
    • getTypeOffset

      public short getTypeOffset()
      Specified by:
      getTypeOffset in interface org.apache.poi.ss.usermodel.Font
    • setUnderline

      public void setUnderline(byte underline)
      Specified by:
      setUnderline in interface org.apache.poi.ss.usermodel.Font
    • getUnderline

      public byte getUnderline()
      Specified by:
      getUnderline in interface org.apache.poi.ss.usermodel.Font
    • getCharSet

      public int getCharSet()
      Specified by:
      getCharSet in interface org.apache.poi.ss.usermodel.Font
    • setCharSet

      public void setCharSet(byte charset)
      Specified by:
      setCharSet in interface org.apache.poi.ss.usermodel.Font
    • setCharSet

      public void setCharSet(int charset)
      Specified by:
      setCharSet in interface org.apache.poi.ss.usermodel.Font
    • setBold

      public void setBold(boolean bold)
      Specified by:
      setBold in interface org.apache.poi.ss.usermodel.Font
    • getBold

      public boolean getBold()
      Specified by:
      getBold in interface org.apache.poi.ss.usermodel.Font
    • getIndex

      public int getIndex()
      Specified by:
      getIndex in interface org.apache.poi.ss.usermodel.Font
    • getIndexAsInt

      public int getIndexAsInt()
      Specified by:
      getIndexAsInt in interface org.apache.poi.ss.usermodel.Font