|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.FontFace
public final class FontFace
FontFace is a convenience class that can be used to create tables of fonts for use in an application.
| Constructor Summary | |
|---|---|
FontFace(String fontName,
boolean isBold,
boolean isItalic)
Create a new font face. |
|
FontFace(String fontName,
int style)
Create a new font face. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
String |
getName()
Get the (family) name of the font. |
int |
getStyle()
Get the font style, as defined in the AWT Font class, either Font.PLAIN or a combination of Font.BOLD and Font.ITALIC. |
int |
hashCode()
|
boolean |
isBold()
Is the font bold or normal. |
boolean |
isItalic()
Is the font italicised or normal. |
String |
toString()
Get name of the font face which contains the name of the font followed by "Bold" for bold fonts and "Italic" for fonts with an italic style. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FontFace(String fontName,
boolean isBold,
boolean isItalic)
fontName - the family name of the font.isBold - is the font bold.isItalic - is the font italicised.
public FontFace(String fontName,
int style)
fontName - the family name of the font.style - a java.awt.Font constant describing whether the font is
normal, bold and/or italicised.| Method Detail |
|---|
public String getName()
public boolean isBold()
public boolean isItalic()
public int getStyle()
public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||