|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IFont
This interface allows you to retrieve or set options for the font used in the report object. Options that are defined by this object, such as font name, are dependent upon the printer driver selected for the report.
| Method Summary | |
|---|---|
boolean |
getBold()
Returns true if the font is bolded, and false otherwise. |
short |
getCharset()
Gets the Charset of the font. |
FontStyle |
getFontStyle()
For internal use only |
boolean |
getItalic()
Returns true if the font is italicized, and false otherwise. |
java.lang.String |
getName()
Returns the name of the font. |
float |
getSize()
Returns the point size of the font. |
boolean |
getStrikethrough()
Returns true if the font appears with strikeout lines, and false
otherwise. |
boolean |
getUnderline()
Returns true if the font is underlined, and false otherwise. |
int |
getWeight()
Returns the weight of the font characters. |
void |
setBold(boolean bold)
Sets whether the font is bolded. |
void |
setCharset(short charset)
Sets the Charset of the font. |
void |
setFontStyle(FontStyle fontStyle)
For internal use only |
void |
setItalic(boolean italic)
Sets whether the font is italicized. |
void |
setName(java.lang.String name)
Sets the name of the font. |
void |
setSize(float size)
Sets the point size of the font. |
void |
setStrikethrough(boolean strikethrough)
Sets whether the font appears with strikeout lines. |
void |
setUnderline(boolean underline)
Sets whether the font is underlined. |
void |
setWeight(int weight)
Sets the weight of the font characters. |
| Method Detail |
|---|
boolean getBold()
Returns true if the font is bolded, and false otherwise.
true if the font is bolded, and false otherwise.short getCharset()
Gets the Charset of the font.
short value that represents the Charset of the font.boolean getItalic()
Returns true if the font is italicized, and false otherwise.
true if the font is italicized, and false otherwise.java.lang.String getName()
Returns the name of the font.
String that specifies the name of the font.float getSize()
Returns the point size of the font.
float that specifies the point size of the font.boolean getStrikethrough()
Returns true if the font appears with strikeout lines, and false
otherwise.
true if the font appears with strikeout lines, and false
otherwise.boolean getUnderline()
Returns true if the font is underlined, and false otherwise.
true if the font is underlined, and false otherwise.int getWeight()
Returns the weight of the font characters. The weight refers to the thickness or "boldness" of the characters that make up the font. The higher the value, the bolder the character.
The following are some common weight settings:
| Description | Value |
| Normal |
400 |
| Bold |
700 |
int that specifies the weight of the font characters.FontStyle getFontStyle()
void setBold(boolean bold)
Sets whether the font is bolded.
bold - true if the font is bolded, and false otherwise.void setCharset(short charset)
Sets the Charset of the font.
charset - a short value that specifies the Charset of the fontvoid setItalic(boolean italic)
Sets whether the font is italicized.
italic - true if the font is italicized, and false
otherwise.void setName(java.lang.String name)
Sets the name of the font.
name - A String that specifies the name of the font.void setSize(float size)
Sets the point size of the font.
size - A float that specifies the point size of the font.void setStrikethrough(boolean strikethrough)
Sets whether the font appears with strikeout lines.
strikethrough - true if the font appears with strikeout lines, and
false otherwise.void setUnderline(boolean underline)
Sets whether the font is underlined.
underline - true if the font is underlined, and false
otherwise.void setWeight(int weight)
Sets the weight of the font characters. The weight refers to the thickness or "boldness" of the characters that make up the font. The higher the value, the bolder the character.
The following are some common weight settings:
| Description | Value |
| Normal |
400 |
| Bold |
700 |
weight - An int that specifies the weight of the font characters.void setFontStyle(FontStyle fontStyle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||