Class AbstractPlacemarkDescriptor
- All Implemented Interfaces:
PlacemarkDescriptor
- Direct Known Subclasses:
GenericPlacemarkDescriptor,GeometryDescriptor,PointPlacemarkDescriptor
PlacemarkDescriptor implementations.- Since:
- BEAM 4.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePlacemark(org.opengis.feature.simple.SimpleFeature feature) Creates a new placemark by wrapping the given feature.getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType) Gets the compatibility for the givenfeatureTypewith respect to the placemarks created by this descriptor.getPlacemarkGroup(Product product) voidsetUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType) Asks the descriptor to set any application specific information in the feature type's user data.updateGeoPos(GeoCoding geoCoding, PixelPos pixelPos, GeoPos geoPos) updatePixelPos(GeoCoding geoCoding, GeoPos geoPos, PixelPos pixelPos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.esa.snap.core.datamodel.PlacemarkDescriptor
getBaseFeatureType, getRoleLabel, getRoleName
-
Field Details
-
PROPERTY_NAME_PLACEMARK_DESCRIPTOR
- See Also:
-
PROPERTY_NAME_DEFAULT_GEOMETRY
- See Also:
-
-
Constructor Details
-
AbstractPlacemarkDescriptor
public AbstractPlacemarkDescriptor()
-
-
Method Details
-
createPlacemark
Creates a new placemark by wrapping the given feature. The default implementation returnsnew Placemark(this, feature).- Specified by:
createPlacemarkin interfacePlacemarkDescriptor- Parameters:
feature- The feature to be wrapped.- Returns:
- The new placemark.
-
getCompatibilityFor
public DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType) Description copied from interface:PlacemarkDescriptorGets the compatibility for the givenfeatureTypewith 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:
getCompatibilityForin interfacePlacemarkDescriptor- Parameters:
featureType- The feature type to be tested.- Returns:
true, if thefeatureTypeis compatible.
-
setUserDataOf
public void setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType) Description copied from interface:PlacemarkDescriptorAsks 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.INTENDEDorDecodeQualification.SUITABLEby 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.INTENDEDafter e.g. data has been deserialized from a persistent data store.- Specified by:
setUserDataOfin interfacePlacemarkDescriptor- Parameters:
compatibleFeatureType- A compatible feature type whose user data may or may not be altered.
-
getPlacemarkGroup
- Specified by:
getPlacemarkGroupin interfacePlacemarkDescriptor
-
updatePixelPos
- Specified by:
updatePixelPosin interfacePlacemarkDescriptor
-
updateGeoPos
- Specified by:
updateGeoPosin interfacePlacemarkDescriptor
-
getShowLayerCommandId
- Specified by:
getShowLayerCommandIdin interfacePlacemarkDescriptor
-
getCursorImage
- Specified by:
getCursorImagein interfacePlacemarkDescriptor
-
getCursorHotSpot
- Specified by:
getCursorHotSpotin interfacePlacemarkDescriptor
-