public enum EnumPolygon extends Enum<EnumPolygon>
Enum Constant and Description |
---|
CONCAVE
Well formed polygon (not degenerated, nor crossing), and concave
|
CONVEX
Well formed polygon (not degenerated, nor crossing), and convex
|
CROSSING_BORDER
Polygon with crossing border
|
DEGENERATED
Degenerated Polygon : area is near zero
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Getter for the enumerate name.
|
boolean |
isWellFormed()
A well formed polygon is CONCAVE or CONVEX
|
static EnumPolygon |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumPolygon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumPolygon DEGENERATED
public static final EnumPolygon CROSSING_BORDER
public static final EnumPolygon CONVEX
public static final EnumPolygon CONCAVE
public static EnumPolygon[] values()
for (EnumPolygon c : EnumPolygon.values()) System.out.println(c);
public static EnumPolygon valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public boolean isWellFormed()
Copyright © 2019 CNES. All rights reserved.