Package org.tinfour.contour
Enum ContourRegion.ContourRegionType
- java.lang.Object
-
- java.lang.Enum<ContourRegion.ContourRegionType>
-
- org.tinfour.contour.ContourRegion.ContourRegionType
-
- All Implemented Interfaces:
Serializable,Comparable<ContourRegion.ContourRegionType>
- Enclosing class:
- ContourRegion
public static enum ContourRegion.ContourRegionType extends Enum<ContourRegion.ContourRegionType>
An enumeration that indicates the type of a contour region.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContourRegion.ContourRegionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ContourRegion.ContourRegionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Interior
public static final ContourRegion.ContourRegionType Interior
All contours lie entirely within the interior of the TIN and do not intersect its perimeter.
-
Perimeter
public static final ContourRegion.ContourRegionType Perimeter
At least one contour lies on the perimeter of the TIN. Note that primary regions are never enclosed by another region.
-
-
Method Detail
-
values
public static ContourRegion.ContourRegionType[] 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 (ContourRegion.ContourRegionType c : ContourRegion.ContourRegionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContourRegion.ContourRegionType 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
-
-