org.deegree.geometry.primitive.segments
Enum CurveSegment.CurveSegmentType

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

public static enum CurveSegment.CurveSegmentType
extends Enum<CurveSegment.CurveSegmentType>

Convenience enum type for discriminating the different curve segment variants in switch statements.


Enum Constant Summary
ARC
          Segment is an Arc.
ARC_BY_BULGE
          Segment is an ArcByBulge.
ARC_BY_CENTER_POINT
          Segment is an ArcByCenterPoint.
ARC_STRING
          Segment is an ArcString.
ARC_STRING_BY_BULGE
          Segment is an ArcStringByBulge.
BEZIER
          Segment is a Bezier.
BSPLINE
          Segment is a BSpline.
CIRCLE
          Segment is a Circle.
CIRCLE_BY_CENTER_POINT
          Segment is a CircleByCenterPoint.
CLOTHOID
          Segment is a Clothoid.
CUBIC_SPLINE
          Segment is a CubicSpline.
GEODESIC
          Segment is a Geodesic.
GEODESIC_STRING
          Segment is a GeodesicString.
LINE_STRING_SEGMENT
          Segment is a LineStringSegment.
OFFSET_CURVE
          Segment is an OffsetCurve.
 
Method Summary
static CurveSegment.CurveSegmentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CurveSegment.CurveSegmentType[] 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

ARC

public static final CurveSegment.CurveSegmentType ARC
Segment is an Arc.


ARC_BY_BULGE

public static final CurveSegment.CurveSegmentType ARC_BY_BULGE
Segment is an ArcByBulge.


ARC_BY_CENTER_POINT

public static final CurveSegment.CurveSegmentType ARC_BY_CENTER_POINT
Segment is an ArcByCenterPoint.


ARC_STRING

public static final CurveSegment.CurveSegmentType ARC_STRING
Segment is an ArcString.


ARC_STRING_BY_BULGE

public static final CurveSegment.CurveSegmentType ARC_STRING_BY_BULGE
Segment is an ArcStringByBulge.


BEZIER

public static final CurveSegment.CurveSegmentType BEZIER
Segment is a Bezier.


BSPLINE

public static final CurveSegment.CurveSegmentType BSPLINE
Segment is a BSpline.


CIRCLE

public static final CurveSegment.CurveSegmentType CIRCLE
Segment is a Circle.


CIRCLE_BY_CENTER_POINT

public static final CurveSegment.CurveSegmentType CIRCLE_BY_CENTER_POINT
Segment is a CircleByCenterPoint.


CLOTHOID

public static final CurveSegment.CurveSegmentType CLOTHOID
Segment is a Clothoid.


CUBIC_SPLINE

public static final CurveSegment.CurveSegmentType CUBIC_SPLINE
Segment is a CubicSpline.


GEODESIC

public static final CurveSegment.CurveSegmentType GEODESIC
Segment is a Geodesic.


GEODESIC_STRING

public static final CurveSegment.CurveSegmentType GEODESIC_STRING
Segment is a GeodesicString.


LINE_STRING_SEGMENT

public static final CurveSegment.CurveSegmentType LINE_STRING_SEGMENT
Segment is a LineStringSegment.


OFFSET_CURVE

public static final CurveSegment.CurveSegmentType OFFSET_CURVE
Segment is an OffsetCurve.

Method Detail

values

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

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

valueOf

public static CurveSegment.CurveSegmentType 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.