org.shapelogic.imageprocessing
Enum GeometricType

java.lang.Object
  extended by java.lang.Enum<GeometricType>
      extended by org.shapelogic.imageprocessing.GeometricType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GeometricType>, OHInterface

public enum GeometricType
extends java.lang.Enum<GeometricType>
implements OHInterface

Not sure if I should just reuse PixelType.

Author:
Sami Badawi

Enum Constant Summary
ARCH
           
BACKGROUND_POINT
           
CIRCLE
           
NORMAL_LINE
           
PIXEL_BORDER
           
PIXEL_EXTRA_NEIGHBOR
           
PIXEL_FOREGROUND_UNKNOWN
           
PIXEL_JUNCTION
           
PIXEL_L_CORNER
           
PIXEL_LINE_END
           
PIXEL_ON_LINE
           
PIXEL_SINGLE_POINT
           
PIXEL_SOLID
           
PIXEL_V_CORNER
           
S_SHAPE
           
SPIRAL
           
STRAIGHT
           
T_JUNCTION
           
WEAVE
           
Y_JUNCTION
           
 
Field Summary
 int id
           
 
Method Summary
 java.lang.String getOhName()
           
static GeometricType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GeometricType[] 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

BACKGROUND_POINT

public static final GeometricType BACKGROUND_POINT

T_JUNCTION

public static final GeometricType T_JUNCTION

Y_JUNCTION

public static final GeometricType Y_JUNCTION

PIXEL_LINE_END

public static final GeometricType PIXEL_LINE_END

PIXEL_SINGLE_POINT

public static final GeometricType PIXEL_SINGLE_POINT

PIXEL_SOLID

public static final GeometricType PIXEL_SOLID

PIXEL_EXTRA_NEIGHBOR

public static final GeometricType PIXEL_EXTRA_NEIGHBOR

PIXEL_ON_LINE

public static final GeometricType PIXEL_ON_LINE

PIXEL_BORDER

public static final GeometricType PIXEL_BORDER

PIXEL_JUNCTION

public static final GeometricType PIXEL_JUNCTION

PIXEL_L_CORNER

public static final GeometricType PIXEL_L_CORNER

PIXEL_V_CORNER

public static final GeometricType PIXEL_V_CORNER

PIXEL_FOREGROUND_UNKNOWN

public static final GeometricType PIXEL_FOREGROUND_UNKNOWN

NORMAL_LINE

public static final GeometricType NORMAL_LINE

CIRCLE

public static final GeometricType CIRCLE

ARCH

public static final GeometricType ARCH

SPIRAL

public static final GeometricType SPIRAL

S_SHAPE

public static final GeometricType S_SHAPE

STRAIGHT

public static final GeometricType STRAIGHT

WEAVE

public static final GeometricType WEAVE
Field Detail

id

public final int id
Method Detail

values

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

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

valueOf

public static GeometricType 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

getOhName

public java.lang.String getOhName()
Specified by:
getOhName in interface OHInterface


Copyright © 2009. All Rights Reserved.