|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgame.JGFont
public class JGFont
A generic font specification for fonts on the different platforms. It is based on the JRE platform, other platforms should do their best to translate it to something equivalent or use sensible defaults if there is nothing comparable.
Field Summary | |
---|---|
static int |
BOLD
|
java.lang.Object |
impl
Optional object that represents the font on a particular platform. |
static int |
ITALIC
|
java.lang.String |
name
The font name can be a logical font name or a font face name. |
static int |
PLAIN
|
double |
size
Font size is effectively pixel height. |
int |
style
The style is an integer bitmask that may be PLAIN, or a bitwise union of BOLD and/or ITALIC (for example, ITALIC or BOLD|ITALIC). |
Constructor Summary | |
---|---|
JGFont(java.lang.String name,
int style,
double size)
Creates a new Font from the specified name, style and point size. |
Method Summary | |
---|---|
int |
getSize()
|
double |
getSize2D()
|
int |
getStyle()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PLAIN
public static final int BOLD
public static final int ITALIC
public java.lang.String name
public int style
public double size
public java.lang.Object impl
Constructor Detail |
---|
public JGFont(java.lang.String name, int style, double size)
name
- the font namestyle
- - the style constant for the Fontsize
- - the point size of the FontMethod Detail |
---|
public int getSize()
public double getSize2D()
public int getStyle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |