|
|||||||||
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 |
doControllerModification(java.lang.Object newObject)
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
void |
enumerateMembers(IMemberVisitor visitor)
|
boolean |
getBold()
Returns true if the font is bolded, and false otherwise. |
short |
getCharset()
Returns the m_Charset. |
ControllableMixin |
getControllableMixin()
|
FontStyle |
getFontStyle()
Gets the font style, such as normal, bold, or italic. |
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)
|
boolean |
isDirectlyControllable()
|
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)
Sets the style of the font, such as normal, bold or italic. |
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)
For internal use only.
public void endElement(java.lang.String eleName, java.util.Map objState)
For internal use only.
public boolean getBold()
IFont
Returns true
if the font is bolded, and false
otherwise.
getBold
in interface IFont
true
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 IFont
true
if the font is italicized, and false
otherwise.public java.lang.String getName()
IFont
Returns the name of the font.
getName
in interface IFont
String
that specifies the name of the font.public float getSize()
IFont
Returns the point size of the font.
getSize
in interface IFont
float
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 IFont
true
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 IFont
true
if the font is underlined, and false
otherwise.public int getWeight()
IFont
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 |
getWeight
in interface IFont
int
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)
For internal use only.
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void setBold(boolean bold)
IFont
Sets whether the font is bolded.
setBold
in interface IFont
bold
- true
if the font is bolded, and false
otherwise.public void setItalic(boolean italic)
IFont
Sets whether the font is italicized.
setItalic
in interface IFont
italic
- true
if the font is italicized, and false
otherwise.public void setName(java.lang.String name)
IFont
Sets the name of the font.
setName
in interface IFont
name
- A String
that specifies the name of the font.public void setSize(float size)
IFont
Sets the point size of the font.
setSize
in interface IFont
size
- A float
that specifies the point size of the font.public void setStrikethrough(boolean strikethrough)
IFont
Sets whether the font appears with strikeout lines.
setStrikethrough
in interface IFont
strikethrough
- true
if the font appears with strikeout lines, and
false
otherwise.public void setUnderline(boolean underline)
IFont
Sets whether the font is underlined.
setUnderline
in interface IFont
underline
- true
if the font is underlined, and false
otherwise.public void setWeight(int weight)
IFont
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 |
setWeight
in interface IFont
weight
- An int
that specifies the weight of the font characters.public boolean skipWritingIdenticalObject()
For internal use only.
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
For internal use only.
public short getCharset()
getCharset
in interface IFont
public void setCharset(short charset)
IFont
Sets the Charset of the font.
setCharset
in interface IFont
charset
- a short
value that specifies the Charset of the fontpublic FontStyle getFontStyle()
IFont
getFontStyle
in interface IFont
public void setFontStyle(FontStyle fontStyle)
IFont
setFontStyle
in interface IFont
fontStyle
- The font style to set.public ControllableMixin getControllableMixin()
public void doControllerModification(java.lang.Object newObject)
public boolean isDirectlyControllable()
public void enumerateMembers(IMemberVisitor visitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |