public interface IFeatureHandlesProvider
edit handles
for a given Feature
.
The given Feature
is passed to this provider as an Observable
. This object allows Editor
to communicate
feature changes
to the IEditHandles
implementations, who can use it to create and update their collection of handles. Editing changes originating from IEditHandles
are communicated to the Editor
using IFeatureEditCallback
. See also the related guide on editing interactions.
See the related guide for an overview of the editing API.
In many cases, the FeatureHandlesProvider
implementation is sufficient.
Modifier and Type | Method and Description |
---|---|
boolean |
canProvide(Observable<Feature> feature,
FeatureEditContext context)
Indicates if this handles provider can create handles for the given
Feature . |
IEditHandles |
provide(Observable<Feature> feature,
FeatureEditContext context,
IFeatureEditCallback featureEditCallback)
Returns handles for the given feature.
|
boolean canProvide(@NotNull Observable<Feature> feature, @NotNull FeatureEditContext context)
Feature
.@Nullable IEditHandles provide(@NotNull Observable<Feature> feature, @NotNull FeatureEditContext context, @NotNull IFeatureEditCallback featureEditCallback)
If this provider doesn't support the given feature, it can return null
.
feature
- the observable feature for which to create handles.context
- the context. Contains additional information about the edited feature.featureEditCallback
- a callback that notifies the caller when the Feature
has changed.null
.