Package com.luciad.shape.shape2D
Interface ILcd2DEditableEllipse
- All Superinterfaces:
Cloneable,ILcd2DEditableShape,ILcdBounded,ILcdCloneable,ILcdEllipse,ILcdShape,Serializable
- All Known Implementing Classes:
TLcdCGMEllipse,TLcdDGNEllipse2D,TLcdLonLatEllipse,TLcdNVG15Arc,TLcdNVG15Ellipse,TLcdNVG20EllipticRing,TLcdXYEllipse
An
ILcd2DEditableEllipse object is an ILcdEllipse that can be changed in two dimensions.-
Field Summary
Fields inherited from interface com.luciad.shape.ILcdEllipse
MAJOR_RADIUS_CORNER, MAJOR_RADIUS_OPPOSITE_CORNER, MINOR_RADIUS_CORNER, MINOR_RADIUS_OPPOSITE_CORNER -
Method Summary
Modifier and TypeMethodDescriptionvoidsetA(double aA) Sets the length of the semi-major axis.voidsetB(double aB) Sets the length of the semi-minor axis.voidsetRotAngle(double aRotAngle) Sets the rotation angle of the major axis (in degrees).voidupdateForCornerPoint2D(int aCorner, ILcdPoint aPoint) Updates the ellipse for the specified corner point location.Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdEllipse
corner2DEditablePointSFCT, getA, getB, getCenter, getRotAngleMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
setA
void setA(double aA) Sets the length of the semi-major axis.- Parameters:
aA- the new length.
-
setB
void setB(double aB) Sets the length of the semi-minor axis.- Parameters:
aB- the new length.
-
setRotAngle
void setRotAngle(double aRotAngle) Sets the rotation angle of the major axis (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.- Parameters:
aRotAngle- the new rotation angle.
-
updateForCornerPoint2D
Updates the ellipse for the specified corner point location. The end point of the axis should be at the specified location on return of this method.- Parameters:
aCorner- a constant indicating which corner is to be moved:ILcdEllipse.MAJOR_RADIUS_CORNER,ILcdEllipse.MINOR_RADIUS_CORNER,ILcdEllipse.MAJOR_RADIUS_OPPOSITE_CORNER,ILcdEllipse.MINOR_RADIUS_OPPOSITE_CORNER.aPoint- the new coordinate of the point.
-