Package com.luciad.shape.shape2D
Class ALcd2DEditableShape
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.shape2D.ALcd2DEditableShape
- All Implemented Interfaces:
ILcdBounded
,ILcdShape
,ILcd2DEditableShape
,ILcdCloneable
,Serializable
,Cloneable
- Direct Known Subclasses:
ALcd2DEditableFloatPolypoint
,ALcd2DEditableLine
,ALcd2DEditablePolypoint
,ALcd3DEditableShape
,TLcdLonLatArc
,TLcdLonLatArcBand
,TLcdLonLatBuffer
,TLcdLonLatCircle
,TLcdLonLatCircleBy3Points
,TLcdLonLatCircularArcBy3Points
,TLcdLonLatCircularArcByBulge
,TLcdLonLatCircularArcByCenterPoint
,TLcdLonLatEllipse
,TLcdLonLatGeoBuffer
,TLcdXYArc
,TLcdXYArcBand
,TLcdXYCircle
,TLcdXYCircleBy3Points
,TLcdXYCircularArcBy3Points
,TLcdXYCircularArcByBulge
,TLcdXYCircularArcByCenterPoint
,TLcdXYEllipse
,TLcdXYFloatLine
,TLcdXYGeoBuffer
,TLcdXYText
This abstract class provides a basis for implementing the
ILcd2DEditableShape
interface.
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains3D
(double aX, double aY, double aZ) Provides an approximate default implementation of the 3D containment test based on the 2D containment test.void
move2D
(double aX, double aY) Translates this shape so that its focus point ends up at the specified position.void
Moves thisILcd2DEditableShape
to the given point in the 2D space.Methods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, equals, fromDomainObject, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
translate2D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, getFocusPoint
-
Constructor Details
-
ALcd2DEditableShape
public ALcd2DEditableShape()
-
-
Method Details
-
move2D
Description copied from interface:ILcd2DEditableShape
Moves thisILcd2DEditableShape
to the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered. The third dimension is left unchanged.- Specified by:
move2D
in interfaceILcd2DEditableShape
- Parameters:
aPoint
- theILcdPoint
to move to.- See Also:
-
move2D
public void move2D(double aX, double aY) Translates this shape so that its focus point ends up at the specified position.- Specified by:
move2D
in interfaceILcd2DEditableShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Provides an approximate default implementation of the 3D containment test based on the 2D containment test.- Specified by:
contains3D
in interfaceILcdShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.- Returns:
true
if the bounds of this shape contain the point in the 3D space and the shape itself contains the point in the 2D space,false
otherwise.
-