Class MapPaintPrefHelper

    • Constructor Summary

      Constructors 
      Constructor Description
      MapPaintPrefHelper()
      Constructs a new MapPaintPrefHelper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • insertNewDefaults

        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. Remember the known URLs, so an item that was deleted explicitly is not added again.
        Parameters:
        list - new defaults
        Returns:
        true if a change occurred
      • serialize

        public java.util.Map<java.lang.String,​java.lang.String> serialize​(SourceEntry entry)
        Description copied from class: SourcePrefHelper
        Serializes the given source entry as a map.
        Overrides:
        serialize in class SourcePrefHelper
        Parameters:
        entry - source entry to serialize
        Returns:
        map (key=value)