Fields Summary |
---|
public static final String | FONT_ARIALArial font |
public static final short | BOLDWEIGHT_NORMALNormal boldness (not bold) |
public static final short | BOLDWEIGHT_BOLDBold boldness (bold) |
public static final short | COLOR_NORMALnormal type of black color. |
public static final short | COLOR_REDDark Red color |
public static final short | SS_NONEno type offsetting (not super or subscript) |
public static final short | SS_SUPERsuperscript |
public static final short | SS_SUBsubscript |
public static final byte | U_NONEnot underlined |
public static final byte | U_SINGLEsingle (normal) underline |
public static final byte | U_DOUBLEdouble underlined |
public static final byte | U_SINGLE_ACCOUNTINGaccounting style single underline |
public static final byte | U_DOUBLE_ACCOUNTINGaccounting style double underline |
public static final byte | ANSI_CHARSETANSI character set |
public static final byte | DEFAULT_CHARSETDefault character set. |
public static final byte | SYMBOL_CHARSETSymbol character set |
private FontRecord | font |
private short | index |
Methods Summary |
---|
public short | getBoldweight()get the boldness to use
return font.getBoldWeight();
|
public byte | getCharSet()get character-set to use.
return font.getCharset();
|
public short | getColor()get the color for the font
return font.getColorPaletteIndex();
|
public short | getFontHeight()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..
return font.getFontHeight();
|
public short | getFontHeightInPoints()get the font height
return ( short ) (font.getFontHeight() / 20);
|
public java.lang.String | getFontName()get the name for the font (i.e. Arial)
return font.getFontName();
|
public short | getIndex()get the index within the HSSFWorkbook (sequence within the collection of Font objects)
return index;
|
public boolean | getItalic()get whether to use italics or not
return font.isItalic();
|
public boolean | getStrikeout()get whether to use a strikeout horizontal line through the text or not
return font.isStruckout();
|
public short | getTypeOffset()get normal,super or subscript.
return font.getSuperSubScript();
|
public byte | getUnderline()get type of text underlining to use
return font.getUnderline();
|
public void | setBoldweight(short boldweight)set the boldness to use
font.setBoldWeight(boldweight);
|
public void | setCharSet(byte charset)set character-set to use.
font.setCharset(charset);
|
public void | setColor(short color)set the color for the font
font.setColorPaletteIndex(color);
|
public void | setFontHeight(short height)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..
font.setFontHeight(height);
|
public void | setFontHeightInPoints(short height)set the font height
font.setFontHeight(( short ) (height * 20));
|
public void | setFontName(java.lang.String name)set the name for the font (i.e. Arial)
font.setFontName(name);
font.setFontNameLength(( byte ) name.length());
|
public void | setItalic(boolean italic)set whether to use italics or not
font.setItalic(italic);
|
public void | setStrikeout(boolean strikeout)set whether to use a strikeout horizontal line through the text or not
font.setStrikeout(strikeout);
|
public void | setTypeOffset(short offset)set normal,super or subscript.
font.setSuperSubScript(offset);
|
public void | setUnderline(byte underline)set type of text underlining to use
font.setUnderline(underline);
|
public java.lang.String | toString()
return "org.apache.poi.hssf.usermodel.HSSFFont{" +
font +
"}";
|