Class ALcdCylindrical

java.lang.Object
com.luciad.projection.ALcdProjection
com.luciad.projection.ALcdCylindrical
All Implemented Interfaces:
ILcdCylindrical, ILcdProjection, ILcdPropertyChangeSource, Serializable, Cloneable
Direct Known Subclasses:
TLcdEckertIV, TLcdEckertVI, TLcdEllipsoidalEquidistantCylindrical, TLcdEquidistantCylindrical, TLcdMercator, TLcdMillerCylindrical, TLcdMollweide, TLcdSimpleRectangular

public abstract class ALcdCylindrical extends ALcdProjection implements ILcdCylindrical, Cloneable
An ALcdCylindrical is an ILcdProjection that is obtained by wrapping a cylinder around the earth globe such that it touches the equator. Meridians are projected on the cylinder from the center of the globe and they are straight lines on the map. The central meridian is determined by its longitude and determines the position of the origin of the ALcdCylindrical, which is always on the equator.

See Also:
  • Constructor Details

    • ALcdCylindrical

      public ALcdCylindrical()
  • Method Details

    • setCentralMeridian

      public void setCentralMeridian(double aLongitude)
      Description copied from interface: ILcdCylindrical
      Sets the centralMeridian to the meridian with longitude aLongitude.
      Specified by:
      setCentralMeridian in interface ILcdCylindrical
      Parameters:
      aLongitude - The new centralMeridian value.
      See Also:
    • getCentralMeridian

      public double getCentralMeridian()
      Description copied from interface: ILcdCylindrical
      Gets the longitude of the centralMeridian of this ILcdCylindrical.
      Specified by:
      getCentralMeridian in interface ILcdCylindrical
      Returns:
      the longitude of the centralMeridian of this ILcdCylindrical.
      See Also:
    • getOrigin

      public ILcdPoint getOrigin()
      Description copied from interface: ILcdProjection
      Origin of the projection is the ILcd2DEditablePoint that corresponds with origin (0, 0) of the cartesian coordinate system of the projection.
      Specified by:
      getOrigin in interface ILcdProjection
      Returns:
      the origin of the projection.
    • isContinuous

      public boolean isContinuous()
      Description copied from interface: ILcdProjection
      An ILcdProjection is continuous if there are no interruptions in the world coordinates. Most projections are continuous.
      Specified by:
      isContinuous in interface ILcdProjection
      Returns:
      true if the projection is continuous, false otherwise.
    • loadProperties

      public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
      Load the property of an ALcdCylindrical: the central meridian of the projection. This method will, given aPrefix, analyze the aProperties object to set the property of this ALcdCylindrical. The value of following key is retrieved:
      • <aPrefix><the name of the class that extends this abstract class>.centralMeridian
      Specified by:
      loadProperties in interface ILcdProjection
      Parameters:
      aPrefix - prefix of the property names.
      aProperty - Properties object containing the serialized properties.
      Throws:
      IllegalArgumentException - if the projection cannot be created.
    • writePropertiesSFCT

      public void writePropertiesSFCT(String aPrefix, Properties aPropertySFCT)
      Writes the property of an ALcdCylindrical: the central meridian of the projection. This method will, given aPrefix, store he property of this ALcdCylindrical into the aPropertiesSFCT object. The value of following key is stored:
      • <aPrefix><the name of the class that extends this abstract class>.centralMeridian
      Specified by:
      writePropertiesSFCT in interface ILcdProjection
      Parameters:
      aPrefix - prefix for the property names.
      aPropertySFCT - Properties object to store the serialized properties by side effect.
    • calculateCachedValues

      protected void calculateCachedValues()
      Constants based on the central meridian of the projection don't have to be recalculated every time a method is called. They only have to be calculated when the projection properties change. Within the methods the precalculated values then can be used in order to gain efficiency.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object aObject)
      Description copied from interface: ILcdProjection
      Checks if this ILcdProjection equals some other Object.
      Specified by:
      equals in interface ILcdProjection
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if the Object is an instance of the same ILcdProjection class and having the same projection properties, false otherwise.
    • clone

      public Object clone()
      Description copied from interface: ILcdProjection
      Makes a deep clone of this ILcdProjection.
      Specified by:
      clone in interface ILcdProjection
      Overrides:
      clone in class ALcdProjection
      Returns:
      deep clone of this ILcdProjection.