Class TLcdFeaturedAirspaceCorridor
- All Implemented Interfaces:
ILcdAirspaceCorridor
,ILcdEditableAirspaceCorridor
,ILcdGenericAirspace
,ILcdDefaultDisplayNameSettable
,ILcdGeoPath
,ILcdDataObject
,ILcdBounded
,ILcdCurve
,ILcdGeoBuffer
,ILcdPointList
,ILcdShape
,ILcdCloneable
,ILcdFeatured
,Serializable
,Cloneable
The geometry of the airspace corridor is defined by a set of airspace segments and a width.
Please refer to the documentation of ILcdAirspaceCorridor
for more information about
defining and adding airspace segments.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from class com.luciad.ais.model.airspace.TLcdAirspaceCorridor
SEGMENTS_PROPERTY
Fields inherited from interface com.luciad.shape.ILcdCurve
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMB
Fields inherited from interface com.luciad.shape.ILcdGeoBuffer
CAP_BUTT, CAP_ROUND, JOIN_ROUND
-
Constructor Summary
ConstructorDescriptionTLcdFeaturedAirspaceCorridor
(int aNumberOfFeatures) Deprecated.TLcdFeaturedAirspaceCorridor
(TLcdDataType aDataType) Creates a new instance for the given type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSetFeature
(int aIndex) Checks whether the specified feature is editable.Returns theString
to be used to display theILcdDefaultDisplayNameSettable
object.int
Returns the current index of the feature to be uses in the display name.getFeature
(int aIndex) Returns the featureObject
at the given index.int
Returns the number of features.getValue
(TLcdDataProperty aProperty) Returns the value of the given property.void
setDefaultDisplayNameIndex
(int aDefaultDisplayNameIndex) Sets the index of the feature to be used in the display name.void
setFeature
(int aIndex, Object aObject) Sets the featureObject
at the given index.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.toString()
Returns the default display name of this object (seegetDefaultDisplayName()
), if not null.Methods inherited from class com.luciad.ais.model.airspace.TLcdAirspaceCorridor
addSegment, clone, computePointSFCT, contains2D, contains2D, contains3D, contains3D, equals, getBaseShape, getBounds, getContour, getDataType, getEndCapStyle, getEndPoint, getEndTangent2D, getFocusPoint, getInterpolation, getJoinStyle, getLeg, getLegCount, getLength2D, getLineSegmentIntersectionCount, getPoint, getPointCount, getSegment, getSegmentBySegmentNumber, getSegmentCount, getSegmentIndexForPoint, getStartPoint, getStartTangent2D, getTangent2D, getValue, getWidth, hashCode, hasValue, hasValue, insertSegmentAt, invalidate, removeSegment, removeSegmentAt, setValue, setWidth
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.ais.model.airspace.ILcdAirspaceCorridor
getBaseShape, getContour, getEndCapStyle, getJoinStyle, getPoint, getPointCount, getSegment, getSegmentBySegmentNumber, getSegmentCount, getWidth
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.ILcdCurve
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getStartPoint, getStartTangent2D, getTangent2D
Methods inherited from interface com.luciad.datamodel.ILcdDataObject
getDataType, getValue, hasValue, hasValue, setValue
Methods inherited from interface com.luciad.ais.model.airspace.ILcdEditableAirspaceCorridor
addSegment, insertSegmentAt, removeSegment, removeSegmentAt, setWidth
Methods inherited from interface com.luciad.ais.shape.ILcdGeoPath
getLeg, getLegCount
Methods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdFeaturedAirspaceCorridor
Deprecated.Constructs a newTLcdFeaturedAirspaceCorridor
object. The user has to pass on the number of features he wants to store in the new object.- Parameters:
aNumberOfFeatures
- the number of features to be stored in the newTLcdFeaturedAirspaceCorridor
object
-
TLcdFeaturedAirspaceCorridor
Creates a new instance for the given type.- Parameters:
aDataType
- the data type of the returned instance- Throws:
IllegalArgumentException
- ifTLcdAISDataTypes.AirspaceCorridor
is not assignable from the given data type- Since:
- 10.1
- See Also:
-
-
Method Details
-
getFeature
Description copied from interface:ILcdFeatured
Returns the featureObject
at the given index.- Specified by:
getFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- the feature
Object
at the given index. - See Also:
-
setFeature
Description copied from interface:ILcdFeatured
Sets the featureObject
at the given index.- Specified by:
setFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.aObject
- the new featureObject
.- See Also:
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeatured
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeatured
- Returns:
- the number of features.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeatured
Checks whether the specified feature is editable.- Specified by:
canSetFeature
in interfaceILcdFeatured
- Parameters:
aIndex
- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
setDefaultDisplayNameIndex
public void setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex) Description copied from interface:ILcdDefaultDisplayNameSettable
Sets the index of the feature to be used in the display name. The default value is 0.- Specified by:
setDefaultDisplayNameIndex
in interfaceILcdDefaultDisplayNameSettable
- Parameters:
aDefaultDisplayNameIndex
- a valid index in the list of features- See Also:
-
getDefaultDisplayNameIndex
public int getDefaultDisplayNameIndex()Description copied from interface:ILcdDefaultDisplayNameSettable
Returns the current index of the feature to be uses in the display name.- Specified by:
getDefaultDisplayNameIndex
in interfaceILcdDefaultDisplayNameSettable
- Returns:
- the current index of the feature to use in the display name
- See Also:
-
getDefaultDisplayName
Description copied from interface:ILcdDefaultDisplayNameSettable
Returns theString
to be used to display theILcdDefaultDisplayNameSettable
object.- Specified by:
getDefaultDisplayName
in interfaceILcdDefaultDisplayNameSettable
- Returns:
- the
String
to be used to display theILcdDefaultDisplayNameSettable
object
-
toString
Returns the default display name of this object (seegetDefaultDisplayName()
), if not null. Otherwise, the result ofTLcdAirspaceCorridor.toString()
is used. The exact details of the representation are unspecified and are subject to change.- Overrides:
toString
in classTLcdAirspaceCorridor
- Returns:
- a string representation of the object.
-
getValue
Description copied from interface:ILcdDataObject
Returns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's type
or in one of its super types. Otherwise anIllegalArgumentException
is thrown.- Specified by:
getValue
in interfaceILcdDataObject
- Overrides:
getValue
in classTLcdAirspaceCorridor
- Parameters:
aProperty
- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
setValue
Description copied from interface:ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException
.- Specified by:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdAirspaceCorridor
- Parameters:
aProperty
- the property for which the value is to be setaValue
- the value to set- See Also:
-
TLcdFeaturedAirspaceCorridor(TLcdDataType)