source: josm/trunk/src/org/openstreetmap/josm/data/osm/HighlightUpdateListener.java@ 13804

Last change on this file since 13804 was 12020, checked in by Don-vip, 7 years ago

see #14120 - checkstyle

File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5 * This is a listener that listens to highlight segment changes.
6 * @author Michael Zangl
7 * @since 12014
8 */
9@FunctionalInterface
10public interface HighlightUpdateListener {
11
12 /**
13 * An event that is fired whenever highlighting on the OSM {@link DataSet} changed.
14 * @author Michael Zangl
15 * @since 12014
16 */
17 class HighlightUpdateEvent {
18 private final DataSet dataSet;
19
20 /**
21 * Create a new highlight update event.
22 * @param dataSet The dataset that was changed.
23 */
24 public HighlightUpdateEvent(DataSet dataSet) {
25 this.dataSet = dataSet;
26 }
27
28 /**
29 * Get the modified data set.
30 * @return The data set.
31 */
32 public DataSet getDataSet() {
33 return dataSet;
34 }
35 }
36
37 /**
38 * Called whenever the highlighting of way segments in the dataset changed.
39 * @param e The dataset highlight event.
40 */
41 void highlightUpdated(HighlightUpdateEvent e);
42}
Note: See TracBrowser for help on using the repository browser.