public final class HSSFFontWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FONT_FACTOR
Deprecated.
No longer used, will be removed in 6.0
|
Constructor and Description |
---|
HSSFFontWrapper(org.apache.poi.ss.usermodel.Font font)
Creates a HSSFFontWrapper for the excel font.
|
HSSFFontWrapper(String fontName,
short fontSize,
boolean bold,
boolean italic,
boolean underline,
boolean strikethrough,
short colorIndex)
Creates a new HSSFFontWrapper for the given font and color.
|
HSSFFontWrapper(StyleSheet contentStyle,
short colorIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
short |
getColorIndex() |
int |
getFontHeight() |
String |
getFontName() |
int |
getHashCode() |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isBold() |
boolean |
isItalic() |
boolean |
isStrikethrough() |
boolean |
isUnderline() |
String |
toString() |
public static final int FONT_FACTOR
public HSSFFontWrapper(StyleSheet contentStyle, short colorIndex)
public HSSFFontWrapper(String fontName, short fontSize, boolean bold, boolean italic, boolean underline, boolean strikethrough, short colorIndex)
fontName
- the name of the wrapped font.fontSize
- the name of the wrapped font.bold
- a font style flag.italic
- a font style flag.underline
- a font style flag.strikethrough
- a font style flag.colorIndex
- the foreground color.public HSSFFontWrapper(org.apache.poi.ss.usermodel.Font font)
font
- the font.public boolean equals(Object o)
public int hashCode()
java.util.Hashtable
.public boolean isBold()
public short getColorIndex()
public int getFontHeight()
public String getFontName()
public int getHashCode()
public boolean isItalic()
public boolean isStrikethrough()
public boolean isUnderline()