public abstract class AbstractPlacemarkDescriptor extends Object implements PlacemarkDescriptor
PlacemarkDescriptor implementations.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_DEFAULT_GEOMETRY |
static String |
PROPERTY_NAME_PLACEMARK_DESCRIPTOR |
| Constructor and Description |
|---|
AbstractPlacemarkDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Placemark |
createPlacemark(org.opengis.feature.simple.SimpleFeature feature)
Creates a new placemark by wrapping the given feature.
|
DecodeQualification |
getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
Gets the compatibility for the given
featureType with respect to the placemarks created by this descriptor. |
Point |
getCursorHotSpot() |
Image |
getCursorImage() |
PlacemarkGroup |
getPlacemarkGroup(Product product) |
String |
getShowLayerCommandId() |
void |
setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType)
Asks the descriptor to set any application specific information in the feature type's user data.
|
GeoPos |
updateGeoPos(GeoCoding geoCoding,
PixelPos pixelPos,
GeoPos geoPos) |
PixelPos |
updatePixelPos(GeoCoding geoCoding,
GeoPos geoPos,
PixelPos pixelPos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseFeatureType, getRoleLabel, getRoleNamepublic static final String PROPERTY_NAME_PLACEMARK_DESCRIPTOR
public static final String PROPERTY_NAME_DEFAULT_GEOMETRY
public Placemark createPlacemark(org.opengis.feature.simple.SimpleFeature feature)
new Placemark(this, feature)
.createPlacemark in interface PlacemarkDescriptorfeature - The feature to be wrapped.public DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
PlacemarkDescriptorfeatureType 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 the featureType's
user data which may be set by
PlacemarkDescriptor.setUserDataOf(org.opengis.feature.simple.SimpleFeatureType).
The method may return DecodeQualification.SUITABLE, if the
PlacemarkDescriptor.createPlacemark(org.opengis.feature.simple.SimpleFeature)
method can successfully create a new placemark from a feature having the compatible featureType.
getCompatibilityFor in interface PlacemarkDescriptorfeatureType - The feature type to be tested.true, if the featureType is compatible.public void setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType)
PlacemarkDescriptorDecodeQualification.INTENDED or
DecodeQualification.SUITABLE by consulting the method PlacemarkDescriptor.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 return DecodeQualification.INTENDED after e.g. data has been deserialized from a persistent data store.
setUserDataOf in interface PlacemarkDescriptorcompatibleFeatureType - A compatible feature type whose user data may or may not be altered.public PlacemarkGroup getPlacemarkGroup(Product product)
getPlacemarkGroup in interface PlacemarkDescriptorpublic PixelPos updatePixelPos(GeoCoding geoCoding, GeoPos geoPos, PixelPos pixelPos)
updatePixelPos in interface PlacemarkDescriptorpublic GeoPos updateGeoPos(GeoCoding geoCoding, PixelPos pixelPos, GeoPos geoPos)
updateGeoPos in interface PlacemarkDescriptorpublic String getShowLayerCommandId()
getShowLayerCommandId in interface PlacemarkDescriptorpublic Image getCursorImage()
getCursorImage in interface PlacemarkDescriptorpublic Point getCursorHotSpot()
getCursorHotSpot in interface PlacemarkDescriptorCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.