|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Region>
com.guiseframework.component.layout.Region
public enum Region
Indicates a region of a larger area in internationalized relative terms.
| Enum Constant Summary | |
|---|---|
CENTER
In the center of the area. |
|
LINE_END
At the end of a line; "right" in left-to-right, top-to-botom orientation. |
|
LINE_START
At the beginning of a line; "left" in left-to-right, top-to-botom orientation. |
|
PAGE_END
At the end of a page; "bottom" in left-to-right, top-to-botom orientation. |
|
PAGE_START
At the beginning of a page; "top" in left-to-right, top-to-botom orientation. |
|
| Field Summary | |
|---|---|
static int |
FLOW_REGION_COUNT
The number of regions for each of the the line and page flows. |
protected static Region[][][] |
REGIONS
The three regions for each axis/direction combination. |
| Method Summary | |
|---|---|
static Region |
getRegion(Orientation orientation,
Flow flow,
int regionIndex)
Determines the corresponding region for an orientation flow and absolute region number. |
static Region |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Region[] |
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 Region LINE_START
public static final Region LINE_END
public static final Region PAGE_START
public static final Region PAGE_END
public static final Region CENTER
| Field Detail |
|---|
public static final int FLOW_REGION_COUNT
protected static final Region[][][] REGIONS
| Method Detail |
|---|
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region 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 name
java.lang.NullPointerException - if the argument is null
public static Region getRegion(Orientation orientation,
Flow flow,
int regionIndex)
2 will yield PAGE_END,
while a right-to-left, top-to-bottom line flow of index 2 will yield LINE_START.
orientation - The component orientation.flow - The flow (line or page).regionIndex - The absolute region index (0, 1, or 2) from the upper left-hand corner.
java.lang.IllegalArgumentException - if the given region index is less than 0 or greater than 2.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||