org.esa.beam.framework.datamodel
Class TrackPointDescriptor

java.lang.Object
  extended by org.esa.beam.framework.datamodel.AbstractPlacemarkDescriptor
      extended by org.esa.beam.framework.datamodel.PointPlacemarkDescriptor
          extended by org.esa.beam.framework.datamodel.TrackPointDescriptor
All Implemented Interfaces:
PlacemarkDescriptor

public class TrackPointDescriptor
extends PointPlacemarkDescriptor

Placemark descriptor implementation for handling track data.

Author:
Olaf Danne, Thomas Storm

Field Summary
 
Fields inherited from class org.esa.beam.framework.datamodel.AbstractPlacemarkDescriptor
PROPERTY_NAME_DEFAULT_GEOMETRY, PROPERTY_NAME_PLACEMARK_DESCRIPTOR
 
Constructor Summary
TrackPointDescriptor()
           
 
Method Summary
 DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
          Gets the compatibility for the given featureType 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.beam.framework.datamodel.PointPlacemarkDescriptor
getBaseFeatureType
 
Methods inherited from class org.esa.beam.framework.datamodel.AbstractPlacemarkDescriptor
createPlacemark, getCursorHotSpot, getCursorImage, getPlacemarkGroup, getShowLayerCommandId, updateGeoPos, updatePixelPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackPointDescriptor

public TrackPointDescriptor()
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 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
Overrides:
getCompatibilityFor in class AbstractPlacemarkDescriptor
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
Overrides:
setUserDataOf in class AbstractPlacemarkDescriptor
Parameters:
compatibleFeatureType - A compatible feature type whose user data may or may not be altered.

getRoleName

public String getRoleName()

getRoleLabel

public String getRoleLabel()


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.