com.oziexplorer
Class UserGridRef
java.lang.Object
com.oziexplorer.Position
com.oziexplorer.GridRef
com.oziexplorer.UserGridRef
public class UserGridRef
- extends GridRef
This class provides for grid references in user-specified coordinate systems.
Each reference is associated with a UserGridRef
object that defines
the coordinate system for the reference.
Copyright 2011 Alan Burlison, . All rights reserved.
Use is subject to license terms, see
LICENSE.txt.
Constructor Summary |
UserGridRef(String datum,
String zone,
double easting,
double northing)
Create a new user grid reference in for the default user grid with the
given zone , easting and northing . |
UserGridRef(UserGridDef userGridDef,
String datum,
String zone,
double easting,
double northing)
Create a new user grid reference for the given UserGridDef ,
grid , zone , easting and
northing . |
Method Summary |
boolean |
equals(Object that)
Test for object equality. |
int |
hashCode()
Return the hash code for this object. |
userGridDef
protected final UserGridDef userGridDef
- The user grid used by this reference.
defaultUserGridDef
protected static UserGridDef defaultUserGridDef
- Default user grid definition - invalid!
UserGridRef
public UserGridRef(UserGridDef userGridDef,
String datum,
String zone,
double easting,
double northing)
- Create a new user grid reference for the given
UserGridDef
,
grid
, zone
, easting
and
northing
.
- Parameters:
userGridDef
- user grid definition.datum
- datum name.zone
- grid zone.easting
- the easting.northing
- the northing.
UserGridRef
public UserGridRef(String datum,
String zone,
double easting,
double northing)
- Create a new user grid reference in for the default user grid with the
given
zone
, easting
and northing
.
- Parameters:
datum
- datum name.zone
- grid zone.easting
- the easting.northing
- the northing.
equals
public boolean equals(Object that)
- Test for object equality.
- Overrides:
equals
in class GridRef
- Parameters:
that
- the object to compare against.
- Returns:
- true if the grid definitions are equal.
hashCode
public int hashCode()
- Return the hash code for this object.
- Overrides:
hashCode
in class GridRef
- Returns:
- the hash code for this object