Class TrackPointDescriptor
- java.lang.Object
-
- org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
-
- org.esa.snap.core.datamodel.PointPlacemarkDescriptor
-
- org.esa.snap.core.datamodel.TrackPointDescriptor
-
- All Implemented Interfaces:
PlacemarkDescriptor
public class TrackPointDescriptor extends PointPlacemarkDescriptor
Placemark descriptor implementation for handling track data.
-
-
Field Summary
-
Fields inherited from class org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
PROPERTY_NAME_DEFAULT_GEOMETRY, PROPERTY_NAME_PLACEMARK_DESCRIPTOR
-
-
Constructor Summary
Constructors Constructor Description TrackPointDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DecodeQualification
getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
Gets the compatibility for the givenfeatureType
with respect to the placemarks created by this descriptor.static TrackPointDescriptor
getInstance()
String
getRoleLabel()
String
getRoleName()
void
setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType)
Asks the descriptor to set any application specific information in the feature type's user data.-
Methods inherited from class org.esa.snap.core.datamodel.PointPlacemarkDescriptor
getBaseFeatureType
-
Methods inherited from class org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
createPlacemark, getCursorHotSpot, getCursorImage, getPlacemarkGroup, getShowLayerCommandId, updateGeoPos, updatePixelPos
-
-
-
-
Method Detail
-
getInstance
public static TrackPointDescriptor getInstance()
-
getCompatibilityFor
public DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
Description copied from interface:PlacemarkDescriptor
Gets the compatibility for the givenfeatureType
with respect to the placemarks created by this descriptor.The method shall only return
DecodeQualification.INTENDED
, if the descriptor was designed for interpreting the given feature type, e.g. by inspecting thefeatureType
's user data which may be set byPlacemarkDescriptor.setUserDataOf(org.opengis.feature.simple.SimpleFeatureType)
.The method may return
DecodeQualification.SUITABLE
, if thePlacemarkDescriptor.createPlacemark(org.opengis.feature.simple.SimpleFeature)
method can successfully create a new placemark from a feature having the compatiblefeatureType
.- Specified by:
getCompatibilityFor
in interfacePlacemarkDescriptor
- Overrides:
getCompatibilityFor
in classAbstractPlacemarkDescriptor
- Parameters:
featureType
- The feature type to be tested.- Returns:
true
, if thefeatureType
is compatible.
-
setUserDataOf
public void setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType)
Description copied from interface:PlacemarkDescriptor
Asks the descriptor to set any application specific information in the feature type's user data. When called, the framework has already classified the given feature type as beingDecodeQualification.INTENDED
orDecodeQualification.SUITABLE
by consulting the methodPlacemarkDescriptor.getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType)
.Implementors of this method may consider setting specific user data that allows
PlacemarkDescriptor.getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType)
to returnDecodeQualification.INTENDED
after e.g. data has been deserialized from a persistent data store.- Specified by:
setUserDataOf
in interfacePlacemarkDescriptor
- Overrides:
setUserDataOf
in classAbstractPlacemarkDescriptor
- Parameters:
compatibleFeatureType
- A compatible feature type whose user data may or may not be altered.
-
getRoleName
public String getRoleName()
-
getRoleLabel
public String getRoleLabel()
-
-