|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.core.internal.DFont
org.eclipse.tptp.platform.report.birt).
public class DFont
A DFont defines the appearance of a font. A DFont is defined by three strings: the font name (ie "Arial"), the family name (ie "Arial") and the scripts name (ie "latin-1). The family name and the script name can be set to NULL. Other parameters can be modified such as the font size in pixels or the style (NORMAL | ITALIC | BOLD | UNDERLINE | DASHED ...).
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.tptp.platform.report.core.internal.IDFont |
|---|
BOLD, DASHED, ITALIC, LINE_STYLES, NORMAL, OVERLINE, STRIKE, UNDERLINE |
| Constructor Summary | |
|---|---|
DFont()
Deprecated. Creates a DFont with a null familly a null script a non valid size and a NORMAL style. |
|
DFont(IDFont font)
Deprecated. Creates a DFont copying values from given parameter. |
|
DFont(java.lang.String family,
java.lang.String script,
int size,
int style)
Deprecated. Creates a DFont. |
|
| Method Summary | |
|---|---|
void |
addStyle(int _style_mask)
Deprecated. Adds the given style to font's style. |
boolean |
equals(java.lang.Object o)
Deprecated. Returns true if the DFont of the object passed in parameters equals the DFont. |
java.lang.String |
getFamily()
Deprecated. Gets the family name of the DFont. |
java.lang.String |
getID()
Deprecated. |
java.lang.String |
getScript()
Deprecated. Gets the script name of the DFont. |
int |
getSize()
Deprecated. Gets the size of the DFont. |
java.lang.String |
getStringStyle()
Deprecated. Returns the style value of the DFont in an equivalent string value. |
static java.lang.String |
GetStringStyle(int style)
Deprecated. Returns the style value in an equivalent string value. |
int |
getStyle()
Deprecated. Gets the style of the DFont. |
boolean |
haveStyle(int _style_mask)
Deprecated. Checks if the font has one or more property style with a mask. |
static boolean |
HaveStyle(int _style,
int _mask)
Deprecated. Checks if the styke has one or more property. |
boolean |
isStyle(int _style_mask)
Deprecated. Checks if the font has the same style. |
static boolean |
IsStyle(int _style,
int _mask)
Deprecated. Checks if the style has a property. |
void |
removeStyle(int _style_mask)
Deprecated. Removes the given style from font's style. |
void |
setFamily(java.lang.String f)
Deprecated. Sets the Family name. |
void |
setScript(java.lang.String script)
Deprecated. Sets the script name of the DFont. |
void |
setSize(int size)
Deprecated. Sets the size of the DFont. |
void |
setStyle(int _style_mask)
Deprecated. Sets the font's style. |
void |
setStyle(java.lang.String s)
Deprecated. Sets the style of the font with a string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DFont(java.lang.String family,
java.lang.String script,
int size,
int style)
f - font family name (can be NULL)s - font script name (can be NULL)si - font size in pixelsst - font style (NORMAL | ITALIC | BOLD | UNDERLINE | DASHED). The use of
the binary operator '|' allows to combine different types.public DFont()
public DFont(IDFont font)
font - the font to copy.| Method Detail |
|---|
public static boolean IsStyle(int _style,
int _mask)
public static boolean HaveStyle(int _style,
int _mask)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isStyle(int _style_mask)
isStyle in interface IDFontpublic boolean haveStyle(int _style_mask)
haveStyle in interface IDFontpublic java.lang.String getFamily()
getFamily in interface IDFontpublic java.lang.String getScript()
getScript in interface IDFontpublic int getSize()
getSize in interface IDFontpublic int getStyle()
getStyle in interface IDFontpublic void addStyle(int _style_mask)
_style_mask - the styles (for example DFont.BOLD|DFont.UNDERLINE)public void removeStyle(int _style_mask)
_style_mask - the styles (for example DFont.BOLD|DFont.UNDERLINE)public void setStyle(int _style_mask)
setStyle in interface IDFont_style_mask - the styles (for example DFont.BOLD|DFont.UNDERLINE)public void setFamily(java.lang.String f)
setFamily in interface IDFontf - font family parameterpublic void setScript(java.lang.String script)
setScript in interface IDFontscript - font script namepublic void setSize(int size)
setSize in interface IDFontsize - font sizepublic void setStyle(java.lang.String s)
public java.lang.String getStringStyle()
setStyle(String)public static java.lang.String GetStringStyle(int style)
getStyle()public java.lang.String getID()
getID in interface IDFont
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||