Class MapPaintPrefHelper
java.lang.Object
org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
org.openstreetmap.josm.data.preferences.sources.MapPaintPrefHelper
Helper class for map paint styles preferences.
- Since:
- 12649 (extracted from gui.preferences package)
-
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(Map<String, String> s) Deserializes the given map as a source entry.get()Returns the list of sources.Returns the default sources provided by JOSM core.private booleaninsertNewDefaults(List<SourceEntry> list) If the selection of default styles changes in future releases, add the new entries to the user-configured list.serialize(SourceEntry entry) Serializes the given source entry as a map.Methods inherited from class org.openstreetmap.josm.data.preferences.sources.SourcePrefHelper
getActiveUrls, put
-
Field Details
-
INSTANCE
The unique instance.
-
-
Constructor Details
-
MapPaintPrefHelper
public MapPaintPrefHelper()Constructs a newMapPaintPrefHelper.
-
-
Method Details
-
get
Description copied from class:SourcePrefHelperReturns the list of sources.- Overrides:
getin classSourcePrefHelper- Returns:
- The list of sources
-
insertNewDefaults
If the selection of default styles changes in future releases, add the new entries to the user-configured list. Remember the known URLs, so an item that was deleted explicitly is not added again.- Parameters:
list- new defaults- Returns:
trueif a change occurred
-
getDefault
Description copied from class:SourcePrefHelperReturns the default sources provided by JOSM core.- Specified by:
getDefaultin classSourcePrefHelper- Returns:
- the default sources provided by JOSM core
-
serialize
Description copied from class:SourcePrefHelperSerializes the given source entry as a map.- Overrides:
serializein classSourcePrefHelper- Parameters:
entry- source entry to serialize- Returns:
- map (key=value)
-
deserialize
Description copied from class:SourcePrefHelperDeserializes the given map as a source entry.- Overrides:
deserializein classSourcePrefHelper- Parameters:
s- map (key=value)- Returns:
- source entry
-