org.shapelogic.util
Enum LineType

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

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

Enum for with types for Lines. This could change quite a bit.

Author:
Sami Badawi

Enum Constant Summary
CONCAVE_ARCH
          Means that this is an arch and that it is concave compared to 1 or both neighbor points, meaning they are on the same side of the line as the arch
CURVE_ARCH
          only on one side of a line between the start and end point
INFLECTION_POINT
          This line contains an inflection point, meaning the end points have different signed direction changes
STRAIGHT
          Not completely straight
STRAIGHT_MULTI_LINE
          For multi lines, if 2 lines are added together
UNKNOWN
           
WAVE
          On both sides of a line between the start and end point this is the rest category for lines
WHOLE_CIRCLE
          Multi lines or polygon, is a circle
 
Method Summary
 java.lang.String getOhName()
           
static LineType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LineType[] 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

UNKNOWN

public static final LineType UNKNOWN

STRAIGHT

public static final LineType STRAIGHT
Not completely straight


CURVE_ARCH

public static final LineType CURVE_ARCH
only on one side of a line between the start and end point


WAVE

public static final LineType WAVE
On both sides of a line between the start and end point this is the rest category for lines


CONCAVE_ARCH

public static final LineType CONCAVE_ARCH
Means that this is an arch and that it is concave compared to 1 or both neighbor points, meaning they are on the same side of the line as the arch


INFLECTION_POINT

public static final LineType INFLECTION_POINT
This line contains an inflection point, meaning the end points have different signed direction changes


STRAIGHT_MULTI_LINE

public static final LineType STRAIGHT_MULTI_LINE
For multi lines, if 2 lines are added together


WHOLE_CIRCLE

public static final LineType WHOLE_CIRCLE
Multi lines or polygon, is a circle

Method Detail

values

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

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

valueOf

public static LineType 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.