Modifier and Type | Field and Description |
---|---|
static byte |
ANSI_CHARSET
ANSI character set
|
static short |
BOLDWEIGHT_BOLD
Bold boldness (bold)
|
static short |
BOLDWEIGHT_NORMAL
Normal boldness (not bold)
|
static short |
COLOR_NORMAL
normal type of black color.
|
static short |
COLOR_RED
Dark Red color
|
static byte |
DEFAULT_CHARSET
Default character set.
|
static short |
SS_NONE
no type offsetting (not super or subscript)
|
static short |
SS_SUB
subscript
|
static short |
SS_SUPER
superscript
|
static byte |
SYMBOL_CHARSET
Symbol character set
|
static byte |
U_DOUBLE
double underlined
|
static byte |
U_DOUBLE_ACCOUNTING
accounting style double underline
|
static byte |
U_NONE
not underlined
|
static byte |
U_SINGLE
single (normal) underline
|
static byte |
U_SINGLE_ACCOUNTING
accounting style single underline
|
Modifier and Type | Method and Description |
---|---|
short |
getBoldweight() |
int |
getCharSet()
get character-set to use.
|
short |
getColor()
get the color for the font
|
short |
getFontHeight()
get the font height in unit's of 1/20th of a point.
|
short |
getFontHeightInPoints()
get the font height
|
String |
getFontName()
get the name for the font (i.e.
|
short |
getIndex()
get the index within the XSSFWorkbook (sequence within the collection of Font objects)
|
boolean |
getItalic()
get whether to use italics or not
|
boolean |
getStrikeout()
get whether to use a strikeout horizontal line through the text or not
|
short |
getTypeOffset()
get normal,super or subscript.
|
byte |
getUnderline()
get type of text underlining to use
|
boolean |
isOverrideBold() |
boolean |
isOverrideColor() |
boolean |
isOverrideHeightPoints() |
boolean |
isOverrideItalic() |
boolean |
isOverrideName() |
boolean |
isOverrideStrikeout() |
boolean |
isOverrideTypeOffset() |
boolean |
isOverrideUnderline() |
void |
setBoldweight(short boldweight) |
void |
setCharSet(byte charset)
set character-set to use.
|
void |
setCharSet(int charset)
set character-set to use.
|
void |
setColor(short color)
set the color for the font
|
void |
setFontHeight(short height)
set the font height in unit's of 1/20th of a point.
|
void |
setFontHeightInPoints(short height)
set the font height
|
void |
setFontName(String name)
set the name for the font (i.e.
|
void |
setItalic(boolean italic)
set whether to use italics or not
|
void |
setStrikeout(boolean strikeout)
set whether to use a strikeout horizontal line through the text or not
|
void |
setTypeOffset(short offset)
set normal,super or subscript.
|
void |
setUnderline(byte underline)
set type of text underlining to use
|
static final short BOLDWEIGHT_NORMAL
static final short BOLDWEIGHT_BOLD
static final short COLOR_NORMAL
static final short COLOR_RED
static final short SS_NONE
static final short SS_SUPER
static final short SS_SUB
static final byte U_NONE
static final byte U_SINGLE
static final byte U_DOUBLE
static final byte U_SINGLE_ACCOUNTING
static final byte U_DOUBLE_ACCOUNTING
static final byte ANSI_CHARSET
static final byte DEFAULT_CHARSET
static final byte SYMBOL_CHARSET
void setFontName(String name)
name
- String representing the name of the font to useString getFontName()
void setFontHeight(short height)
height
- height in 1/20ths of a pointsetFontHeightInPoints(short)
void setFontHeightInPoints(short height)
height
- height in the familiar unit of measure - pointssetFontHeight(short)
short getFontHeight()
getFontHeightInPoints()
short getFontHeightInPoints()
getFontHeight()
void setItalic(boolean italic)
italic
- italics or notboolean getItalic()
void setStrikeout(boolean strikeout)
strikeout
- or notboolean getStrikeout()
void setColor(short color)
color
- to useNote: Use this rather than HSSFColor.AUTOMATIC for default font color
,
COLOR_RED
short getColor()
COLOR_NORMAL
,
COLOR_RED
,
HSSFPalette.getColor(short)
void setTypeOffset(short offset)
short getTypeOffset()
void setUnderline(byte underline)
underline
- typeU_NONE
,
U_SINGLE
,
U_DOUBLE
,
U_SINGLE_ACCOUNTING
,
U_DOUBLE_ACCOUNTING
byte getUnderline()
U_NONE
,
U_SINGLE
,
U_DOUBLE
,
U_SINGLE_ACCOUNTING
,
U_DOUBLE_ACCOUNTING
int getCharSet()
ANSI_CHARSET
,
DEFAULT_CHARSET
,
SYMBOL_CHARSET
void setCharSet(byte charset)
ANSI_CHARSET
,
DEFAULT_CHARSET
,
SYMBOL_CHARSET
void setCharSet(int charset)
ANSI_CHARSET
,
DEFAULT_CHARSET
,
SYMBOL_CHARSET
short getIndex()
void setBoldweight(short boldweight)
short getBoldweight()
boolean isOverrideName()
boolean isOverrideColor()
boolean isOverrideBold()
boolean isOverrideItalic()
boolean isOverrideStrikeout()
boolean isOverrideUnderline()
boolean isOverrideHeightPoints()
boolean isOverrideTypeOffset()
Copyright © 2020. All rights reserved.