public final class DownloadSettings extends java.lang.Object
DownloadDialog.
This class is immutable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
downloadAsNewLayer |
private Bounds |
downloadBounds |
private boolean |
zoomToDownloadedData |
| Constructor and Description |
|---|
DownloadSettings(Bounds bbox,
boolean downloadAsNewLayer,
boolean zoomToDownloadedData)
Initializes a new instance of
DownloadSettings. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asNewLayer()
Gets the flag defining if a new layer must be created for the downloaded data.
|
java.util.Optional<Bounds> |
getDownloadBounds()
Gets the download bounds that are requested
|
boolean |
zoomToData()
Gets the flag defining if the map view must zoom to the downloaded data.
|
private final Bounds downloadBounds
private final boolean downloadAsNewLayer
private final boolean zoomToDownloadedData
public DownloadSettings(Bounds bbox, boolean downloadAsNewLayer, boolean zoomToDownloadedData)
DownloadSettings.bbox - The bounding boxdownloadAsNewLayer - The flag defining if a new layer must be created for the downloaded data.zoomToDownloadedData - The flag defining if the map view, see SlippyMapChooser,
must zoom to the downloaded data.public boolean asNewLayer()
true if a new layer must be created, false otherwise.public boolean zoomToData()
true if the view must zoom, false otherwise.public java.util.Optional<Bounds> getDownloadBounds()
Optional if no bounds are selected