| |
|
| java.lang.Object org.apache.poi.hssf.usermodel.HSSFFont
ANSI_CHARSET | final public static byte ANSI_CHARSET(Code) | | ANSI character set
|
BOLDWEIGHT_BOLD | final public static short BOLDWEIGHT_BOLD(Code) | | Bold boldness (bold)
|
BOLDWEIGHT_NORMAL | final public static short BOLDWEIGHT_NORMAL(Code) | | Normal boldness (not bold)
|
COLOR_NORMAL | final public static short COLOR_NORMAL(Code) | | normal type of black color.
|
COLOR_RED | final public static short COLOR_RED(Code) | | Dark Red color
|
DEFAULT_CHARSET | final public static byte DEFAULT_CHARSET(Code) | | Default character set.
|
FONT_ARIAL | final public static String FONT_ARIAL(Code) | | Arial font
|
SS_NONE | final public static short SS_NONE(Code) | | no type offsetting (not super or subscript)
|
SS_SUB | final public static short SS_SUB(Code) | | subscript
|
SS_SUPER | final public static short SS_SUPER(Code) | | superscript
|
SYMBOL_CHARSET | final public static byte SYMBOL_CHARSET(Code) | | Symbol character set
|
U_DOUBLE | final public static byte U_DOUBLE(Code) | | double underlined
|
U_DOUBLE_ACCOUNTING | final public static byte U_DOUBLE_ACCOUNTING(Code) | | accounting style double underline
|
U_NONE | final public static byte U_NONE(Code) | | not underlined
|
U_SINGLE | final public static byte U_SINGLE(Code) | | single (normal) underline
|
U_SINGLE_ACCOUNTING | final public static byte U_SINGLE_ACCOUNTING(Code) | | accounting style single underline
|
HSSFFont | protected HSSFFont(short index, FontRecord rec)(Code) | | Creates a new instance of HSSFFont
|
getFontHeight | public short getFontHeight()(Code) | | get the font height in unit's of 1/20th of a point. Maybe you might want to
use the getFontHeightInPoints which matches to the familiar 10, 12, 14 etc..
short - height in 1/20ths of a point See Also: HSSFFont.getFontHeightInPoints() |
getFontHeightInPoints | public short getFontHeightInPoints()(Code) | | get the font height
short - height in the familiar unit of measure - points See Also: HSSFFont.getFontHeight() |
getFontName | public String getFontName()(Code) | | get the name for the font (i.e. Arial)
String representing the name of the font to use See Also: HSSFFont.FONT_ARIAL |
getIndex | public short getIndex()(Code) | | get the index within the HSSFWorkbook (sequence within the collection of Font objects)
unique index number of the underlying record this Font represents (probably you don't careunless you're comparing which one is which) |
getItalic | public boolean getItalic()(Code) | | get whether to use italics or not
italics or not |
getStrikeout | public boolean getStrikeout()(Code) | | get whether to use a strikeout horizontal line through the text or not
strikeout or not |
setColor | public void setColor(short color)(Code) | | set the color for the font
Parameters: color - to use See Also: HSSFFont.COLOR_NORMAL See Also: Note: Use this rather than HSSFColor.AUTOMATIC for default font color See Also: HSSFFont.COLOR_RED |
setFontHeight | public void setFontHeight(short height)(Code) | | set the font height in unit's of 1/20th of a point. Maybe you might want to
use the setFontHeightInPoints which matches to the familiar 10, 12, 14 etc..
Parameters: height - height in 1/20ths of a point See Also: HSSFFont.setFontHeightInPoints(short) |
setFontHeightInPoints | public void setFontHeightInPoints(short height)(Code) | | set the font height
Parameters: height - height in the familiar unit of measure - points See Also: HSSFFont.setFontHeight(short) |
setFontName | public void setFontName(String name)(Code) | | set the name for the font (i.e. Arial)
Parameters: name - String representing the name of the font to use See Also: HSSFFont.FONT_ARIAL |
setItalic | public void setItalic(boolean italic)(Code) | | set whether to use italics or not
Parameters: italic - italics or not |
setStrikeout | public void setStrikeout(boolean strikeout)(Code) | | set whether to use a strikeout horizontal line through the text or not
Parameters: strikeout - or not |
|
|
|