|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.definition.Font
public class Font
This object 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. When possible, use the IFont interface.
| Constructor Summary | |
|---|---|
Font()
|
|
Font(IFont src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
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. |
boolean |
hasContent(java.lang.Object srcFont)
|
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
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. |
boolean |
skipWritingIdenticalObject()
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Font(IFont src)
public Font()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
public void endElement(java.lang.String eleName,
java.util.Map objState)
public boolean getBold()
IFont
Returns true if the font is bolded, and false otherwise.
getBold in interface IFonttrue if the font is bolded, and false otherwise.public boolean getItalic()
IFont
Returns true if the font is italicized, and false otherwise.
getItalic in interface IFonttrue if the font is italicized, and false otherwise.public java.lang.String getName()
IFontReturns the name of the font.
getName in interface IFontString that specifies the name of the font.public float getSize()
IFontReturns the point size of the font.
getSize in interface IFontfloat that specifies the point size of the font.public boolean getStrikethrough()
IFont
Returns true if the font appears with strikeout lines, and false
otherwise.
getStrikethrough in interface IFonttrue if the font appears with strikeout lines, and false
otherwise.public boolean getUnderline()
IFont
Returns true if the font is underlined, and false otherwise.
getUnderline in interface IFonttrue if the font is underlined, and false otherwise.public int getWeight()
IFontReturns 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 |
getWeight in interface IFontint that specifies the weight of the font characters.public boolean hasContent(java.lang.Object srcFont)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOExceptionpublic void setBold(boolean bold)
IFontSets whether the font is bolded.
setBold in interface IFontbold - true if the font is bolded, and false otherwise.public void setItalic(boolean italic)
IFontSets whether the font is italicized.
setItalic in interface IFontitalic - true if the font is italicized, and false
otherwise.public void setName(java.lang.String name)
IFontSets the name of the font.
setName in interface IFontname - A String that specifies the name of the font.public void setSize(float size)
IFontSets the point size of the font.
setSize in interface IFontsize - A float that specifies the point size of the font.public void setStrikethrough(boolean strikethrough)
IFontSets whether the font appears with strikeout lines.
setStrikethrough in interface IFontstrikethrough - true if the font appears with strikeout lines, and
false otherwise.public void setUnderline(boolean underline)
IFontSets whether the font is underlined.
setUnderline in interface IFontunderline - true if the font is underlined, and false
otherwise.public void setWeight(int weight)
IFontSets 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 |
setWeight in interface IFontweight - An int that specifies the weight of the font characters.public boolean skipWritingIdenticalObject()
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
public short getCharset()
IFontGets the Charset of the font.
getCharset in interface IFontshort value that represents the Charset of the font.public void setCharset(short charset)
IFontSets the Charset of the font.
setCharset in interface IFontcharset - a short value that specifies the Charset of the fontpublic FontStyle getFontStyle()
IFont
getFontStyle in interface IFontpublic void setFontStyle(FontStyle fontStyle)
IFont
setFontStyle in interface IFont
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||