Class DownloadPrimitivesTask

    • Constructor Detail

      • DownloadPrimitivesTask

        public DownloadPrimitivesTask​(OsmDataLayer layer,
                                      java.util.List<PrimitiveId> ids,
                                      boolean fullRelation)
        Constructs a new DownloadPrimitivesTask.
        Parameters:
        layer - the layer in which primitives are updated. Must not be null.
        ids - a collection of primitives to update from the server. Set to the empty collection if null.
        fullRelation - true if a full download is required, i.e., a download including the immediate children of a relation.
        Throws:
        java.lang.IllegalArgumentException - if layer is null.
      • DownloadPrimitivesTask

        public DownloadPrimitivesTask​(OsmDataLayer layer,
                                      java.util.List<PrimitiveId> ids,
                                      boolean fullRelation,
                                      ProgressMonitor progressMonitor)
        Constructs a new DownloadPrimitivesTask.
        Parameters:
        layer - the layer in which primitives are updated. Must not be null.
        ids - a collection of primitives to update from the server. Set to the empty collection if null.
        fullRelation - true if a full download is required, i.e., a download including the immediate children of a relation.
        progressMonitor - ProgressMonitor to use or null to create a new one.
        Throws:
        java.lang.IllegalArgumentException - if layer is null.