net.sf.latexdraw.glib.models.interfaces
Enum IShape.Position

java.lang.Object
  extended by java.lang.Enum<IShape.Position>
      extended by net.sf.latexdraw.glib.models.interfaces.IShape.Position
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IShape.Position>
Enclosing interface:
IShape

public static enum IShape.Position
extends java.lang.Enum<IShape.Position>

The different cardinal points.


Enum Constant Summary
EAST
           
NE
           
NORTH
           
NW
           
SE
           
SOUTH
           
SW
           
WEST
           
 
Method Summary
abstract  IShape.Position getOpposite()
           
 boolean isEast()
           
 boolean isNorth()
           
 boolean isSouth()
           
 boolean isWest()
           
static IShape.Position valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IShape.Position[] 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 IShape.Position NORTH

SOUTH

public static final IShape.Position SOUTH

EAST

public static final IShape.Position EAST

WEST

public static final IShape.Position WEST

NE

public static final IShape.Position NE

NW

public static final IShape.Position NW

SE

public static final IShape.Position SE

SW

public static final IShape.Position SW
Method Detail

values

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

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

valueOf

public static IShape.Position valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isSouth

public boolean isSouth()
Returns:
True if the given position is south oriented.
Since:
3.0

isNorth

public boolean isNorth()
Returns:
True if the given position is north oriented.
Since:
3.0

isEast

public boolean isEast()
Returns:
True if the given position is east oriented.
Since:
3.0

isWest

public boolean isWest()
Returns:
True if the given position is west oriented.
Since:
3.0

getOpposite

public abstract IShape.Position getOpposite()
Returns:
The opposite position of the current position.
Since:
3.0