public interface IFeatureEditCandidateProvider
This interface is used by Editor
, who will use it to determine which Features are edited. An edit candidate can be configured using Editor.Builder#editCandidateProvider
.
Edit candidates are typically determined using feature states
. FeatureStateEditCandidateProvider
for example allows you to return selected or hovered-over Features (or other FeatureStates).
Modifier and Type | Method and Description |
---|---|
void |
addObserver(IFeatureEditCandidateObserver observer)
Adds an observer that allows you to receive change events from this edit candidate provider.
|
List<LayerFeatureId> |
getEditCandidates() |
void |
removeObserver(IFeatureEditCandidateObserver observer)
Removes the given observer.
|
@NotNull List<LayerFeatureId> getEditCandidates()
void addObserver(@NotNull IFeatureEditCandidateObserver observer) throws NullPointerException, IllegalArgumentException
Adding the same observer twice is forbidden, and will cause an exception.
observer
- an observerIllegalArgumentException
- when the observer was already added.NullPointerException
- when the observer is null
.void removeObserver(@NotNull IFeatureEditCandidateObserver observer) throws NullPointerException, IllegalArgumentException
If the given observer was never added, an exception is thrown.
observer
- an observerIllegalArgumentException
- when the observer is not known.NullPointerException
- when the observer is null
.