public final class OsmDataManager extends java.lang.Object implements IOsmDataManager
Modifier and Type | Class and Description |
---|---|
private static class |
OsmDataManager.InstanceHolder |
Modifier | Constructor and Description |
---|---|
private |
OsmDataManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsDataSet(DataSet ds)
Determines if the list of data sets managed by JOSM contains
ds . |
DataSet |
getActiveDataSet()
Gets the active data set (can be read-only).
|
DataSet |
getEditDataSet()
Gets the active edit data set (not read-only).
|
java.util.Collection<? extends IPrimitive> |
getInProgressISelection()
Replies the current selected primitives, from a end-user point of view.
|
java.util.Collection<OsmPrimitive> |
getInProgressSelection()
Replies the current selected OSM primitives, from a end-user point of view.
|
static OsmDataManager |
getInstance()
Returns the unique instance.
|
void |
setActiveDataSet(DataSet ds)
Sets the active data set (and also edit data set if not read-only).
|
private OsmDataManager()
public static OsmDataManager getInstance()
public java.util.Collection<OsmPrimitive> getInProgressSelection()
IOsmDataManager
OsmData.getSelected()
.getInProgressSelection
in interface IOsmDataManager
null
.public java.util.Collection<? extends IPrimitive> getInProgressISelection()
IOsmDataManager
OsmData.getSelected()
.getInProgressISelection
in interface IOsmDataManager
null
.public DataSet getEditDataSet()
IOsmDataManager
getEditDataSet
in interface IOsmDataManager
null
.IOsmDataManager.getActiveDataSet()
public DataSet getActiveDataSet()
IOsmDataManager
getActiveDataSet
in interface IOsmDataManager
null
.IOsmDataManager.getEditDataSet()
public void setActiveDataSet(DataSet ds)
IOsmDataManager
setActiveDataSet
in interface IOsmDataManager
ds
- New data set, or null
public boolean containsDataSet(DataSet ds)
IOsmDataManager
ds
.containsDataSet
in interface IOsmDataManager
ds
- the data set to look fortrue
if the list of data sets managed by JOSM contains ds