source: josm/src/org/openstreetmap/josm/data/SelectionChangedListener.java@ 10

Last change on this file since 10 was 8, checked in by imi, 19 years ago
  • added Selection Dialog
  • added support for graphic engines with a better default engine
  • reorganized data classes with back references
File size: 799 bytes
Line 
1package org.openstreetmap.josm.data;
2
3import java.util.Collection;
4
5import org.openstreetmap.josm.data.osm.OsmPrimitive;
6
7/**
8 * This is a listener for selection changes through the dataset's data. Whenever
9 * a selection of any data meber changes, the dataSet gets informed about this
10 * and fire a selectionChanged event.
11 *
12 * Note, that these events get not fired immediately but are inserted in the
13 * Swing-event queue and packed together. So only one selection changed event
14 * are issued within one message dispatch routine.
15 *
16 * @author imi
17 */
18public interface SelectionChangedListener {
19
20 /**
21 * Informs the listener that the selection in the dataset has changed.
22 * @param newSelection The new selection.
23 */
24 public void selectionChanged(Collection<OsmPrimitive> newSelection);
25}
Note: See TracBrowser for help on using the repository browser.