|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xssf.usermodel.XSSFFontFormatting
public class XSSFFontFormatting
| Field Summary |
|---|
| Fields inherited from interface org.apache.poi.ss.usermodel.FontFormatting |
|---|
SS_NONE, SS_SUB, SS_SUPER, U_DOUBLE, U_DOUBLE_ACCOUNTING, U_NONE, U_SINGLE, U_SINGLE_ACCOUNTING |
| Method Summary | |
|---|---|
short |
getEscapementType()
get the type of super or subscript for the font |
short |
getFontColorIndex()
|
int |
getFontHeight()
gets the height of the font in 1/20th point units |
short |
getUnderlineType()
get the type of underlining for the font |
XSSFColor |
getXSSFColor()
|
boolean |
isBold()
get whether the font weight is set to bold or not |
boolean |
isItalic()
|
void |
resetFontStyle()
set font style options to default values (non-italic, non-bold) |
void |
setEscapementType(short escapementType)
set the escapement type for the font |
void |
setFontColorIndex(short color)
|
void |
setFontHeight(int height)
Sets the height of the font in 1/20th point units |
void |
setFontStyle(boolean italic,
boolean bold)
set font style options. |
void |
setUnderlineType(short underlineType)
set the type of underlining type for the font |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public short getEscapementType()
getEscapementType in interface org.apache.poi.ss.usermodel.FontFormattingFontFormatting.SS_NONE,
FontFormatting.SS_SUPER,
FontFormatting.SS_SUBpublic void setEscapementType(short escapementType)
setEscapementType in interface org.apache.poi.ss.usermodel.FontFormattingescapementType - super or subscript optionFontFormatting.SS_NONE,
FontFormatting.SS_SUPER,
FontFormatting.SS_SUBpublic short getFontColorIndex()
getFontColorIndex in interface org.apache.poi.ss.usermodel.FontFormattingpublic void setFontColorIndex(short color)
setFontColorIndex in interface org.apache.poi.ss.usermodel.FontFormattingcolor - font color indexpublic XSSFColor getXSSFColor()
public int getFontHeight()
getFontHeight in interface org.apache.poi.ss.usermodel.FontFormattingpublic void setFontHeight(int height)
setFontHeight in interface org.apache.poi.ss.usermodel.FontFormattingheight - the height in twips (in points/20)public short getUnderlineType()
getUnderlineType in interface org.apache.poi.ss.usermodel.FontFormattingFontFormatting.U_NONE,
FontFormatting.U_SINGLE,
FontFormatting.U_DOUBLE,
FontFormatting.U_SINGLE_ACCOUNTING,
FontFormatting.U_DOUBLE_ACCOUNTINGpublic void setUnderlineType(short underlineType)
setUnderlineType in interface org.apache.poi.ss.usermodel.FontFormattingunderlineType - super or subscript optionFontFormatting.U_NONE,
FontFormatting.U_SINGLE,
FontFormatting.U_DOUBLE,
FontFormatting.U_SINGLE_ACCOUNTING,
FontFormatting.U_DOUBLE_ACCOUNTINGpublic boolean isBold()
isBold in interface org.apache.poi.ss.usermodel.FontFormattingpublic boolean isItalic()
isItalic in interface org.apache.poi.ss.usermodel.FontFormatting
public void setFontStyle(boolean italic,
boolean bold)
setFontStyle in interface org.apache.poi.ss.usermodel.FontFormattingitalic - - if true, set posture style to italic, otherwise to normalbold - if true, set font weight to bold, otherwise to normalpublic void resetFontStyle()
resetFontStyle in interface org.apache.poi.ss.usermodel.FontFormatting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||