Package org.tinfour.contour
Enum Contour.ContourType
- java.lang.Object
-
- java.lang.Enum<Contour.ContourType>
-
- org.tinfour.contour.Contour.ContourType
-
- All Implemented Interfaces:
Serializable,Comparable<Contour.ContourType>
- Enclosing class:
- Contour
public static enum Contour.ContourType extends Enum<Contour.ContourType>
An enumeration that indicates the type of a contour
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Contour.ContourTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Contour.ContourType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Interior
public static final Contour.ContourType Interior
Contour lies entirely in the interior of the TIN with the possible exception of the two end points which may lie on perimeter edges. Both the left and right index of the contour will be defined (zero or greater).
-
Boundary
public static final Contour.ContourType Boundary
Contour is lies entirely on the boundary of the TIN.
-
-
Method Detail
-
values
public static Contour.ContourType[] 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 (Contour.ContourType c : Contour.ContourType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Contour.ContourType 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 nameNullPointerException- if the argument is null
-
-