Package com.luciad.view.map
Class TLcdLonLatGrid
java.lang.Object
com.luciad.view.map.TLcdLonLatGrid
- All Implemented Interfaces:
Serializable
,Cloneable
This class represents a grid of meridians and parallels on the
surface of the earth.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new grid with a 10 degree spacing of both parallels and meridians, with origin (0, 0).TLcdLonLatGrid
(double aDeltaLon, double aDeltaLat) Constructs a new grid with origin (0, 0)TLcdLonLatGrid
(double aDeltaLon, double aDeltaLat, double aOriginLon, double aOriginLat) Constructs a new grid with the given origin and spacing.TLcdLonLatGrid
(TLcdLonLatGrid aLonLatGrid) Constructs a new grid. -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
The property deltaLat determines the latitude grid increment.double
The property deltaLon determines the longitude grid increment.double
Returns the latitude of the grid origin.double
Returns the longitude of the grid origin.void
setDeltaLat
(double aDeltaLat) The property deltaLat determines the latitude grid increment.void
setDeltaLon
(double aDeltaLon) The property deltaLon determines the longitude grid increment.void
setOriginLat
(double aOriginLat) Sets the latitude of the grid origin.void
setOriginLon
(double aOriginLon) Sets the latitude of the grid origin.toString()
Returns aString
representation of this grid's values.
-
Constructor Details
-
TLcdLonLatGrid
public TLcdLonLatGrid()Constructs a new grid with a 10 degree spacing of both parallels and meridians, with origin (0, 0). -
TLcdLonLatGrid
public TLcdLonLatGrid(double aDeltaLon, double aDeltaLat) Constructs a new grid with origin (0, 0)- Parameters:
aDeltaLon
- longitude grid increment.aDeltaLat
- latitude grid increment.
-
TLcdLonLatGrid
public TLcdLonLatGrid(double aDeltaLon, double aDeltaLat, double aOriginLon, double aOriginLat) Constructs a new grid with the given origin and spacing.- Parameters:
aDeltaLon
- longitude grid increment.aDeltaLat
- latitude grid increment.aOriginLon
- longitude of the grid originaOriginLat
- latitude of the grid origin
-
TLcdLonLatGrid
Constructs a new grid.- Parameters:
aLonLatGrid
- another TLcdLonLatGrid to initialize from.
-
-
Method Details
-
getDeltaLat
public double getDeltaLat()The property deltaLat determines the latitude grid increment.- Returns:
- the property deltaLat.
-
setDeltaLat
public void setDeltaLat(double aDeltaLat) The property deltaLat determines the latitude grid increment. Sets the property deltaLat to aDeltaLat. Note that this method throws an unchecked IllegalArgumentException when 0 is passed.- Parameters:
aDeltaLat
- the latitude grid increment.
-
getDeltaLon
public double getDeltaLon()The property deltaLon determines the longitude grid increment.- Returns:
- the property deltaLon.
-
setDeltaLon
public void setDeltaLon(double aDeltaLon) The property deltaLon determines the longitude grid increment. Sets the property deltaLon to aDeltaLon. Note that this method throws an unchecked IllegalArgumentException when 0 is passed.- Parameters:
aDeltaLon
- the longitude grid increment.
-
getOriginLat
public double getOriginLat()Returns the latitude of the grid origin.- Returns:
- the latitude of the grid origin.
-
setOriginLat
public void setOriginLat(double aOriginLat) Sets the latitude of the grid origin. Note that this method throws an IllegalArgumentException when a value is passed outside the range [-90, 90].- Parameters:
aOriginLat
- the latitude of the grid origin.
-
getOriginLon
public double getOriginLon()Returns the longitude of the grid origin.- Returns:
- the longitude of the grid origin.
-
setOriginLon
public void setOriginLon(double aOriginLon) Sets the latitude of the grid origin. Note that this method throws an IllegalArgumentException when a value is passed outside the range [-180, 180].- Parameters:
aOriginLon
- the latitude of the grid origin.
-
toString
Returns aString
representation of this grid's values. -
clone
-