public class MapPaintPrefHelper extends SourcePrefHelper
Modifier and Type | Field and Description |
---|---|
static MapPaintPrefHelper |
INSTANCE
The unique instance.
|
type
Constructor and Description |
---|
MapPaintPrefHelper()
Constructs a new
MapPaintPrefHelper . |
Modifier and Type | Method and Description |
---|---|
SourceEntry |
deserialize(java.util.Map<java.lang.String,java.lang.String> s)
Deserializes the given map as a source entry.
|
java.util.List<SourceEntry> |
get()
Returns the list of sources.
|
java.util.Collection<ExtendedSourceEntry> |
getDefault()
Returns the default sources provided by JOSM core.
|
private boolean |
insertNewDefaults(java.util.List<SourceEntry> list)
If the selection of default styles changes in future releases, add
the new entries to the user-configured list.
|
java.util.Map<java.lang.String,java.lang.String> |
serialize(SourceEntry entry)
Serializes the given source entry as a map.
|
getActiveUrls, put
public static final MapPaintPrefHelper INSTANCE
public MapPaintPrefHelper()
MapPaintPrefHelper
.public java.util.List<SourceEntry> get()
SourcePrefHelper
get
in class SourcePrefHelper
private boolean insertNewDefaults(java.util.List<SourceEntry> list)
list
- new defaultstrue
if a change occurredpublic java.util.Collection<ExtendedSourceEntry> getDefault()
SourcePrefHelper
getDefault
in class SourcePrefHelper
public java.util.Map<java.lang.String,java.lang.String> serialize(SourceEntry entry)
SourcePrefHelper
serialize
in class SourcePrefHelper
entry
- source entry to serializepublic SourceEntry deserialize(java.util.Map<java.lang.String,java.lang.String> s)
SourcePrefHelper
deserialize
in class SourcePrefHelper
s
- map (key=value)