ecologylab.projection
Enum Projection.RotationConstraintMode
java.lang.Object
java.lang.Enum<Projection.RotationConstraintMode>
ecologylab.projection.Projection.RotationConstraintMode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Projection.RotationConstraintMode>
- Enclosing class:
- Projection
public static enum Projection.RotationConstraintMode
- extends java.lang.Enum<Projection.RotationConstraintMode>
|
Enum Constant Summary |
ANCHOR_POINTS
Indicates that the virtual world should be rotated so that it's defined verticies match the real world ones,
scaling the virtual world so that it will fit between the points. |
CARDINAL_DIRECTIONS
Indicates that the virtual world rectangle is to be overlaid parallel to the cardinal directions, so that the
upper-left coordinate is the northwestern-most coordinate and the lower-right is the southeastern-most. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CARDINAL_DIRECTIONS
public static final Projection.RotationConstraintMode CARDINAL_DIRECTIONS
- Indicates that the virtual world rectangle is to be overlaid parallel to the cardinal directions, so that the
upper-left coordinate is the northwestern-most coordinate and the lower-right is the southeastern-most. This
mode places the physical world coordinates along the edges of the projection, most likely NOT lining up the
corners (unless the physical world coordinates, when used to define a rectangle, do so with the same aspect
ratio as the virtual world.
ANCHOR_POINTS
public static final Projection.RotationConstraintMode ANCHOR_POINTS
- Indicates that the virtual world should be rotated so that it's defined verticies match the real world ones,
scaling the virtual world so that it will fit between the points.
values
public static final Projection.RotationConstraintMode[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Projection.RotationConstraintMode c : Projection.RotationConstraintMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Projection.RotationConstraintMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name