public enum GAlign extends Enum<GAlign>
Enum Constant and Description |
---|
BOTTOM |
CENTER |
INVALID |
JUSTIFY |
LEFT |
MIDDLE |
RIGHT |
TOP |
Modifier and Type | Method and Description |
---|---|
String |
getDesc()
Get the description of this alignment
|
static GAlign |
getFromID(int id)
Get an alignment based on its ID number.
|
static GAlign |
getFromText(String text)
Get an alignment based on its alignment text.
|
int |
getID()
Get the id number associated with this alignment
|
String |
getTextID()
Get the text ID associated with this alignment.
|
boolean |
isHorzAlign()
Is this a horizontal alignment constant?
|
boolean |
isVertAlign()
Is this a vertical alignment constant?
|
String |
toString()
Get the alignment text.
|
static GAlign |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GAlign INVALID
public static final GAlign LEFT
public static final GAlign CENTER
public static final GAlign RIGHT
public static final GAlign JUSTIFY
public static final GAlign TOP
public static final GAlign MIDDLE
public static final GAlign BOTTOM
public static GAlign[] values()
for (GAlign c : GAlign.values()) System.out.println(c);
public static GAlign valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static GAlign getFromID(int id)
id
- the id number for this alignment.public static GAlign getFromText(String text)
id
- the id number for this alignment.public int getID()
public String getTextID()
public String getDesc()
public boolean isHorzAlign()
public boolean isVertAlign()
Processing library G4P by Peter Lager. (C) 2012