Class TLcdLonLatZonalPoint

All Implemented Interfaces:
ILcdBounded, ILcdBounds, ILcdPoint, ILcdPointList, ILcdPolypoint, ILcdShape, ILcdZonalPoint, ILcd2DEditablePoint, ILcd2DEditableShape, ILcd2DEditableZonalPoint, ILcdCloneable, Serializable, Cloneable

public class TLcdLonLatZonalPoint extends TLcdLonLatPoint implements ILcd2DEditableZonalPoint
This class provides an implementation of ILcd2DEditableZonalPoint in the geodetic space.

All longitude/latitude coordinates are expressed in degrees.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

See Also:
  • Constructor Details

    • TLcdLonLatZonalPoint

      public TLcdLonLatZonalPoint(double aLon, double aLat, int aZone)
    • TLcdLonLatZonalPoint

      public TLcdLonLatZonalPoint(ILcd2DEditablePoint a2DEditablePoint, int aZone)
    • TLcdLonLatZonalPoint

      public TLcdLonLatZonalPoint(ILcd2DEditableZonalPoint a2DEditableZonalPoint)
  • Method Details

    • getZone

      public final int getZone()
      Description copied from interface: ILcdZonalPoint
      Returns the zone of this ILcdZonal2DEditablePoint.
      Specified by:
      getZone in interface ILcdZonalPoint
      Returns:
      the zone of this ILcdZonal2DEditablePoint.
    • setZone

      public void setZone(int aZone)
      Description copied from interface: ILcd2DEditableZonalPoint
      Sets the zone of this ILcdZonal2DEditablePoint.
      Specified by:
      setZone in interface ILcd2DEditableZonalPoint
      Parameters:
      aZone - the new zone of this point.
    • cloneAs2DEditablePoint

      public ILcd2DEditablePoint cloneAs2DEditablePoint()
      Description copied from interface: ILcdPoint
      Returns a copy of this ILcdPoint that is also an ILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable,
      Specified by:
      cloneAs2DEditablePoint in interface ILcdPoint
      Overrides:
      cloneAs2DEditablePoint in class TLcdLonLatPoint
      Returns:
      a copy of this ILcdPoint that is also an ILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable, even if the original ILcdPoint object may be read-only.
      See Also:
    • equals

      public boolean equals(Object aObject)
      Returns whether the given object has the same class, the same coordinates, and the same zone.
      Specified by:
      equals in interface ILcdPoint
      Overrides:
      equals in class TLcdLonLatPoint
      Parameters:
      aObject - the object to check for equality
      Returns:
      true if the object has the same class and it has the same coordinates, taking into account a 360 degree difference for longitudes.
    • hashCode

      public int hashCode()
      Description copied from class: ALcdShape
      The hash code of this shape is the hash code of its class, in order to be consistent with the ALcdShape.equals(Object) method. Extensions should refine this implementation, based on their properties.
      Overrides:
      hashCode in class ALcdPoint
    • toString

      public String toString()
      Overrides:
      toString in class ALcd2DEditablePoint