|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Font>
de.rico.engine.enums.Font
public enum Font
This enumeration contains the possible fonts for text rendering
Enum Constant Summary | |
---|---|
HELVETICA_10
|
|
HELVETICA_12
|
|
HELVETICA_18
|
|
TIMES_ROMAN_10
|
|
TIMES_ROMAN_24
|
Method Summary | |
---|---|
int |
getGLUTFontConstant()
Returns the OpenGL constant of the font. |
int |
getHeight()
Returns the pixel height of the font. |
static Font |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Font[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Font HELVETICA_10
public static final Font HELVETICA_12
public static final Font HELVETICA_18
public static final Font TIMES_ROMAN_10
public static final Font TIMES_ROMAN_24
Method Detail |
---|
public static final Font[] values()
for(Font c : Font.values()) System.out.println(c);
public static Font valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getGLUTFontConstant()
public int getHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |