Package com.luciad.shape.shape2D
Interface ILcd2DEditableArc
- All Superinterfaces:
Cloneable
,ILcd2DEditableShape
,ILcdArc
,ILcdBounded
,ILcdCloneable
,ILcdShape
,Serializable
- All Known Implementing Classes:
TLcdCGMArc
,TLcdDGNArc2D
,TLcdDWGArc
,TLcdDWGEllipse
,TLcdLonLatArc
,TLcdNVG15Arc
,TLcdNVG20Arc
,TLcdXYArc
An
ILcd2DEditableArc
object is an ILcdArc
that can be changed in two dimensions.-
Field Summary
Fields inherited from interface com.luciad.shape.ILcdArc
ARC_END_CORNER, ARC_START_CORNER, MAJOR_RADIUS_CORNER, MAJOR_RADIUS_OPPOSITE_CORNER, MINOR_RADIUS_CORNER, MINOR_RADIUS_OPPOSITE_CORNER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setA
(double aA) Sets the length of the semi-major axis.void
setArcAngle
(double aArcAngle) Sets the angle over which the arc extends (in degrees).void
setB
(double aB) Sets the length of the semi-minor axis.void
setRotAngle
(double aRotAngle) Sets the rotation angle of the major axis (in degrees).void
setStartAngle
(double aStartAngle) Sets the start angle of the arc (in degrees).void
updateForCornerPoint2D
(int aCorner, ILcdPoint aPoint) Updates the arc for the specified corner point location.Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2D
Methods inherited from interface com.luciad.shape.ILcdArc
corner2DEditablePointSFCT, getA, getArcAngle, getB, getCenter, getRotAngle, getStartAngle
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods 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.
-
setStartAngle
void setStartAngle(double aStartAngle) Sets the start angle of the arc (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.- Parameters:
aStartAngle
- the new start angle.
-
setArcAngle
void setArcAngle(double aArcAngle) Sets the angle over which the arc extends (in degrees). The angle is positive counter-clockwise.- Parameters:
aArcAngle
- the new arc angle.
-
updateForCornerPoint2D
Updates the arc for the specified corner point location. The end points of the axis points should be at the specified location on return of this method. For the start and end point corner only the start and arc angle have to updated.- Parameters:
aCorner
- a constant indicating which corner is to be moved:ILcdArc.MAJOR_RADIUS_CORNER
,ILcdArc.MINOR_RADIUS_CORNER
,ILcdArc.MAJOR_RADIUS_OPPOSITE_CORNER
,ILcdArc.MINOR_RADIUS_OPPOSITE_CORNER
,ILcdArc.ARC_START_CORNER
, orILcdArc.ARC_END_CORNER
.aPoint
- the new coordinate of the point.
-