public final class FilterWorker extends java.lang.Object
Filters to OsmPrimitives.
Provides a bridge between Filter GUI and the data.| Modifier | Constructor and Description |
|---|---|
private |
FilterWorker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
clearFilterFlags(java.util.Collection<OsmPrimitive> prims)
Clear all filter flags, i.e. turn off filters.
|
private static boolean |
doExecuteFilters(java.util.Collection<OsmPrimitive> all,
FilterMatcher filterMatcher) |
static boolean |
executeFilters(java.util.Collection<OsmPrimitive> all,
Filter... filters)
Apply the filters to the primitives of the data set.
|
static boolean |
executeFilters(java.util.Collection<OsmPrimitive> all,
FilterMatcher filterMatcher)
Apply the filters to the primitives of the data set.
|
static boolean |
executeFilters(OsmPrimitive primitive,
FilterMatcher filterMatcher)
Apply the filters to a single primitive.
|
private FilterWorker()
public static boolean executeFilters(java.util.Collection<OsmPrimitive> all, Filter... filters) throws SearchParseError
all - the collection of primitives for that the filter state should be updatedfilters - the filtersSearchParseError - if the search expression in a filter cannot be parsedpublic static boolean executeFilters(java.util.Collection<OsmPrimitive> all, FilterMatcher filterMatcher)
all - the collection of primitives for that the filter state should be updatedfilterMatcher - the FilterMatcherprivate static boolean doExecuteFilters(java.util.Collection<OsmPrimitive> all, FilterMatcher filterMatcher)
public static boolean executeFilters(OsmPrimitive primitive, FilterMatcher filterMatcher)
primitive - the primitivefilterMatcher - the FilterMatcherpublic static boolean clearFilterFlags(java.util.Collection<OsmPrimitive> prims)
prims - the primitives