|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.gui.AgoFontIdentifier
The AgoFontIdentifier is a representation of a font for use with the SilverStream controls. The AgoFontIdentifier specifies the font's name, style, and point size.
Field Summary | |
static int |
BOLD
Bold text style. |
static int |
ITALIC
Italic text style. |
static int |
PLAIN
Plain text style. |
Constructor Summary | |
AgoFontIdentifier(AgoFontIdentifier fontidentifier)
AgoFontIdentifier constructor. |
|
AgoFontIdentifier(Font font)
AgoFontIdentifier constructor. |
|
AgoFontIdentifier(String name,
int style,
int size)
AgoFontIdentifier constructor. |
Method Summary | |
Object |
clone()
Clone method. |
boolean |
equals(Object object)
Determine whether another object (presumably, another FontInstance) is the same as this one. |
String |
getName()
Get the font name. |
int |
getSize()
Returns the font size. |
int |
getStyle()
Returns the font style. |
int |
hashCode()
Return the hash code. |
void |
scale(int delta,
int minimum,
int maximum)
Scale the font. |
void |
setName(String name)
Set the font name. |
void |
setSize(int size)
Sets the font point size. |
void |
setStyle(int style)
Sets the AgoFontIdentifier's font style. |
String |
toString()
Convert to a string. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int PLAIN
public static final int BOLD
public static final int ITALIC
Constructor Detail |
public AgoFontIdentifier(String name, int style, int size)
The AgoFontIdentifier object consists of three parts: a font name, a font style and a font size.
name
- specifies the font name. At runtime, Java translates this value to the appropriate font installed on the system.
These are the valid values:Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, Zapfdingbats
style
- specifies the font style which can be one of these values:AgoFontIdentifier.PLAIN AgoFontIdentifier.BOLD AgoFontIdentifier.ITALIC AgoFontIdentifier.BOLD + AgoFontIdentifier.ITALIC
size
- an integer that specifies the point size.public AgoFontIdentifier(Font font)
public AgoFontIdentifier(AgoFontIdentifier fontidentifier)
Method Detail |
public String getName()
Returns the font name which can be: Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, Zapfdingbats.
The following code fragment illustrates how to use the getName() method for AgoFontIdentifier.
String fontname; fontname = fontid.getName();see #setName(String)
public void setName(String name)
AgoFontIdentifier.getName()
public int getStyle()
The style can be one of these values:
AgoFontIdentifier.PLAIN AgoFontIdentifier.BOLD AgoFontIdentifier.ITALIC AgoFontIdentifier.BOLD + AgoFontIdentifier.ITALIC
The following code fragment illustrates how to use the getStyle() method for AgoFontIdentifier.
int fontstyle; fontstyle = fontid.getStyle();
AgoFontIdentifier.setStyle(int)
public void setStyle(int style)
AgoFontIdentifier.PLAIN} AgoFontIdentifier.BOLD} AgoFontIdentifier.ITALIC} AgoFontIdentifier.BOLD + AgoFontIdentifier.ITALIC
AgoFontIdentifier.getStyle()
public int getSize()
It can be any integer.
The following code fragment illustrates how to use the getSize() method for AgoFontIdentifier.
int fontsize; fontsize = fontid.getSize();
AgoFontIdentifier.setSize(int)
public void setSize(int size)
AgoFontIdentifier.getSize()
public void scale(int delta, int minimum, int maximum)
public int hashCode()
public boolean equals(Object object)
public Object clone()
public String toString()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |