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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains3D(double aX, double aY, double aZ) Provides an approximate default implementation of the 3D containment test based on the 2D containment test.voidmove2D(double aX, double aY) Translates this shape so that its focus point ends up at the specified position.voidMoves thisILcd2DEditableShapeto the given point in the 2D space.Methods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, equals, fromDomainObject, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, getFocusPoint
-
Constructor Details
-
ALcd2DEditableShape
public ALcd2DEditableShape()
-
-
Method Details
-
move2D
Description copied from interface:ILcd2DEditableShapeMoves thisILcd2DEditableShapeto 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 theILcdShapeand theILcdPointare considered. The third dimension is left unchanged.- Specified by:
move2Din interfaceILcd2DEditableShape- Parameters:
aPoint- theILcdPointto 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:
move2Din 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:
contains3Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
trueif the bounds of this shape contain the point in the 3D space and the shape itself contains the point in the 2D space,falseotherwise.
-