public class TLcdSubPointlistAirspaceSegment extends TLcdAISPoint implements ILcdEditableAirspaceSegment
ILcdGeoPathLeg.SUB_POINT_LIST
as geopath leg type together with a shared subpointlist as dataset. When the memory is important,
this implementation is preferred over the normal TLcdAirspaceSegment
that copies the data.
A subpointlist can be set using the setSubPointlist()
method;
this method expects a ILcdPointList
instance as argument.
Note that this class extends TLcdAISPoint
, and so it is
required to set a delegate point implementation using the
setLocation()
method before using the airspace segment object.
TLcdAISPoint
,
Serialized FormARC, ARC_BY_EDGE, CIRCLE_POINT, CIRCLE_RADIUS, GEODESIC_LINE, POINT, RHUMB_LINE, SUB_POINT_LIST
Constructor and Description |
---|
TLcdSubPointlistAirspaceSegment()
Creates a new
TLcdSubPointlistAirspaceSegment object. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this object.
|
int |
getDataLength()
Returns the number of parameters in the leg's data array.
|
void |
getDataSFCT(double[] aDataSFCT)
Copies the GeoPath leg's parameter list into the
aDataSFCT array. |
int |
getSegmentNumber()
Returns the segment number of the
ILcdAirspaceSegment object. |
ILcdPointList |
getSubPointlist()
Returns the
ILcdPointList that is currently associated with this airspace segment. |
int |
getType()
Returns the type of this GeoPath leg.
|
void |
setSegmentNumber(int aSegmentNumber)
Specifies the segment number of the
ILcdEditableAirspaceSegment object. |
void |
setSubPointlist(ILcdPointList aPointlist)
Sets the given
ILcdPointList instance as the subpointlist
that is associated with this airspace segment. |
cloneAs2DEditablePoint, cloneAs3DEditablePoint, contains2D, contains2D, contains3D, contains3D, equals, getBounds, getCosX, getCosY, getFocusPoint, getSinX, getSinY, getTanX, getTanY, getX, getY, getZ, hashCode, move2D, move2D, move3D, move3D, setLocation, translate2D, translate3D
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
cloneAs2DEditablePoint, cloneAs3DEditablePoint, equals, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY, getX, getY, getZ
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
public TLcdSubPointlistAirspaceSegment()
TLcdSubPointlistAirspaceSegment
object.
The geopath leg type is set to ILcdGeoPathLeg.SUB_POINT_LIST
.
public void setSubPointlist(ILcdPointList aPointlist) throws IllegalArgumentException
ILcdPointList
instance as the subpointlist
that is associated with this airspace segment.aPointlist
- The subpointlist that must be associated with this airspace segment.IllegalArgumentException
- if the supplied argument is null.public ILcdPointList getSubPointlist()
ILcdPointList
that is currently associated with this airspace segment.ILcdPointList
that is currently associated with this airspace segment.public void setSegmentNumber(int aSegmentNumber)
ILcdEditableAirspaceSegment
ILcdEditableAirspaceSegment
object.
The segment number is application-defined and does not necessarily have to
correspond with the index of the segment within containing airspace.setSegmentNumber
in interface ILcdEditableAirspaceSegment
aSegmentNumber
- a segment number for the ILcdEditableAirspaceSegment
objectpublic int getSegmentNumber()
ILcdAirspaceSegment
ILcdAirspaceSegment
object.getSegmentNumber
in interface ILcdAirspaceSegment
ILcdAirspaceSegment
objectpublic int getType()
ILcdGeoPathLeg
getType
in interface ILcdGeoPathLeg
public int getDataLength()
ILcdGeoPathLeg
getDataSFCT()
to obtain the contents of the parameter list.getDataLength
in interface ILcdGeoPathLeg
public void getDataSFCT(double[] aDataSFCT)
ILcdGeoPathLeg
aDataSFCT
array.
The array must be sufficiently large! Use getDataLength()
to
determine the required size of the array.getDataSFCT
in interface ILcdGeoPathLeg
aDataSFCT
- will receive the parameter list of this GeoPath leg.public Object clone()
clone
in interface ILcdCloneable
clone
in class TLcdAISPoint
Object.clone()