org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont() , org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(int) , org.apache.poi.hssf.usermodel.HSSFCellStyle#setFont(HSSFFont)
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final short | BOLDWEIGHT_BOLD
Bold boldness (bold) |
| pack-priv static final short | BOLDWEIGHT_NORMAL
Normal boldness (not bold) |
| private final FontRecord | |
| public static final String | FONT_ARIAL
Arial font |
| private final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public int | Returns: character-setImplements org. get character-set to use. |
| public short | Returns: color to useImplements org. get the color for the font |
| public short | Returns: short - height in 1/20ths of a pointImplements org. get the font height in unit's of 1/20th of a point. |
| public short | Returns: short - height in the familiar unit of measure - pointsImplements org. get the font height |
| public String | Returns: String representing the name of the font to useImplements org. get the name for the font (i.e. Arial) |
| public HSSFColor | |
| public int | getIndex()
Implements org. get the index within the XSSFWorkbook (sequence within the collection of Font objects) |
| public int | getIndexAsInt()
Implements org.
Deprecated
get the index within the XSSFWorkbook (sequence within the collection of Font objects) |
| public boolean | Returns: italics or notImplements org. get whether to use italics or not |
| public boolean | Returns: strikeout or notImplements org. get whether to use a strikeout horizontal line through the text or not |
| public short | Returns: offset type to use (none,super,sub)Implements org. get normal,super or subscript. |
| public byte | Returns: underlining typeImplements org. get type of text underlining to use |
| public int | |
| public void | setBold(boolean bold)
Implements org. sets the font to be bold or not |
| public void | setCharSet(int charset)
Implements org. set character-set to use. |
| public void | setCharSet(byte charset)
Implements org. set character-set to use. |
| public void | setColor(short
to use color)Implements org. set the color for the font |
| public void | setFontHeight(short
height in 1/20ths of a point height)Implements org. set the font height in unit's of 1/20th of a point. |
| public void | setFontHeightInPoints(short
height in the familiar unit of measure - points height)Implements org. set the font height |
| public void | setFontName(String
String representing the name of the font to use name)Implements org. set the name for the font (i.e. Arial) |
| public void | setItalic(boolean
italics or not italic)Implements org. set whether to use italics or not |
| public void | setStrikeout(boolean
or not strikeout)Implements org. set whether to use a strikeout horizontal line through the text or not |
| public void | setTypeOffset(short
type to use (none,super,sub) offset)Implements org. set normal,super or subscript. |
| public void | setUnderline(byte
type underline)Implements org. set type of text underlining to use |
| public String |
| BOLDWEIGHT_BOLD | back to summary |
|---|---|
| pack-priv static final short BOLDWEIGHT_BOLD Bold boldness (bold) | |
| BOLDWEIGHT_NORMAL | back to summary |
|---|---|
| pack-priv static final short BOLDWEIGHT_NORMAL Normal boldness (not bold) | |
| font | back to summary |
|---|---|
| private final FontRecord font | |
| FONT_ARIAL | back to summary |
|---|---|
| public static final String FONT_ARIAL Arial font | |
| index | back to summary |
|---|---|
| private final int index | |
| HSSFFont | back to summary |
|---|---|
| protected HSSFFont(int index, FontRecord rec) Creates a new instance of HSSFFont | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getBold | back to summary |
|---|---|
| public boolean getBold() Implements org. get if the font is bold or not
| |
| getCharSet | back to summary |
|---|---|
| public int getCharSet() Implements org. get character-set to use.
| |
| getColor | back to summary |
|---|---|
| public short getColor() Implements org. get the color for the font
| |
| getFontHeight | back to summary |
|---|---|
| public short getFontHeight() Implements org. 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..
| |
| getFontHeightInPoints | back to summary |
|---|---|
| public short getFontHeightInPoints() Implements org. get the font height
| |
| getFontName | back to summary |
|---|---|
| public String getFontName() Implements org. get the name for the font (i.e. Arial)
| |
| getHSSFColor | back to summary |
|---|---|
| public HSSFColor getHSSFColor(HSSFWorkbook wb) get the color value for the font | |
| getIndex | back to summary |
|---|---|
| public int getIndex() Implements org. Doc from org. get the index within the XSSFWorkbook (sequence within the collection of Font objects)
| |
| getIndexAsInt | back to summary |
|---|---|
| public int getIndexAsInt() Implements org. Doc from org. Deprecated
get the index within the XSSFWorkbook (sequence within the collection of Font objects)
| |
| getItalic | back to summary |
|---|---|
| public boolean getItalic() Implements org. get whether to use italics or not
| |
| getStrikeout | back to summary |
|---|---|
| public boolean getStrikeout() Implements org. get whether to use a strikeout horizontal line through the text or not
| |
| getTypeOffset | back to summary |
|---|---|
| public short getTypeOffset() Implements org. get normal,super or subscript. | |
| getUnderline | back to summary |
|---|---|
| public byte getUnderline() Implements org. get type of text underlining to use
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setBold | back to summary |
|---|---|
| public void setBold(boolean bold) Implements org. sets the font to be bold or not
| |
| setCharSet | back to summary |
|---|---|
| public void setCharSet(int charset) Implements org. set character-set to use.
| |
| setCharSet | back to summary |
|---|---|
| public void setCharSet(byte charset) Implements org. set character-set to use.
| |
| setColor | back to summary |
|---|---|
| public void setColor(short color) Implements org. set the color for the font
| |
| setFontHeight | back to summary |
|---|---|
| public void setFontHeight(short height) Implements org. 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..
| |
| setFontHeightInPoints | back to summary |
|---|---|
| public void setFontHeightInPoints(short height) Implements org. set the font height
| |
| setFontName | back to summary |
|---|---|
| public void setFontName(String name) Implements org. set the name for the font (i.e. Arial)
| |
| setItalic | back to summary |
|---|---|
| public void setItalic(boolean italic) Implements org. set whether to use italics or not
| |
| setStrikeout | back to summary |
|---|---|
| public void setStrikeout(boolean strikeout) Implements org. set whether to use a strikeout horizontal line through the text or not
| |
| setTypeOffset | back to summary |
|---|---|
| public void setTypeOffset(short offset) Implements org. set normal,super or subscript. | |
| setUnderline | back to summary |
|---|---|
| public void setUnderline(byte underline) Implements org. set type of text underlining to use
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |