Uses of Interface
org.openstreetmap.josm.spi.preferences.IPreferences
-
Packages that use IPreferences Package Description org.openstreetmap.josm.data Provides the classes for JOSM managed data.org.openstreetmap.josm.data.preferences Provides the classes for storing JOSM user preferences.org.openstreetmap.josm.gui.mappaint Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.org.openstreetmap.josm.spi.preferences Service for preferences and base directory lookup. -
-
Uses of IPreferences in org.openstreetmap.josm.data
Classes in org.openstreetmap.josm.data that implement IPreferences Modifier and Type Class Description class
Preferences
This class holds all preferences for JOSM.Methods in org.openstreetmap.josm.data with parameters of type IPreferences Modifier and Type Method Description static boolean
PreferencesUtils. getBoolean(IPreferences prefs, String key, String specName, boolean def)
Gets an boolean that may be specializedstatic int
PreferencesUtils. getInteger(IPreferences prefs, String key, String specName, int def)
Gets an integer that may be specializedstatic <T> List<T>
StructUtils. getListOfStructs(IPreferences preferences, String key, Class<T> klass)
Get a list of hashes which are represented by a struct-like class.static <T> List<T>
StructUtils. getListOfStructs(IPreferences preferences, String key, Collection<T> def, Class<T> klass)
same as above, but returns def if nothing was foundstatic boolean
PreferencesUtils. putListBounded(IPreferences prefs, String key, int maxsize, List<String> val)
Saves at mostmaxsize
items of listval
.static <T> boolean
StructUtils. putListOfStructs(IPreferences preferences, String key, Collection<T> val, Class<T> klass)
Convenience method that saves a MapListSetting which is provided as a collection of objects.static void
PreferencesUtils. removeFromList(IPreferences prefs, String key, String value)
Removes a value from a given String list -
Uses of IPreferences in org.openstreetmap.josm.data.preferences
Fields in org.openstreetmap.josm.data.preferences declared as IPreferences Modifier and Type Field Description protected IPreferences
AbstractProperty. preferences
The preferences object this property is for.Methods in org.openstreetmap.josm.data.preferences that return IPreferences Modifier and Type Method Description protected IPreferences
AbstractProperty. getPreferences()
Gets the preferences used for this property. -
Uses of IPreferences in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint declared as IPreferences Modifier and Type Field Description private IPreferences
MapPaintStyles.MapPaintStylesPreferenceListener. pref
Constructors in org.openstreetmap.josm.gui.mappaint with parameters of type IPreferences Constructor Description MapPaintStylesPreferenceListener(IPreferences pref)
-
Uses of IPreferences in org.openstreetmap.josm.spi.preferences
Classes in org.openstreetmap.josm.spi.preferences that implement IPreferences Modifier and Type Class Description class
AbstractPreferences
Abstract implementation of theIPreferences
interface.class
MemoryPreferences
Preferences implementation that keeps all settings in memory.Fields in org.openstreetmap.josm.spi.preferences declared as IPreferences Modifier and Type Field Description private static IPreferences
Config. preferences
Methods in org.openstreetmap.josm.spi.preferences that return IPreferences Modifier and Type Method Description static IPreferences
Config. getPref()
Get the preferences.Methods in org.openstreetmap.josm.spi.preferences with parameters of type IPreferences Modifier and Type Method Description static void
Config. setPreferencesInstance(IPreferences preferences)
Install the global preference instance.
-