Last change
on this file since 12400 was 12400, checked in by Don-vip, 7 years ago |
see #14929 - Automatic filters on numeric tag values (level , layer , maxspeed , voltage )
|
File size:
1.2 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.autofilter;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.Filter;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * An auto filter is a graphical shortcut to enable a filter for a specific tag.
|
---|
8 | * @since 12400
|
---|
9 | */
|
---|
10 | public class AutoFilter {
|
---|
11 | private final String label;
|
---|
12 | private final String description;
|
---|
13 | private final Filter filter;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Constructs a new {@code AutoFilter}.
|
---|
17 | * @param label button label
|
---|
18 | * @param description button tooltip
|
---|
19 | * @param filter associated filter
|
---|
20 | */
|
---|
21 | public AutoFilter(String label, String description, Filter filter) {
|
---|
22 | this.label = label;
|
---|
23 | this.description = description;
|
---|
24 | this.filter = filter;
|
---|
25 | }
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Returns the button label.
|
---|
29 | * @return the button label
|
---|
30 | */
|
---|
31 | public String getLabel() {
|
---|
32 | return label;
|
---|
33 | }
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Returns the button tooltip.
|
---|
37 | * @return the button tooltip
|
---|
38 | */
|
---|
39 | public String getDescription() {
|
---|
40 | return description;
|
---|
41 | }
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * Returns the filter.
|
---|
45 | * @return the filter
|
---|
46 | */
|
---|
47 | public Filter getFilter() {
|
---|
48 | return filter;
|
---|
49 | }
|
---|
50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.