Interface ILcd2DEditableBounds
 All Superinterfaces:
Cloneable
,ILcd2DEditableShape
,ILcdBounded
,ILcdBounds
,ILcdCloneable
,ILcdShape
,Serializable
 All Known Subinterfaces:
ILcd3DEditableBounds
 All Known Implementing Classes:
ALcd2DEditableBounds
,ALcd3DEditableBounds
,TLcdCGMRectangle
,TLcdGML2Box
,TLcdGML31Box
,TLcdGML31Envelope
,TLcdGML31EnvelopeWithTimePeriod
,TLcdGML31Rectangle
,TLcdGML32Envelope
,TLcdGML32EnvelopeWithTimePeriod
,TLcdGML32Rectangle
,TLcdLonLatBounds
,TLcdLonLatFloatBounds
,TLcdLonLatHeightBounds
,TLcdXYBounds
,TLcdXYFloatBounds
,TLcdXYZBounds
,TLcdXYZFloatBounds
ILcd2DEditableBounds
object is an ILcdBounds
object that can be changed in two
dimensions.
Method Summary
Modifier and TypeMethodDescriptionvoid
move2D
(double aX, double aY) Moves thisILcd2DEditableShape
to the given point in the 2D space.void
Moves thisILcd2DEditableShape
to the given point in the 2D space.void
setHeight
(double aHeight) Sets the height of the bounds (the extent along the yaxis).void
setTo2DIntersection
(double aX, double aY, double aWidth, double aHeight) Calculates the 2D intersection of thisILcd2DEditableBounds
object and a given rectangle.void
setTo2DIntersection
(ILcdBounds aBounds) Calculates the 2D intersection of thisILcd2DEditableBounds
and a givenILcdBounds
.void
setTo2DUnion
(double aX, double aY, double aWidth, double aHeight) Calculates the 2D union of thisILcd2DEditableBounds
object and a given rectangle.void
setTo2DUnion
(ILcdBounds aBounds) Calculates the 2D union of thisILcd2DEditableBounds
and a givenILcdBounds
.void
setToIncludePoint2D
(double aX, double aY) Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a given point.void
setToIncludePoint2D
(ILcdPoint aPoint) Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a givenILcdPoint
.void
setWidth
(double aWidth) Sets the width of the bounds (the extent along the xaxis).void
translate2D
(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space.Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.shape.ILcdBounds
cloneAs2DEditableBounds, cloneAs3DEditableBounds, contains2D, contains2D, contains3D, contains3D, getCenter, getDepth, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getWidth, interacts2D, interacts2D, interacts3D, interacts3D, isDefined
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint

Method Details

move2D
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.If this bounds was
undefined
, it becomes defined after the move. Specified by:
move2D
in interfaceILcd2DEditableShape
 Parameters:
aPoint
 theILcdPoint
to move to. See Also:

move2D
void move2D(double aX, double aY) 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
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the move. Specified by:
move2D
in interfaceILcd2DEditableShape
 Parameters:
aX
 the x coordinate of the point.aY
 the y coordinate of the point.

translate2D
void translate2D(double aDeltaX, double aDeltaY) Translates thisILcd2DEditableShape
from its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.If this bounds was
undefined
, it becomes defined after the translation. Specified by:
translate2D
in interfaceILcd2DEditableShape
 Parameters:
aDeltaX
 the x coordinate of the translation vector.aDeltaY
 the y coordinate of the translation vector.

setWidth
void setWidth(double aWidth) Sets the width of the bounds (the extent along the xaxis).If this bounds was
undefined
, it becomes defined. Parameters:
aWidth
 the new width.

setHeight
void setHeight(double aHeight) Sets the height of the bounds (the extent along the yaxis).If this bounds was
undefined
, it becomes defined. Parameters:
aHeight
 the new height.

setTo2DIntersection
Calculates the 2D intersection of thisILcd2DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in bothILcdBounds
objects. Only the first two dimensions of theILcdBounds
objects are considered. ThisILcd2DEditableBounds
object is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, nothing changes. If the argument bounds isundefined
, this bounds becomes undefined as well. Parameters:
aBounds
 the otherILcdBounds
operand for the intersection. See Also:

setTo2DIntersection
void setTo2DIntersection(double aX, double aY, double aWidth, double aHeight) Calculates the 2D intersection of thisILcd2DEditableBounds
object and a given rectangle. The result contains at least all the points that are contained both in thisILcdBounds
objects and in the rectangle. Only the first two dimensions of thisILcdBounds
object are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, nothing changes. Parameters:
aX
 the x coordinate of the rectangle.aY
 the y coordinate of the rectangle.aWidth
 the width of the rectangle.aHeight
 the height of the rectangle.

setTo2DUnion
Calculates the 2D union of thisILcd2DEditableBounds
and a givenILcdBounds
. The result contains at least all the points that are contained in either of theILcdBounds
objects (and typically more). Only the first two dimensions of theILcdBounds
objects are considered. ThisILcd2DEditableBounds
object is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, it is set to the argument bounds. If the argument bounds is undefined, nothing happens. Parameters:
aBounds
 the otherILcdBounds
operand for the union. See Also:

setTo2DUnion
void setTo2DUnion(double aX, double aY, double aWidth, double aHeight) Calculates the 2D union of thisILcd2DEditableBounds
object and a given rectangle. The result contains at least all the points that are contained in theILcdBounds
object and in the rectangle (and typically more). Only the first two dimensions of thisILcdBounds
object are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, it is set to the arguments. Parameters:
aX
 the x coordinate of the rectangle.aY
 the y coordinate of the rectangle.aWidth
 the width of the rectangle.aHeight
 the height of the rectangle.

setToIncludePoint2D
Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a givenILcdPoint
. The result contains at least the given point and all the points that are contained in thisILcd2DEditableBounds
(and typically more). Only the first two dimensions of thisILcdBounds
object and theILcdPoint
are considered. ThisILcdBounds
object is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, it is set to the point. Parameters:
aPoint
 the point that should be inside (or at the edge) after the extension of the bounds. See Also:

setToIncludePoint2D
void setToIncludePoint2D(double aX, double aY) Calculates the 2D extension of thisILcd2DEditableBounds
object that contains a given point. The result contains at least the given point and all the points that are contained in thisILcd2DEditableBounds
(and typically more). Only the first two dimensions of thisILcdBounds
object are considered. It is updated with the result. Its third dimension is left unchanged.If this bounds is
undefined
, it is set to the point. Parameters:
aX
 the x coordinate of the point.aY
 the y coordinate of the point.
