org.diamondspin
Enum DSUserCenteredEngine.UserSide

java.lang.Object
  extended by java.lang.Enum<DSUserCenteredEngine.UserSide>
      extended by org.diamondspin.DSUserCenteredEngine.UserSide
All Implemented Interfaces:
Serializable, Comparable<DSUserCenteredEngine.UserSide>
Enclosing class:
DSUserCenteredEngine

public static enum DSUserCenteredEngine.UserSide
extends Enum<DSUserCenteredEngine.UserSide>


Enum Constant Summary
EAST
           
NORTH
           
SOUTH
           
WEST
           
 
Field Summary
 int angle
           
 
Method Summary
 int getAngle()
           
 double getAngleRadian()
           
 int getOppositeAngle()
           
 DSUserCenteredEngine.UserSide getOppositeSide()
           
 Point2D.Double getScreenPoint()
           
 DSUserCenteredEngine.UserSide getSideOnTheLeft()
           
 DSUserCenteredEngine.UserSide getSideOnTheRight()
           
static DSUserCenteredEngine.UserSide valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DSUserCenteredEngine.UserSide[] 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

NORTH

public static final DSUserCenteredEngine.UserSide NORTH

SOUTH

public static final DSUserCenteredEngine.UserSide SOUTH

EAST

public static final DSUserCenteredEngine.UserSide EAST

WEST

public static final DSUserCenteredEngine.UserSide WEST
Field Detail

angle

public final int angle
Method Detail

values

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

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

valueOf

public static DSUserCenteredEngine.UserSide 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

getAngle

public int getAngle()

getAngleRadian

public double getAngleRadian()

getScreenPoint

public Point2D.Double getScreenPoint()

getOppositeAngle

public int getOppositeAngle()

getSideOnTheRight

public DSUserCenteredEngine.UserSide getSideOnTheRight()

getSideOnTheLeft

public DSUserCenteredEngine.UserSide getSideOnTheLeft()

getOppositeSide

public DSUserCenteredEngine.UserSide getOppositeSide()


Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.