public abstract class ALcdCylindrical extends ALcdProjection implements ILcdCylindrical, Cloneable
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.
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
ALcdCylindrical() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateCachedValues()
Constants based on the central meridian of the projection don't have to be
recalculated every time a method is called.
|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
boolean |
equals(Object aObject)
Checks if this
ILcdProjection equals some other Object. |
double |
getCentralMeridian()
Gets the longitude of the centralMeridian of this
ILcdCylindrical . |
ILcdPoint |
getOrigin()
Origin of the projection is the
ILcd2DEditablePoint that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection. |
int |
hashCode() |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Load the property of an
ALcdCylindrical : the central meridian
of the projection. |
void |
setCentralMeridian(double aLongitude)
Sets the centralMeridian to the meridian with longitude
aLongitude . |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the property of an
ALcdCylindrical : the central
meridian of the projection. |
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCT
addPropertyChangeListener, removePropertyChangeListener
public void setCentralMeridian(double aLongitude)
ILcdCylindrical
aLongitude
.setCentralMeridian
in interface ILcdCylindrical
aLongitude
- The new centralMeridian value.ILcdCylindrical.getCentralMeridian()
public double getCentralMeridian()
ILcdCylindrical
ILcdCylindrical
.getCentralMeridian
in interface ILcdCylindrical
ILcdCylindrical
.ILcdCylindrical.setCentralMeridian(double)
public ILcdPoint getOrigin()
ILcdProjection
ILcd2DEditablePoint
that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection.getOrigin
in interface ILcdProjection
public boolean isContinuous()
ILcdProjection
ILcdProjection
is continuous if there are no interruptions
in the world coordinates. Most projections are continuous.isContinuous
in interface ILcdProjection
true
if the projection is continuous,
false
otherwise.public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
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:
loadProperties
in interface ILcdProjection
aPrefix
- prefix of the property names.aProperty
- Properties object containing the serialized properties.IllegalArgumentException
- if the projection cannot be created.public void writePropertiesSFCT(String aPrefix, Properties aPropertySFCT)
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:
writePropertiesSFCT
in interface ILcdProjection
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.protected void calculateCachedValues()
public boolean equals(Object aObject)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class Object
aObject
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdProjection
ILcdProjection
.