org.deegree.geometry.primitive
Enum Curve.CurveType

java.lang.Object
  extended by java.lang.Enum<Curve.CurveType>
      extended by org.deegree.geometry.primitive.Curve.CurveType
All Implemented Interfaces:
Serializable, Comparable<Curve.CurveType>
Enclosing interface:
Curve

public static enum Curve.CurveType
extends Enum<Curve.CurveType>

Convenience enum type for discriminating the different curve variants.


Enum Constant Summary
CompositeCurve
          Curve composited from multiple base curves.
Curve
          Generic curve that consists of an arbitrary number of segments.
LineString
          Curve that consists of a single segment with linear interpolation.
OrientableCurve
          Curve that wraps a base curve with additional orientation flag.
Ring
          A Ring consists of a sequence of curves connected in a cycle
 
Method Summary
static Curve.CurveType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Curve.CurveType[] 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

Curve

public static final Curve.CurveType Curve
Generic curve that consists of an arbitrary number of segments.


LineString

public static final Curve.CurveType LineString
Curve that consists of a single segment with linear interpolation.


OrientableCurve

public static final Curve.CurveType OrientableCurve
Curve that wraps a base curve with additional orientation flag.


CompositeCurve

public static final Curve.CurveType CompositeCurve
Curve composited from multiple base curves.


Ring

public static final Curve.CurveType Ring
A Ring consists of a sequence of curves connected in a cycle

Method Detail

values

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

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

valueOf

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


Copyright © 2011. All Rights Reserved.