Package com.luciad.edit.features
Class FeatureEditContext
java.lang.Object
com.luciad.edit.features.FeatureEditContext
- All Implemented Interfaces:
- AutoCloseable
FeatureEditContext provides context information for the feature that is being edited.- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()protected voidfinalize()Returns the default edit settings.Observable<@NotNull Feature> Returns theFeaturethat is being edited.Returns the feature ID for the handle to which this context is passed.longReturns the layer ID of the handle of theFeaturethat is being edited.getLayer()Returns theFeatureLayeron which the feature is edited.getMap()Returns the map on which the feature is being edited.getModel()Returns theIFeatureModelof theFeaturethat is being edited.Returns the ID for theFeaturethat is used to visualize the editing result.
- 
Method Details- 
finalizeprotected void finalize()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
getMapReturns the map on which the feature is being edited.- Returns:
- the map on which the feature is being edited.
 
- 
getLayerReturns theFeatureLayeron which the feature is edited.The layer can for example be used to retrieve the IFeatureGeometryProvider.- Returns:
- the FeatureLayeron which the feature is edited.
- See Also:
 
- 
getFeatureReturns theFeaturethat is being edited.- Returns:
- the Featurethat is being edited.
 
- 
getModelReturns theIFeatureModelof theFeaturethat is being edited.- Returns:
- the IFeatureModelof theFeaturethat is being edited.
 
- 
getHandleLayerIdpublic long getHandleLayerId()Returns the layer ID of the handle of theFeaturethat is being edited.- Returns:
- the layer ID of the handle of the Featurethat is being edited.
 
- 
getHandleFeatureIdReturns the feature ID for the handle to which this context is passed.It can be used to query the map for specific edit handles, for example. This method will throw an exception if it is called outside an IEditHandlecall.- Returns:
- the feature ID for the handle to which this context is passed.
 
- 
getPreviewFeatureIdReturns the ID for theFeaturethat is used to visualize the editing result.Depending on the configuredModelUpdateMode, this can be a different ID.For ModelUpdateMode#OnAnyChange, the original layer is used and the id ofgetFeature().For ModelUpdateMode#OnMajorChangesandModelUpdateMode#OnEditFinished, this is the ID of the a copy of theFeature, visualized by the handle layer.This ID can be used for the Map#queryFeaturesmethod to detect if the currently editedFeatureis touched, for example.- Returns:
- the ID for the Featurethat is being edited.
 
- 
getDefaultSettingsReturns the default edit settings.- Returns:
- the default edit settings.
 
 
-