Package org.openstreetmap.josm.data.osm
Class Filter
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.search.SearchSetting
-
- org.openstreetmap.josm.data.osm.Filter
-
- All Implemented Interfaces:
java.lang.Comparable<Filter>
- Direct Known Subclasses:
AutoFilterManager.CompiledFilter
public class Filter extends SearchSetting implements java.lang.Comparable<Filter>
Data class representing one entry in the filter dialog.- Since:
- 2125
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilter.FilterPreferenceEntryThe class for storing and retrieving a filter from a preference entry
-
Field Summary
Fields Modifier and Type Field Description booleanenableEnabled status.booleanhidingIf this option is activated, the chosen objects are completely hidden.booleaninvertedNormally, the specified objects are hidden and the rest is shown.private static java.lang.Stringversion-
Fields inherited from class org.openstreetmap.josm.data.osm.search.SearchSetting
allElements, caseSensitive, mapCSSSearch, mode, regexSearch, text
-
-
Constructor Summary
Constructors Constructor Description Filter()Constructs a newFilter.Filter(Filter.FilterPreferenceEntry e)Constructs a newFilterfrom a preference entry.Filter(SearchSetting setting)Constructs a newFilterfrom aSearchSettingFilter(SearchSetting setting, Filter f)Constructs a newFilterfrom aSearchSettingand filter-specific fields from an existing Filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Filter o)Filter.FilterPreferenceEntrygetPreferenceEntry()Returns a new preference entry for this filter.-
Methods inherited from class org.openstreetmap.josm.data.osm.search.SearchSetting
equals, fromString, hashCode, readFromString, toString, toStringEx, writeToString
-
-
-
-
Field Detail
-
version
private static final java.lang.String version
- See Also:
- Constant Field Values
-
enable
public boolean enable
Enabled status.- See Also:
Filter.FilterPreferenceEntry.enable
-
hiding
public boolean hiding
If this option is activated, the chosen objects are completely hidden. Otherwise they are disabled and shown in a shade of gray.- See Also:
Filter.FilterPreferenceEntry.hiding
-
inverted
public boolean inverted
Normally, the specified objects are hidden and the rest is shown. If this option is activated, only the specified objects are shown and the rest is hidden.- See Also:
Filter.FilterPreferenceEntry.inverted
-
-
Constructor Detail
-
Filter
public Filter()
Constructs a newFilter.
-
Filter
public Filter(SearchSetting setting)
Constructs a newFilterfrom aSearchSetting- Parameters:
setting-SearchSettingto construct information from- Since:
- 14932
-
Filter
public Filter(SearchSetting setting, Filter f)
Constructs a newFilterfrom aSearchSettingand filter-specific fields from an existing Filter.- Parameters:
setting-SearchSettingto construct information fromf-Filterto construct filter-specific fields from- Since:
- 15477
-
Filter
public Filter(Filter.FilterPreferenceEntry e)
Constructs a newFilterfrom a preference entry.- Parameters:
e- preference entry
-
-
Method Detail
-
getPreferenceEntry
public Filter.FilterPreferenceEntry getPreferenceEntry()
Returns a new preference entry for this filter.- Returns:
- preference entry
-
-