org.diamondspin
Enum DSUserCenteredEngine.UserSide
java.lang.Object
java.lang.Enum<DSUserCenteredEngine.UserSide>
org.diamondspin.DSUserCenteredEngine.UserSide
- All Implemented Interfaces:
- Serializable, Comparable<DSUserCenteredEngine.UserSide>
- Enclosing class:
- DSUserCenteredEngine
public static enum DSUserCenteredEngine.UserSide
- extends Enum<DSUserCenteredEngine.UserSide>
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
angle
public final int angle
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.