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

public abstract class ALcd2DEditableShape extends ALcdShape implements ILcd2DEditableShape
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 Details

    • ALcd2DEditableShape

      public ALcd2DEditableShape()
  • Method Details

    • move2D

      public void move2D(ILcdPoint aPoint)
      Description copied from interface: ILcd2DEditableShape
      Moves this ILcd2DEditableShape 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 the ILcdShape and the ILcdPoint are considered. The third dimension is left unchanged.
      Specified by:
      move2D in interface ILcd2DEditableShape
      Parameters:
      aPoint - the ILcdPoint 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 interface ILcd2DEditableShape
      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 interface ILcdShape
      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.