Package com.luciad.maps
Class Map.FeatureQuery.Builder
java.lang.Object
com.luciad.maps.Map.FeatureQuery.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
Map.FeatureQuery
Builder for a
Map.FeatureQuery
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates themap feature query
for the configured settings.void
close()
features
(List<@NotNull LayerFeatureId> features) Sets the features to select for this query.protected void
finalize()
includeControllerLayers
(boolean enable) Indicates if you want to query features on the controller layers in addition to the map layers.The rectangle parameter is mandatory.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Creates themap feature query
for the configured settings.- Returns:
- the feature query.
- Throws:
IllegalStateException
- when not all mandatory parameters are set.
-
rectangle
The rectangle parameter is mandatory.- Parameters:
rectangle
- the rectangle the features must interact with. Defined in device independent pixels.- Returns:
- this
-
includeControllerLayers
Indicates if you want to query features on the controller layers in addition to the map layers.Calling this method is optional, this value is false by default.
- Parameters:
enable
- if you want to query features on the controller layers in addition to the map layers.- Returns:
- this
-
features
Sets the features to select for this query.These features act as a filter on the result: the
Map
:queryFeatures method will only provide results for the given features.Calling this method is optional. If it is not called, no filtering will be applied on the result.
- Parameters:
features
- the features to include in the result- Returns:
- this
-