uk.co.keang.swingaddons
Enum Gesture.Direction

java.lang.Object
  extended by java.lang.Enum<Gesture.Direction>
      extended by uk.co.keang.swingaddons.Gesture.Direction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Gesture.Direction>
Enclosing class:
Gesture

public static enum Gesture.Direction
extends java.lang.Enum<Gesture.Direction>


Enum Constant Summary
BOTTOM_LEFT_TO_TOP_RIGHT
           
BOTTOM_RIGHT_TO_TOP_LEFT
           
DOWN
           
LEFT
           
RIGHT
           
TOP_LEFT_TO_BOTTOM_RIGHT
           
TOP_RIGHT_TO_BOTTOM_LEFT
           
UP
           
 
Method Summary
static Gesture.Direction getGesture(java.lang.String symbol)
          Gets the GESTURE associated with this arrow symbol
 java.lang.String getSymbol()
          Get the arrow symbol associated with this gesture
static boolean hasGesture(java.lang.String symbol)
          Tests to see if there is a GESTURE associated with this arrow symbol
static Gesture.Direction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Gesture.Direction[] 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

UP

public static final Gesture.Direction UP

DOWN

public static final Gesture.Direction DOWN

LEFT

public static final Gesture.Direction LEFT

RIGHT

public static final Gesture.Direction RIGHT

TOP_LEFT_TO_BOTTOM_RIGHT

public static final Gesture.Direction TOP_LEFT_TO_BOTTOM_RIGHT

TOP_RIGHT_TO_BOTTOM_LEFT

public static final Gesture.Direction TOP_RIGHT_TO_BOTTOM_LEFT

BOTTOM_LEFT_TO_TOP_RIGHT

public static final Gesture.Direction BOTTOM_LEFT_TO_TOP_RIGHT

BOTTOM_RIGHT_TO_TOP_LEFT

public static final Gesture.Direction BOTTOM_RIGHT_TO_TOP_LEFT
Method Detail

values

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

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

valueOf

public static Gesture.Direction 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

getSymbol

public java.lang.String getSymbol()
Get the arrow symbol associated with this gesture

Returns:
an arrow symbol

getGesture

public static Gesture.Direction getGesture(java.lang.String symbol)
Gets the GESTURE associated with this arrow symbol

Parameters:
symbol - the symbol to search for
Returns:
the GESTURE for this symbol or null if there isn't one
Throws:
java.lang.IllegalArgumentException - if there is no GESTURE for this symbol

hasGesture

public static boolean hasGesture(java.lang.String symbol)
Tests to see if there is a GESTURE associated with this arrow symbol

Parameters:
symbol - the symbol to search for
Returns:
true if there is a GESTURE for this symbol