uk.co.keang.hex.gui
Enum HexBtnUtilities.HexOrientation

java.lang.Object
  extended by java.lang.Enum<HexBtnUtilities.HexOrientation>
      extended by uk.co.keang.hex.gui.HexBtnUtilities.HexOrientation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HexBtnUtilities.HexOrientation>
Enclosing class:
HexBtnUtilities

public static enum HexBtnUtilities.HexOrientation
extends java.lang.Enum<HexBtnUtilities.HexOrientation>


Enum Constant Summary
HORIZONTAL_SIDES
           
VERTICAL_SIDES
           
 
Method Summary
(package private) abstract  java.awt.Polygon createHexagon(int[] hexA, int[] hexB)
           
(package private) abstract  java.awt.Polygon[][] getHighLights(java.awt.Polygon h, java.awt.Polygon b)
           
(package private) abstract  int sizeOverPoints(int w, int h)
           
(package private) abstract  int sizeOverSides(int w, int h)
           
static HexBtnUtilities.HexOrientation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HexBtnUtilities.HexOrientation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
(package private) abstract  java.awt.Rectangle viewRect(int[] x, int[] y)
           
 
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

VERTICAL_SIDES

public static final HexBtnUtilities.HexOrientation VERTICAL_SIDES

HORIZONTAL_SIDES

public static final HexBtnUtilities.HexOrientation HORIZONTAL_SIDES
Method Detail

values

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

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

valueOf

public static HexBtnUtilities.HexOrientation 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

sizeOverPoints

abstract int sizeOverPoints(int w,
                            int h)

sizeOverSides

abstract int sizeOverSides(int w,
                           int h)

createHexagon

abstract java.awt.Polygon createHexagon(int[] hexA,
                                        int[] hexB)

viewRect

abstract java.awt.Rectangle viewRect(int[] x,
                                     int[] y)

getHighLights

abstract java.awt.Polygon[][] getHighLights(java.awt.Polygon h,
                                            java.awt.Polygon b)