de.erichseifert.gral
Enum DrawableConstants.Location

java.lang.Object
  extended by java.lang.Enum<DrawableConstants.Location>
      extended by de.erichseifert.gral.DrawableConstants.Location
All Implemented Interfaces:
Serializable, Comparable<DrawableConstants.Location>
Enclosing interface:
DrawableConstants

public static enum DrawableConstants.Location
extends Enum<DrawableConstants.Location>

Indicates the location of a Drawable.


Enum Constant Summary
CENTER
          Central location.
EAST
          Eastern location.
NORTH
          Northern location.
NORTH_EAST
          North-eastern location.
NORTH_WEST
          North-western location.
SOUTH
          Southern location.
SOUTH_EAST
          South-eastern location.
SOUTH_WEST
          South-western location.
WEST
          Western location.
 
Method Summary
 double getAlignmentH()
          Returns the horizontal alignment as a double value.
 double getAlignmentV()
          Returns the vertical alignment as a double value.
static DrawableConstants.Location valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DrawableConstants.Location[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CENTER

public static final DrawableConstants.Location CENTER
Central location.


NORTH

public static final DrawableConstants.Location NORTH
Northern location.


NORTH_EAST

public static final DrawableConstants.Location NORTH_EAST
North-eastern location.


EAST

public static final DrawableConstants.Location EAST
Eastern location.


SOUTH_EAST

public static final DrawableConstants.Location SOUTH_EAST
South-eastern location.


SOUTH

public static final DrawableConstants.Location SOUTH
Southern location.


SOUTH_WEST

public static final DrawableConstants.Location SOUTH_WEST
South-western location.


WEST

public static final DrawableConstants.Location WEST
Western location.


NORTH_WEST

public static final DrawableConstants.Location NORTH_WEST
North-western location.

Method Detail

values

public static DrawableConstants.Location[] 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 (DrawableConstants.Location c : DrawableConstants.Location.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DrawableConstants.Location 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

getAlignmentH

public double getAlignmentH()
Returns the horizontal alignment as a double value.

Returns:
horizontal alignment

getAlignmentV

public double getAlignmentV()
Returns the vertical alignment as a double value.

Returns:
vertical alignment


Copyright © 2009-2010. All Rights Reserved.