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 class
Filter.FilterPreferenceEntry
The class for storing and retrieving a filter from a preference entry
-
Field Summary
Fields Modifier and Type Field Description boolean
enable
Enabled status.boolean
hiding
If this option is activated, the chosen objects are completely hidden.boolean
inverted
Normally, the specified objects are hidden and the rest is shown.private static java.lang.String
version
-
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 newFilter
from a preference entry.Filter(SearchSetting setting)
Constructs a newFilter
from aSearchSetting
Filter(SearchSetting setting, Filter f)
Constructs a newFilter
from aSearchSetting
and filter-specific fields from an existing Filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Filter o)
Filter.FilterPreferenceEntry
getPreferenceEntry()
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 newFilter
from aSearchSetting
- Parameters:
setting
-SearchSetting
to construct information from- Since:
- 14932
-
Filter
public Filter(SearchSetting setting, Filter f)
Constructs a newFilter
from aSearchSetting
and filter-specific fields from an existing Filter.- Parameters:
setting
-SearchSetting
to construct information fromf
-Filter
to construct filter-specific fields from- Since:
- 15477
-
Filter
public Filter(Filter.FilterPreferenceEntry e)
Constructs a newFilter
from 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
-
-