|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HAlign> net.sourceforge.jeuclid.elements.support.attributes.HAlign
public enum HAlign
Enum Constant Summary | |
---|---|
CENTER
Center align. |
|
LEFT
Left align. |
|
RIGHT
Right align. |
Field Summary | |
---|---|
static String |
ALIGN_CENTER
constant for center align. |
static String |
ALIGN_RIGHT
constant for right align. |
Method Summary | |
---|---|
float |
getHAlignOffset(LayoutStage stage,
LayoutInfo info,
float width)
Retrieve H-Align offset. |
static HAlign |
parseString(String alignString,
HAlign defaultt)
Parse an Alignment String. |
static HAlign |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HAlign[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, 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 HAlign LEFT
public static final HAlign CENTER
public static final HAlign RIGHT
Field Detail |
---|
public static final String ALIGN_CENTER
public static final String ALIGN_RIGHT
Method Detail |
---|
public static HAlign[] values()
for (HAlign c : HAlign.values()) System.out.println(c);
public static HAlign valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static HAlign parseString(String alignString, HAlign defaultt)
alignString
- String to parse.defaultt
- default value.
public float getHAlignOffset(LayoutStage stage, LayoutInfo info, float width)
stage
- current Layout Stageinfo
- Info object to examinewidth
- Total width
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |