Package org.spdx.spreadsheetstore.ods
Class OdsFont
java.lang.Object
org.spdx.spreadsheetstore.ods.OdsFont
- All Implemented Interfaces:
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.-
Field Summary
Fields inherited from interface org.apache.poi.ss.usermodel.Font
ANSI_CHARSET, COLOR_NORMAL, COLOR_RED, DEFAULT_CHARSET, SS_NONE, SS_SUB, SS_SUPER, SYMBOL_CHARSET, TWIPS_PER_POINT, U_DOUBLE, U_DOUBLE_ACCOUNTING, U_NONE, U_SINGLE, U_SINGLE_ACCOUNTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBold()intshortgetColor()shortshortintgetIndex()intbooleanbooleanshortbytevoidsetBold(boolean bold) voidsetCharSet(byte charset) voidsetCharSet(int charset) voidsetColor(short color) voidsetFontHeight(short height) voidsetFontHeightInPoints(short height) voidsetFontName(String name) voidsetItalic(boolean italic) voidsetStrikeout(boolean strikeout) voidsetTypeOffset(short offset) voidsetUnderline(byte underline)
-
Constructor Details
-
OdsFont
public OdsFont(short index)
-
-
Method Details
-
setFontName
- Specified by:
setFontNamein interfaceorg.apache.poi.ss.usermodel.Font
-
getFontName
- Specified by:
getFontNamein interfaceorg.apache.poi.ss.usermodel.Font
-
setFontHeight
public void setFontHeight(short height) - Specified by:
setFontHeightin interfaceorg.apache.poi.ss.usermodel.Font
-
setFontHeightInPoints
public void setFontHeightInPoints(short height) - Specified by:
setFontHeightInPointsin interfaceorg.apache.poi.ss.usermodel.Font
-
getFontHeight
public short getFontHeight()- Specified by:
getFontHeightin interfaceorg.apache.poi.ss.usermodel.Font
-
getFontHeightInPoints
public short getFontHeightInPoints()- Specified by:
getFontHeightInPointsin interfaceorg.apache.poi.ss.usermodel.Font
-
setItalic
public void setItalic(boolean italic) - Specified by:
setItalicin interfaceorg.apache.poi.ss.usermodel.Font
-
getItalic
public boolean getItalic()- Specified by:
getItalicin interfaceorg.apache.poi.ss.usermodel.Font
-
setStrikeout
public void setStrikeout(boolean strikeout) - Specified by:
setStrikeoutin interfaceorg.apache.poi.ss.usermodel.Font
-
getStrikeout
public boolean getStrikeout()- Specified by:
getStrikeoutin interfaceorg.apache.poi.ss.usermodel.Font
-
setColor
public void setColor(short color) - Specified by:
setColorin interfaceorg.apache.poi.ss.usermodel.Font
-
getColor
public short getColor()- Specified by:
getColorin interfaceorg.apache.poi.ss.usermodel.Font
-
setTypeOffset
public void setTypeOffset(short offset) - Specified by:
setTypeOffsetin interfaceorg.apache.poi.ss.usermodel.Font
-
getTypeOffset
public short getTypeOffset()- Specified by:
getTypeOffsetin interfaceorg.apache.poi.ss.usermodel.Font
-
setUnderline
public void setUnderline(byte underline) - Specified by:
setUnderlinein interfaceorg.apache.poi.ss.usermodel.Font
-
getUnderline
public byte getUnderline()- Specified by:
getUnderlinein interfaceorg.apache.poi.ss.usermodel.Font
-
getCharSet
public int getCharSet()- Specified by:
getCharSetin interfaceorg.apache.poi.ss.usermodel.Font
-
setCharSet
public void setCharSet(byte charset) - Specified by:
setCharSetin interfaceorg.apache.poi.ss.usermodel.Font
-
setCharSet
public void setCharSet(int charset) - Specified by:
setCharSetin interfaceorg.apache.poi.ss.usermodel.Font
-
setBold
public void setBold(boolean bold) - Specified by:
setBoldin interfaceorg.apache.poi.ss.usermodel.Font
-
getBold
public boolean getBold()- Specified by:
getBoldin interfaceorg.apache.poi.ss.usermodel.Font
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceorg.apache.poi.ss.usermodel.Font
-
getIndexAsInt
public int getIndexAsInt()- Specified by:
getIndexAsIntin interfaceorg.apache.poi.ss.usermodel.Font
-