public abstract class ALcd2DEditableShape extends ALcdShape implements ILcd2DEditableShape
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.
Constructor and Description |
---|
ALcd2DEditableShape() |
Modifier and Type | Method and Description |
---|---|
boolean |
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 |
move2D(ILcdPoint aPoint)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
clone, contains2D, contains3D, equals, fromDomainObject, hashCode
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
translate2D
contains2D, contains2D, contains3D, getFocusPoint
getBounds
clone
public void move2D(ILcdPoint aPoint)
ILcd2DEditableShape
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.move2D
in interface ILcd2DEditableShape
aPoint
- the ILcdPoint
to move to.ILcd2DEditableShape.move2D(double, double)
public void move2D(double aX, double aY)
move2D
in interface ILcd2DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public boolean contains3D(double aX, double aY, double aZ)
contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.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.