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, wait
getBaseFeatureType, getRoleLabel, getRoleName
public 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 PlacemarkDescriptor
feature
- The feature to be wrapped.public DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
PlacemarkDescriptor
featureType
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 PlacemarkDescriptor
featureType
- The feature type to be tested.true
, if the featureType
is compatible.public void setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType)
PlacemarkDescriptor
DecodeQualification.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 PlacemarkDescriptor
compatibleFeatureType
- A compatible feature type whose user data may or may not be altered.public PlacemarkGroup getPlacemarkGroup(Product product)
getPlacemarkGroup
in interface PlacemarkDescriptor
public PixelPos updatePixelPos(GeoCoding geoCoding, GeoPos geoPos, PixelPos pixelPos)
updatePixelPos
in interface PlacemarkDescriptor
public GeoPos updateGeoPos(GeoCoding geoCoding, PixelPos pixelPos, GeoPos geoPos)
updateGeoPos
in interface PlacemarkDescriptor
public String getShowLayerCommandId()
getShowLayerCommandId
in interface PlacemarkDescriptor
public Image getCursorImage()
getCursorImage
in interface PlacemarkDescriptor
public Point getCursorHotSpot()
getCursorHotSpot
in interface PlacemarkDescriptor
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.