ch.sahits.game.graphic.layout
Enum ECellPosition
java.lang.Object
java.lang.Enum<ECellPosition>
ch.sahits.game.graphic.layout.ECellPosition
- All Implemented Interfaces:
- Serializable, Comparable<ECellPosition>
public enum ECellPosition
- extends Enum<ECellPosition>
Enumeration of the positions an element can take inside a
cell in a MaximalGridLayout.
- Author:
- Andi Hotz, (c) Sahits GmbH, 2011
Created on May 27, 2011
- See Also:
MaximalGridLayoutConstraints
TOP_LEFT
public static final ECellPosition TOP_LEFT
TOP
public static final ECellPosition TOP
TOP_RIGHT
public static final ECellPosition TOP_RIGHT
LEFT
public static final ECellPosition LEFT
CENTER
public static final ECellPosition CENTER
RIGHT
public static final ECellPosition RIGHT
BOTTOM_LEFT
public static final ECellPosition BOTTOM_LEFT
BOTTOM
public static final ECellPosition BOTTOM
BOTTOM_RIGHT
public static final ECellPosition BOTTOM_RIGHT
positionX
private final float positionX
positionY
private final float positionY
values
public static ECellPosition[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ECellPosition c : ECellPosition.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ECellPosition valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getPositionX
float getPositionX()
getPositionY
float getPositionY()
Copyright © 2011 Sahits GmbH. All Rights Reserved.