ch.sahits.game.graphic.layout
Enum ECellPosition

java.lang.Object
  extended by java.lang.Enum<ECellPosition>
      extended by 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

Enum Constant Summary
BOTTOM
           
BOTTOM_LEFT
           
BOTTOM_RIGHT
           
CENTER
           
LEFT
           
RIGHT
           
TOP
           
TOP_LEFT
           
TOP_RIGHT
           
 
Field Summary
private  float positionX
           
private  float positionY
           
 
Method Summary
(package private)  float getPositionX()
           
(package private)  float getPositionY()
           
static ECellPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ECellPosition[] 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

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
Field Detail

positionX

private final float positionX

positionY

private final float positionY
Method Detail

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.