org.esa.beam.framework.datamodel
Class AbstractPlacemarkDescriptor
java.lang.Object
org.esa.beam.framework.datamodel.AbstractPlacemarkDescriptor
- All Implemented Interfaces:
- PlacemarkDescriptor
- Direct Known Subclasses:
- GenericPlacemarkDescriptor, GeometryDescriptor, PointPlacemarkDescriptor
public abstract class AbstractPlacemarkDescriptor
- extends Object
- implements PlacemarkDescriptor
The base class for PlacemarkDescriptor implementations.
- Since:
- BEAM 4.10
- Author:
- Norman Fomferra
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_NAME_PLACEMARK_DESCRIPTOR
public static final String PROPERTY_NAME_PLACEMARK_DESCRIPTOR
- See Also:
- Constant Field Values
PROPERTY_NAME_DEFAULT_GEOMETRY
public static final String PROPERTY_NAME_DEFAULT_GEOMETRY
- See Also:
- Constant Field Values
AbstractPlacemarkDescriptor
public AbstractPlacemarkDescriptor()
createPlacemark
public Placemark createPlacemark(org.opengis.feature.simple.SimpleFeature feature)
- Creates a new placemark by wrapping the given feature.
The default implementation returns
new Placemark(this, feature)
.
- Specified by:
createPlacemark in interface PlacemarkDescriptor
- 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:
PlacemarkDescriptor
- Gets the compatibility for the given
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.
- Specified by:
getCompatibilityFor in interface PlacemarkDescriptor
- Parameters:
featureType - The feature type to be tested.
- Returns:
true, if the featureType 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 being
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.
- Specified by:
setUserDataOf in interface PlacemarkDescriptor
- Parameters:
compatibleFeatureType - A compatible feature type whose user data may or may not be altered.
getPlacemarkGroup
public PlacemarkGroup getPlacemarkGroup(Product product)
- Specified by:
getPlacemarkGroup in interface PlacemarkDescriptor
updatePixelPos
public PixelPos updatePixelPos(GeoCoding geoCoding,
GeoPos geoPos,
PixelPos pixelPos)
- Specified by:
updatePixelPos in interface PlacemarkDescriptor
updateGeoPos
public GeoPos updateGeoPos(GeoCoding geoCoding,
PixelPos pixelPos,
GeoPos geoPos)
- Specified by:
updateGeoPos in interface PlacemarkDescriptor
getShowLayerCommandId
public String getShowLayerCommandId()
- Specified by:
getShowLayerCommandId in interface PlacemarkDescriptor
getCursorImage
public Image getCursorImage()
- Specified by:
getCursorImage in interface PlacemarkDescriptor
getCursorHotSpot
public Point getCursorHotSpot()
- Specified by:
getCursorHotSpot in interface PlacemarkDescriptor
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.