| java.lang.Object org.deegree.crs.components.Axis
Axis | public class Axis (Code) | | The Axis class describe the orientation, unit and the name of a crs-axis.
author: Rutger Bezema author: last edited by: $Author:$ version: $Revision:$, $Date:$ |
Field Summary | |
final public static int | AO_BACK Axis is pointing BACK ( == -FRONT) e.g. | final public static int | AO_DOWN | final public static int | AO_EAST Axis is pointing EAST( == -WEST) the intersection of the equator with longitude 90°E. | final public static int | AO_FRONT Axis is pointing FRONT( == -BACK), e.g. | final public static int | AO_NORTH Axis is pointing NORTH ( == -SOUTH) e.g Polar axis positive northwards. | final public static int | AO_OTHER Axis is pointing in an OTHER direction, which is not specified. | final public static int | AO_PERPENDICULAR Axis is pointing PERPENDICULAR to the earth's surface, which is used for a vertical axis. | final public static int | AO_SOUTH | final public static int | AO_UP | final public static int | AO_WEST |
Constructor Summary | |
public | Axis(Unit units, String name, int orientation) Parameters: units - of this axis Parameters: name - of this axis (e.g. | public | Axis(Unit units, String name, String orientation) Parses the given orientation and creates a valid orientation of it's non-case-sensitive version. | public | Axis(String name, int orientation) An Axis with unit set to metre.
Parameters: name - of this axis (e.g. | public | Axis(String name, String orientation) Parses the given orientation and creates a valid orientation of it's non-case-sensitive version. |
AO_BACK | final public static int AO_BACK(Code) | | Axis is pointing BACK ( == -FRONT) e.g. the Axis through the intersection of the opposite of the Greenwich
meridian and equator.
|
AO_DOWN | final public static int AO_DOWN(Code) | | Axis is pointing DOWN ( == -UP)
|
AO_EAST | final public static int AO_EAST(Code) | | Axis is pointing EAST( == -WEST) the intersection of the equator with longitude 90°E.
|
AO_FRONT | final public static int AO_FRONT(Code) | | Axis is pointing FRONT( == -BACK), e.g. the Axis through the intersection of the Greenwich meridian and equator.
|
AO_NORTH | final public static int AO_NORTH(Code) | | Axis is pointing NORTH ( == -SOUTH) e.g Polar axis positive northwards.
|
AO_OTHER | final public static int AO_OTHER(Code) | | Axis is pointing in an OTHER direction, which is not specified.
|
AO_PERPENDICULAR | final public static int AO_PERPENDICULAR(Code) | | Axis is pointing PERPENDICULAR to the earth's surface, which is used for a vertical axis.
|
AO_SOUTH | final public static int AO_SOUTH(Code) | | Axis is pointing SOUTH ( == -NORTH )
|
AO_UP | final public static int AO_UP(Code) | | Axis is pointing UP ( == -DOWN ),
|
AO_WEST | final public static int AO_WEST(Code) | | Axis is pointing WEST( == -EAST)
|
Axis | public Axis(Unit units, String name, int orientation)(Code) | | Parameters: units - of this axis Parameters: name - of this axis (e.g. longitude...) Parameters: orientation - of the positive scale direction, one of Axis.AO*. If an unknown value is supplied AO_OTHER is assumed. |
Axis | public Axis(Unit units, String name, String orientation)(Code) | | Parses the given orientation and creates a valid orientation of it's non-case-sensitive version. If no conversion
was found,
Axis.AO_OTHER will be used.
Parameters: units - of the axis. Parameters: name - of the axis. Parameters: orientation - of the axis as a string for example north |
Axis | public Axis(String name, int orientation)(Code) | | An Axis with unit set to metre.
Parameters: name - of this axis (e.g. longitude...) Parameters: orientation - of the positive scale direction, one of Axis.AO*. If an unknown value is supplied AO_OTHER is assumed. |
Axis | public Axis(String name, String orientation)(Code) | | Parses the given orientation and creates a valid orientation of it's non-case-sensitive version. If no conversion
was found,
Axis.AO_OTHER will be used. This axis will have metres as it's unit.
Parameters: name - of the axis Parameters: orientation - of the axis as a string for example north |
getOrientation | final public int getOrientation()(Code) | | the orientation. |
getOrientationAsString | public String getOrientationAsString()(Code) | | an 'English' representation for the Axis Orientation, or Unknown if the given direction is not known. |
getUnits | final public Unit getUnits()(Code) | | the units. |
hashCode | public int hashCode()(Code) | | Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even
distribution and is relatively fast. It is created from field f as follows:
- boolean -- code = (f ? 0 : 1)
- byte, char, short, int -- code = (int)f
- long -- code = (int)(f ^ (f >>>32))
- float -- code = Float.floatToIntBits(f);
- double -- long l = Double.doubleToLongBits(f); code = (int)(l ^ (l >>> 32))
- all Objects, (where equals( ) calls equals( ) for this field) -- code = f.hashCode( )
- Array -- Apply above rules to each element
Combining the hash code(s) computed above: result = 37 * result + code;
(int) ( result >>> 32 ) ^ (int) result; See Also: java.lang.Object.hashCode |
|
|