Package com.luciad.shape.shape2D
Class TLcdLonLatZonalPoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdPoint
com.luciad.shape.shape2D.ALcd2DEditablePoint
com.luciad.shape.shape2D.TLcdLonLatPoint
com.luciad.shape.shape2D.TLcdLonLatZonalPoint
- All Implemented Interfaces:
ILcdBounded,ILcdBounds,ILcdPoint,ILcdPointList,ILcdPolypoint,ILcdShape,ILcdZonalPoint,ILcd2DEditablePoint,ILcd2DEditableShape,ILcd2DEditableZonalPoint,ILcdCloneable,Serializable,Cloneable
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 Summary
ConstructorsConstructorDescriptionTLcdLonLatZonalPoint(double aLon, double aLat, int aZone) TLcdLonLatZonalPoint(ILcd2DEditablePoint a2DEditablePoint, int aZone) TLcdLonLatZonalPoint(ILcd2DEditableZonalPoint a2DEditableZonalPoint) -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of thisILcdPointthat is also anILcd2DEditablePoint.booleanReturns whether the given object has the same class, the same coordinates, and the same zone.final intgetZone()Returns the zone of thisILcdZonal2DEditablePoint.inthashCode()The hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)method.voidsetZone(int aZone) Sets the zone of thisILcdZonal2DEditablePoint.toString()Methods inherited from class com.luciad.shape.shape2D.TLcdLonLatPoint
cloneAs2DEditableBounds, cloneAs3DEditableBounds, cloneAs3DEditablePoint, contains2D, contains2D, getCosX, getCosY, getLat, getLon, getSinX, getSinY, getTanX, getTanY, getX, getY, interacts2D, move2DMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePoint
getZ, move2D, translate2DMethods inherited from class com.luciad.shape.ALcdPoint
contains2D, contains3D, contains3D, contains3D, getBounds, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getWidth, interacts2D, interacts3D, interacts3D, isDefinedMethods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.shape.ILcdBounds
getCenterMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdPoint
cloneAs3DEditablePoint, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdLonLatZonalPoint
public TLcdLonLatZonalPoint(double aLon, double aLat, int aZone) -
TLcdLonLatZonalPoint
-
TLcdLonLatZonalPoint
-
-
Method Details
-
getZone
public final int getZone()Description copied from interface:ILcdZonalPointReturns the zone of thisILcdZonal2DEditablePoint.- Specified by:
getZonein interfaceILcdZonalPoint- Returns:
- the zone of this
ILcdZonal2DEditablePoint.
-
setZone
public void setZone(int aZone) Description copied from interface:ILcd2DEditableZonalPointSets the zone of thisILcdZonal2DEditablePoint.- Specified by:
setZonein interfaceILcd2DEditableZonalPoint- Parameters:
aZone- the new zone of this point.
-
cloneAs2DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable,- Specified by:
cloneAs2DEditablePointin interfaceILcdPoint- Overrides:
cloneAs2DEditablePointin classTLcdLonLatPoint- Returns:
- a copy of this
ILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
equals
Returns whether the given object has the same class, the same coordinates, and the same zone.- Specified by:
equalsin interfaceILcdPoint- Overrides:
equalsin classTLcdLonLatPoint- 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:ALcdShapeThe hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)method. Extensions should refine this implementation, based on their properties. -
toString
- Overrides:
toStringin classALcd2DEditablePoint
-