|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Drawing.Alignment>
edu.rit.draw.Drawing.Alignment
public static enum Drawing.Alignment
Enumeration Drawing.Alignment specifies how a Drawing's items are to be aligned within the drawing's display region.
| Enum Constant Summary | |
|---|---|
CENTER
Align the center of the drawing items to the center point of the display region, inset by the border. |
|
EAST
Align the east middle of the drawing items to the east middle point of the display region, inset by the border. |
|
NONE
No alignment. |
|
NORTH
Align the north middle of the drawing items to the north middle point of the display region, inset by the border. |
|
NORTHEAST
Align the northeast corner of the drawing items to the northeast corner point of the display region, inset by the border. |
|
NORTHWEST
Align the northwest corner of the drawing items to the northwest corner point of the display region, inset by the border. |
|
SOUTH
Align the south middle of the drawing items to the south middle point of the display region, inset by the border. |
|
SOUTHEAST
Align the southeast corner of the drawing items to the southeast corner point of the display region, inset by the border. |
|
SOUTHWEST
Align the southwest corner of the drawing items to the southwest corner point of the display region, inset by the border. |
|
WEST
Align the west middle of the drawing items to the west middle point of the display region, inset by the border. |
|
| Method Summary | |
|---|---|
static Drawing.Alignment |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Drawing.Alignment[] |
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 Drawing.Alignment NONE
public static final Drawing.Alignment NORTHWEST
public static final Drawing.Alignment NORTH
public static final Drawing.Alignment NORTHEAST
public static final Drawing.Alignment WEST
public static final Drawing.Alignment CENTER
public static final Drawing.Alignment EAST
public static final Drawing.Alignment SOUTHWEST
public static final Drawing.Alignment SOUTH
public static final Drawing.Alignment SOUTHEAST
| Method Detail |
|---|
public static Drawing.Alignment[] values()
for (Drawing.Alignment c : Drawing.Alignment.values()) System.out.println(c);
public static Drawing.Alignment 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||