public static enum Area.Type extends Enum<Area.Type>
Enum Constant and Description |
---|
CIRCLE
Circle defined by central point and a radius (x, y, r).
|
MOC
Multi-Order Coverage map;
each array element contains 64-bit NUNIQ bit pattern equivalenced
to the double value.
|
POINT
Point defined by two coordinates (x, y).
|
POLYGON
Polygon or sequence of polygons defined by a list of vertices
(x1, y1, x2, y2, ..., xN, yN).
|
Modifier and Type | Method and Description |
---|---|
static Area.Type |
fromInt(int itype)
Retrieves an instance of this enum from its numeric code.
|
abstract boolean |
isLegalArrayLength(int n)
Indicates whether a given data array length can represent
a shape of this type.
|
static Area.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Area.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Area.Type POLYGON
public static final Area.Type CIRCLE
public static final Area.Type POINT
public static final Area.Type MOC
public static Area.Type[] values()
for (Area.Type c : Area.Type.values()) System.out.println(c);
public static Area.Type 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 abstract boolean isLegalArrayLength(int n)
n
- length of candidate arraypublic static Area.Type fromInt(int itype)
itype
- type ordinalCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.