Class TLcdLonLatGrid

java.lang.Object
com.luciad.view.map.TLcdLonLatGrid
All Implemented Interfaces:
Serializable, Cloneable

public class TLcdLonLatGrid extends Object implements Cloneable, Serializable
This class represents a grid of meridians and parallels on the surface of the earth.
See Also:
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Constructs 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.
    Constructs a new grid.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
     
    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.
    Returns a String representation of this grid's values.

    Methods inherited from class java.lang.Object Link icon

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • TLcdLonLatGrid Link icon

      public TLcdLonLatGrid()
      Constructs a new grid with a 10 degree spacing of both parallels and meridians, with origin (0, 0).
    • TLcdLonLatGrid Link icon

      public TLcdLonLatGrid(double aDeltaLon, double aDeltaLat)
      Constructs a new grid with origin (0, 0)
      Parameters:
      aDeltaLon - longitude grid increment.
      aDeltaLat - latitude grid increment.
    • TLcdLonLatGrid Link icon

      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 origin
      aOriginLat - latitude of the grid origin
    • TLcdLonLatGrid Link icon

      public TLcdLonLatGrid(TLcdLonLatGrid aLonLatGrid)
      Constructs a new grid.
      Parameters:
      aLonLatGrid - another TLcdLonLatGrid to initialize from.
  • Method Details Link icon

    • getDeltaLat Link icon

      public double getDeltaLat()
      The property deltaLat determines the latitude grid increment.
      Returns:
      the property deltaLat.
    • setDeltaLat Link icon

      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 Link icon

      public double getDeltaLon()
      The property deltaLon determines the longitude grid increment.
      Returns:
      the property deltaLon.
    • setDeltaLon Link icon

      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 Link icon

      public double getOriginLat()
      Returns the latitude of the grid origin.
      Returns:
      the latitude of the grid origin.
    • setOriginLat Link icon

      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 Link icon

      public double getOriginLon()
      Returns the longitude of the grid origin.
      Returns:
      the longitude of the grid origin.
    • setOriginLon Link icon

      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 Link icon

      public String toString()
      Returns a String representation of this grid's values.
      Overrides:
      toString in class Object
    • clone Link icon

      public Object clone()
      Overrides:
      clone in class Object