| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.media.jai.EnumeratedParameter
org.geotools.cs.AxisOrientation
AxisDirection.
Orientation of axis. Some coordinate systems use non-standard orientations.
 For example, the first axis in South African grids usually points West,
 instead of East. This information is obviously relevant for algorithms
 converting South African grid coordinates into Lat/Long.
 
 The natural ordering for axis orientations is defined
 as (EAST-WEST), (NORTH-SOUTH), (UP-DOWN), (FUTURE-PAST) and OTHER, which is
 the ordering for a (x,y,z,t)
 coordinate system. This means that when an array of AxisOrientations
 is sorted using Arrays.sort(Object[]), EAST and WEST
 orientations will appear first. NORTH and SOUTH will be next, followed
 by UP and DOWN, etc.
 Care should be exercised if AxisOrientations are to be used as
 keys in a sorted map or elements in a sorted set, as
 AxisOrientation's natural ordering is inconsistent with equals.
 See Comparable, SortedMap or
 SortedSet for more information.
CS_AxisOrientationEnum, 
Serialized Form| Field Summary | |
 org.opengis.referencing.cs.AxisDirection | 
direction
Deprecated. The direction according new (GeoAPI) constants, or null if unknow.
  | 
static AxisOrientation | 
DOWN
Deprecated. Replaced by AxisDirection.DOWN. | 
static AxisOrientation | 
EAST
Deprecated. Replaced by AxisDirection.EAST. | 
static AxisOrientation | 
FUTURE
Deprecated. Replaced by AxisDirection.FUTURE. | 
static AxisOrientation | 
NORTH
Deprecated. Replaced by AxisDirection.NORTH. | 
static AxisOrientation | 
OTHER
Deprecated. Replaced by AxisDirection.OTHER. | 
static AxisOrientation | 
PAST
Deprecated. Replaced by AxisDirection.PAST. | 
static AxisOrientation | 
SOUTH
Deprecated. Replaced by AxisDirection.SOUTH. | 
static AxisOrientation | 
UP
Deprecated. Replaced by AxisDirection.UP. | 
static AxisOrientation | 
WEST
Deprecated. Replaced by AxisDirection.WEST. | 
| Method Summary | |
 AxisOrientation | 
absolute()
Deprecated. Returns the "absolute" orientation of this axis.  | 
 int | 
compareTo(java.lang.Object ao)
Deprecated. Compares this AxisOrientation with the specified
 orientation.   | 
static AxisOrientation | 
getEnum(int value)
Deprecated. Returns the enum for the specified value.  | 
static AxisOrientation | 
getEnum(java.lang.String name)
Deprecated. Returns the enum for the specified name.  | 
static AxisOrientation | 
getEnum(java.lang.String name,
        java.util.Locale locale)
Deprecated. Returns the enum for the specified localized name.  | 
 java.lang.String | 
getName(java.util.Locale locale)
Deprecated. Returns this enum's name in the specified locale.  | 
 AxisOrientation | 
inverse()
Deprecated. Returns the opposite orientation of this axis.  | 
| Methods inherited from class javax.media.jai.EnumeratedParameter | 
equals, getName, getValue, hashCode, toString | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final AxisOrientation OTHER
AxisDirection.OTHER.
CS_AxisOrientationEnum.CS_AO_Otherpublic static final AxisOrientation NORTH
AxisDirection.NORTH.
CS_AxisOrientationEnum.CS_AO_Northpublic static final AxisOrientation SOUTH
AxisDirection.SOUTH.
CS_AxisOrientationEnum.CS_AO_Southpublic static final AxisOrientation EAST
AxisDirection.EAST.
CS_AxisOrientationEnum.CS_AO_Eastpublic static final AxisOrientation WEST
AxisDirection.WEST.
CS_AxisOrientationEnum.CS_AO_Westpublic static final AxisOrientation UP
AxisDirection.UP.
CS_AxisOrientationEnum.CS_AO_Uppublic static final AxisOrientation DOWN
AxisDirection.DOWN.
CS_AxisOrientationEnum.CS_AO_Downpublic static final AxisOrientation FUTURE
AxisDirection.FUTURE.
public static final AxisOrientation PAST
AxisDirection.PAST.
public final org.opengis.referencing.cs.AxisDirection direction
null if unknow.
 This field is provided for interoperability with new GeoAPI interfaces.
| Method Detail | 
public static AxisOrientation getEnum(int value)
                               throws java.util.NoSuchElementException
CS_AxisOrientationEnum.
value - The enum value.
java.util.NoSuchElementException - if there is no enum for the specified value.public static AxisOrientation getEnum(java.lang.String name)
name - One of the constant values (NORTH, SOUTH, etc.)
java.util.NoSuchElementException - if there is no enum for the specified name.
public static AxisOrientation getEnum(java.lang.String name,
                                      java.util.Locale locale)
name - The localized name (e.g. "Nord", "Sud", "Est", "Ouest", etc.)locale - The locale, or null for the default locale.
java.util.NoSuchElementException - if there is no enum for the specified name.public java.lang.String getName(java.util.Locale locale)
locale - The locale, or null for the default locale.
public AxisOrientation inverse()
public AxisOrientation absolute()
Math.abs(int)
 method in that "negative" orientations (SOUTH,
 WEST, DOWN, PAST) are changed
 for their positive counterparts (NORTH, EAST,
 UP, FUTURE). More specifically, the
 following conversion table is applied.
 | Orientation | Absolute value | 
|---|---|
| NORTH | NORTH | 
| SOUTH | NORTH | 
| EAST | EAST | 
| WEST | EAST | 
| UP | UP | 
| DOWN | UP | 
| FUTURE | FUTURE | 
| PAST | FUTURE | 
| OTHER | OTHER | 
public int compareTo(java.lang.Object ao)
AxisOrientation with the specified
 orientation.  The natural ordering is defined as
 (EAST-WEST), (NORTH-SOUTH), (UP-DOWN), (FUTURE-PAST) and OTHER,
 which is the ordering for a
 (x,y,z,t) coordinate system.
 Two AxisOrientations that are along the same axis but with
 an opposite direction (e.g. EAST vs WEST) are considered equal by this
 method.
compareTo in interface java.lang.Comparableao - An AxisOrientation object to be compared with.
java.lang.ClassCastException - if ao is not an
         AxisOrientation object.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||