Class HSSFFontWrapper
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.HSSFFontWrapper
-
public final class HSSFFontWrapper extends Object
The HSSFFontWrapper is used to store excel style font information.- Author:
- Heiko Evermann
-
-
Field Summary
Fields Modifier and Type Field Description static int
FONT_FACTOR
Deprecated.No longer used, will be removed in 6.0
-
Constructor Summary
Constructors Constructor Description 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(org.apache.poi.ss.usermodel.Font font)
Creates a HSSFFontWrapper for the excel font.HSSFFontWrapper(StyleSheet contentStyle, short colorIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
FONT_FACTOR
public static final int FONT_FACTOR
Deprecated.No longer used, will be removed in 6.0scale between Excel and awt. With this value it looks fine.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HSSFFontWrapper
public HSSFFontWrapper(StyleSheet contentStyle, short colorIndex)
-
HSSFFontWrapper
public 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.- Parameters:
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.
-
HSSFFontWrapper
public HSSFFontWrapper(org.apache.poi.ss.usermodel.Font font)
Creates a HSSFFontWrapper for the excel font.- Parameters:
font
- the font.
-
-
Method Detail
-
equals
public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
-
hashCode
public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byjava.util.Hashtable
.
-
isBold
public boolean isBold()
-
getColorIndex
public short getColorIndex()
-
getFontHeight
public int getFontHeight()
-
getFontName
public String getFontName()
-
getHashCode
public int getHashCode()
-
isItalic
public boolean isItalic()
-
isStrikethrough
public boolean isStrikethrough()
-
isUnderline
public boolean isUnderline()
-
-