public abstract class ALcdAzimuthal extends ALcdProjection implements ILcdAzimuthal, Cloneable
ALcdAzimuthal
projections are ILcdProjection
objects that have
a central point of zero distortion. This central point is the origin of the
ALcdAzimuthal
. The azimuth (direction) from the origin point to
any other point on the map is shown correctly.
An ALcdAzimuthal
has an origin which is expressed in lat-lon
coordinates.
Tangent plane projections are examples of ALcdAzimuthal
.
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
ALcdAzimuthal() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateCachedValues()
Constants based on the point of origin 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. |
ILcdPoint |
getOrigin()
Origin of the projection is the
ILcd2DEditablePoint that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection. |
double |
getOriginLat()
Gets the latitude of the origin.
|
double |
getOriginLon()
Gets the longitude of the origin.
|
int |
hashCode() |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Loads the two properties of azimuthal projections.
|
void |
setOriginLat(double aLatitude)
Sets the latitude of the origin to
aLatitude . |
void |
setOriginLon(double aLongitude)
Sets the longitude of the origin to
aLongitude . |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the two properties of azimuthal projections.
|
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 setOriginLat(double aLatitude)
ILcdAzimuthal
aLatitude
. Changing the
origin of an azimuthal projection changes also its aspect. The normal
aspect of an azimuthal projection corresponds to the origin at one of the
poles. The transverse aspect corresponds to the origin on the equator. The
oblique aspect corresponds to any other origin.setOriginLat
in interface ILcdAzimuthal
aLatitude
- The new originLat value.ILcdAzimuthal.getOriginLat()
public void setOriginLon(double aLongitude)
ILcdAzimuthal
aLongitude
.setOriginLon
in interface ILcdAzimuthal
aLongitude
- The new originLon value.ILcdAzimuthal.getOriginLon()
public ILcdPoint getOrigin()
ILcdProjection
ILcd2DEditablePoint
that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection.getOrigin
in interface ILcdProjection
public double getOriginLat()
ILcdAzimuthal
getOriginLat
in interface ILcdAzimuthal
ILcdAzimuthal.setOriginLat(double)
public double getOriginLon()
ILcdAzimuthal
getOriginLon
in interface ILcdAzimuthal
ILcdAzimuthal.setOriginLon(double)
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
ALcdAzimuthal
. The values of following keys are 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)
ALcdAzimuthal
into the
aPropertiesSFCT object. The values of following keys are 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
.