Package com.luciad.projection
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
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:
-
Field Summary
Fields inherited from class com.luciad.projection.ALcdProjection
fPropertyChangeDispatcherFields inherited from interface com.luciad.projection.ILcdProjection
EPSILON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConstants based on the central meridian of the projection don't have to be recalculated every time a method is called.clone()Makes a deep clone of thisILcdProjection.booleanChecks if thisILcdProjectionequals some other Object.doubleGets the longitude of the centralMeridian of thisILcdCylindrical.Origin of the projection is theILcd2DEditablePointthat corresponds with origin (0, 0) of the cartesian coordinate system of the projection.inthashCode()booleanAnILcdProjectionis continuous if there are no interruptions in the world coordinates.voidloadProperties(String aPrefix, Properties aProperty) Load the property of anALcdCylindrical: the central meridian of the projection.voidsetCentralMeridian(double aLongitude) Sets the centralMeridian to the meridian with longitudeaLongitude.voidwritePropertiesSFCT(String aPrefix, Properties aPropertySFCT) Writes the property of anALcdCylindrical: the central meridian of the projection.Methods inherited from class com.luciad.projection.ALcdProjection
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCTMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.projection.ILcdProjection
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCTMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
ALcdCylindrical
public ALcdCylindrical()
-
-
Method Details
-
setCentralMeridian
public void setCentralMeridian(double aLongitude) Description copied from interface:ILcdCylindricalSets the centralMeridian to the meridian with longitudeaLongitude.- Specified by:
setCentralMeridianin interfaceILcdCylindrical- Parameters:
aLongitude- The new centralMeridian value.- See Also:
-
getCentralMeridian
public double getCentralMeridian()Description copied from interface:ILcdCylindricalGets the longitude of the centralMeridian of thisILcdCylindrical.- Specified by:
getCentralMeridianin interfaceILcdCylindrical- Returns:
- the longitude of the centralMeridian of this
ILcdCylindrical. - See Also:
-
getOrigin
Description copied from interface:ILcdProjectionOrigin of the projection is theILcd2DEditablePointthat corresponds with origin (0, 0) of the cartesian coordinate system of the projection.- Specified by:
getOriginin interfaceILcdProjection- Returns:
- the origin of the projection.
-
isContinuous
public boolean isContinuous()Description copied from interface:ILcdProjectionAnILcdProjectionis continuous if there are no interruptions in the world coordinates. Most projections are continuous.- Specified by:
isContinuousin interfaceILcdProjection- Returns:
trueif the projection is continuous,falseotherwise.
-
loadProperties
Load the property of anALcdCylindrical: the central meridian of the projection. This method will, given aPrefix, analyze the aProperties object to set the property of thisALcdCylindrical. The value of following key is retrieved:- <aPrefix><the name of the class that extends this abstract class>.centralMeridian
- Specified by:
loadPropertiesin interfaceILcdProjection- Parameters:
aPrefix- prefix of the property names.aProperty- Properties object containing the serialized properties.- Throws:
IllegalArgumentException- if the projection cannot be created.
-
writePropertiesSFCT
Writes the property of anALcdCylindrical: the central meridian of the projection. This method will, given aPrefix, store he property of thisALcdCylindricalinto the aPropertiesSFCT object. The value of following key is stored:- <aPrefix><the name of the class that extends this abstract class>.centralMeridian
- Specified by:
writePropertiesSFCTin interfaceILcdProjection- 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() -
equals
Description copied from interface:ILcdProjectionChecks if thisILcdProjectionequals some other Object.- Specified by:
equalsin interfaceILcdProjection- Overrides:
equalsin classObject- Parameters:
aObject- Object to compare with.- Returns:
- true if the Object is an instance of the same
ILcdProjectionclass and having the same projection properties, false otherwise.
-
clone
Description copied from interface:ILcdProjectionMakes a deep clone of thisILcdProjection.- Specified by:
clonein interfaceILcdProjection- Overrides:
clonein classALcdProjection- Returns:
- deep clone of this
ILcdProjection.
-