Package com.luciad.ais.model.ortca
Class TLcdFeaturedOrtca
java.lang.Object
com.luciad.ais.shape.TLcdAISPolygon
com.luciad.ais.model.ortca.TLcdOrtca
com.luciad.ais.model.ortca.TLcdFeaturedOrtca
- All Implemented Interfaces:
ILcdEditableOrtca,ILcdOrtca,ILcdDefaultDisplayNameSettable,ILcdDataObject,ILcdBounded,ILcdCurve,ILcdPointList,ILcdPolygon,ILcdRing,ILcdShape,ILcd2DEditablePointList,ILcd2DEditableShape,ILcd3DEditablePointList,ILcd3DEditablePolygon,ILcd3DEditableShape,ILcdCloneable,ILcdFeatured,Serializable,Cloneable
This extension of
TLcdOrtca allows to have more properties in a specific
implementation of an airspace. The properties of TLcdOrtca are considered as common
features, while a TLcdFeaturedOrtca can have additional features. Both features are
available from within the getFeature and setFeature method of TLcdFeaturedOrtca.- See Also:
-
Field Summary
Fields inherited from class com.luciad.ais.model.ortca.TLcdOrtca
GEOMETRY_PROPERTYFields 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_RHUMBFields inherited from interface com.luciad.shape.ILcdPolygon
CLOCKWISE, COUNTERCLOCKWISE, INVALID_ORIENTATION -
Constructor Summary
ConstructorsConstructorDescriptionTLcdFeaturedOrtca(int aNumberOfFeatures) Deprecated.TLcdFeaturedOrtca(TLcdDataType aDataType) Constructs a newTLcdFeaturedOrtcaobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetFeature(int aIndex) Checks whether the specified feature is editable.Returns theStringto be used to display theILcdDefaultDisplayNameSettableobject.intReturns the current index of the feature to be uses in the display name.getFeature(int aIndex) Returns the featureObjectat the given index.intReturns the number of features.getValue(TLcdDataProperty aProperty) Returns the value of the given property.voidsetDefaultDisplayNameIndex(int aDefaultDisplayNameIndex) Sets the index of the feature to be used in the display name.voidsetFeature(int aIndex, Object aObject) Sets the featureObjectat the given index.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.toString()Methods inherited from class com.luciad.ais.model.ortca.TLcdOrtca
getDataType, getValue, hasValue, hasValue, setValueMethods inherited from class com.luciad.ais.shape.TLcdAISPolygon
clone, computePointSFCT, contains2D, contains2D, contains3D, contains3D, equals, getBounds, getEndPoint, getEndTangent2D, getFocusPoint, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getOrientation, getPoint, getPointCount, getStartPoint, getStartTangent2D, getTangent2D, hashCode, insert2DPoint, insert3DPoint, move2D, move2D, move2DPoint, move3D, move3D, move3DPoint, removePointAt, set3DEditablePolygon, translate2D, translate2DPoint, translate3D, translate3DPointMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, translate2D, translate2DPointMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditablePointList
insert3DPoint, move3DPoint, removePointAt, translate3D, translate3DPointMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, move3D, translate3DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdPolygon
getOrientationMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdFeaturedOrtca
Deprecated.Constructs a newTLcdFeaturedOrtcaobject. The user has to pass on the number of features he wants to store in the new object.- Parameters:
aNumberOfFeatures-
-
TLcdFeaturedOrtca
Constructs a newTLcdFeaturedOrtcaobject. TheaDataTypeparameter defines the properties of this object.- Parameters:
aDataType- The data type of the returned instance, this should be an extension ofTLcdAISDataTypes.Ortca- Throws:
IllegalArgumentException- ifTLcdAISDataTypes.Ortcais not assignable from the given data type- Since:
- 10.1
- See Also:
-
-
Method Details
-
getValue
Description copied from interface:ILcdDataObjectReturns 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 typeor in one of its super types. Otherwise anIllegalArgumentExceptionis thrown.- Specified by:
getValuein interfaceILcdDataObject- Overrides:
getValuein classTLcdOrtca- 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:ILcdDataObjectSets 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 typeor 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:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdOrtca- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
getFeature
Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat the given index. - See Also:
-
setFeature
Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.aObject- the new featureObject.- See Also:
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
canSetFeature
public boolean canSetFeature(int aIndex) Description copied from interface:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein 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:ILcdDefaultDisplayNameSettableSets the index of the feature to be used in the display name. The default value is 0.- Specified by:
setDefaultDisplayNameIndexin interfaceILcdDefaultDisplayNameSettable- Parameters:
aDefaultDisplayNameIndex- a valid index in the list of features- See Also:
-
getDefaultDisplayNameIndex
public int getDefaultDisplayNameIndex()Description copied from interface:ILcdDefaultDisplayNameSettableReturns the current index of the feature to be uses in the display name.- Specified by:
getDefaultDisplayNameIndexin interfaceILcdDefaultDisplayNameSettable- Returns:
- the current index of the feature to use in the display name
- See Also:
-
getDefaultDisplayName
Description copied from interface:ILcdDefaultDisplayNameSettableReturns theStringto be used to display theILcdDefaultDisplayNameSettableobject.- Specified by:
getDefaultDisplayNamein interfaceILcdDefaultDisplayNameSettable- Returns:
- the
Stringto be used to display theILcdDefaultDisplayNameSettableobject
-
toString
-
TLcdFeaturedOrtca(TLcdDataType)