|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.usermodel.HSSFFontFormatting
public final class HSSFFontFormatting
High level representation for Font Formatting component of Conditional Formatting settings
| Field Summary | |
|---|---|
static byte |
U_DOUBLE
Underline type - Double |
static byte |
U_DOUBLE_ACCOUNTING
Underline type - Double Accounting |
static byte |
U_NONE
Underline type - None |
static byte |
U_SINGLE
Underline type - Single |
static byte |
U_SINGLE_ACCOUNTING
Underline type - Single Accounting |
| Fields inherited from interface org.apache.poi.ss.usermodel.FontFormatting |
|---|
SS_NONE, SS_SUB, SS_SUPER |
| Constructor Summary | |
|---|---|
protected |
HSSFFontFormatting(CFRuleRecord cfRuleRecord)
|
| Method Summary | |
|---|---|
short |
getEscapementType()
get the type of super or subscript for the font |
short |
getFontColorIndex()
|
protected FontFormatting |
getFontFormattingBlock()
|
int |
getFontHeight()
gets the height of the font in 1/20th point units |
short |
getFontWeight()
get the font weight for this font (100-1000dec or 0x64-0x3e8). |
protected byte[] |
getRawRecord()
|
short |
getUnderlineType()
get the type of underlining for the font |
boolean |
isBold()
get whether the font weight is set to bold or not |
boolean |
isEscapementTypeModified()
|
boolean |
isFontCancellationModified()
|
boolean |
isFontOutlineModified()
|
boolean |
isFontShadowModified()
|
boolean |
isFontStyleModified()
|
boolean |
isFontWeightModified()
|
boolean |
isItalic()
|
boolean |
isOutlineOn()
|
boolean |
isShadowOn()
|
boolean |
isStruckout()
|
boolean |
isUnderlineTypeModified()
|
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 |
setEscapementTypeModified(boolean modified)
|
void |
setFontCancellationModified(boolean modified)
|
void |
setFontColorIndex(short fci)
|
void |
setFontHeight(int height)
Sets the height of the font in 1/20th point units |
void |
setFontOutlineModified(boolean modified)
|
void |
setFontShadowModified(boolean modified)
|
void |
setFontStyle(boolean italic,
boolean bold)
set font style options. |
void |
setFontStyleModified(boolean modified)
|
void |
setOutline(boolean on)
|
void |
setShadow(boolean on)
|
void |
setStrikeout(boolean strike)
|
void |
setUnderlineType(short underlineType)
set the type of underlining type for the font |
void |
setUnderlineTypeModified(boolean modified)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte U_NONE
public static final byte U_SINGLE
public static final byte U_DOUBLE
public static final byte U_SINGLE_ACCOUNTING
public static final byte U_DOUBLE_ACCOUNTING
| Constructor Detail |
|---|
protected HSSFFontFormatting(CFRuleRecord cfRuleRecord)
| Method Detail |
|---|
protected FontFormatting getFontFormattingBlock()
public short getEscapementType()
getEscapementType in interface FontFormattingFontFormatting.SS_NONE,
FontFormatting.SS_SUPER,
FontFormatting.SS_SUBpublic short getFontColorIndex()
getFontColorIndex in interface FontFormattingpublic int getFontHeight()
getFontHeight in interface FontFormattingpublic short getFontWeight()
protected byte[] getRawRecord()
FontFormatting.getRawRecord()public short getUnderlineType()
getUnderlineType in interface FontFormattingU_NONE,
U_SINGLE,
U_DOUBLE,
U_SINGLE_ACCOUNTING,
U_DOUBLE_ACCOUNTINGpublic boolean isBold()
isBold in interface FontFormattingpublic boolean isEscapementTypeModified()
public boolean isFontCancellationModified()
public boolean isFontOutlineModified()
public boolean isFontShadowModified()
public boolean isFontStyleModified()
public boolean isItalic()
isItalic in interface FontFormattingpublic boolean isOutlineOn()
public boolean isShadowOn()
public boolean isStruckout()
public boolean isUnderlineTypeModified()
public boolean isFontWeightModified()
public void setFontStyle(boolean italic,
boolean bold)
setFontStyle in interface 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 FontFormattingpublic void setEscapementType(short escapementType)
setEscapementType in interface FontFormattingescapementType - super or subscript optionFontFormatting.SS_NONE,
FontFormatting.SS_SUPER,
FontFormatting.SS_SUBpublic void setEscapementTypeModified(boolean modified)
modified - FontFormatting.setEscapementTypeModified(boolean)public void setFontCancellationModified(boolean modified)
modified - FontFormatting.setFontCancellationModified(boolean)public void setFontColorIndex(short fci)
setFontColorIndex in interface FontFormattingfci - FontFormatting.setFontColorIndex(short)public void setFontHeight(int height)
FontFormatting
setFontHeight in interface FontFormattingheight - FontFormatting.setFontHeight(int)public void setFontOutlineModified(boolean modified)
modified - FontFormatting.setFontOutlineModified(boolean)public void setFontShadowModified(boolean modified)
modified - FontFormatting.setFontShadowModified(boolean)public void setFontStyleModified(boolean modified)
modified - FontFormatting.setFontStyleModified(boolean)public void setOutline(boolean on)
on - FontFormatting.setOutline(boolean)public void setShadow(boolean on)
on - FontFormatting.setShadow(boolean)public void setStrikeout(boolean strike)
strike - FontFormatting.setStrikeout(boolean)public void setUnderlineType(short underlineType)
setUnderlineType in interface FontFormattingunderlineType - super or subscript optionU_NONE,
U_SINGLE,
U_DOUBLE,
U_SINGLE_ACCOUNTING,
U_DOUBLE_ACCOUNTINGpublic void setUnderlineTypeModified(boolean modified)
modified - FontFormatting.setUnderlineTypeModified(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||