01: package net.refractions.udig.project.geoselection;
02:
03: import java.util.Iterator;
04:
05: /**
06: * DOCUMENT ME
07: *
08: * @author Vitalus
09: */
10: public interface IGeoSelectionManager {
11:
12: /**
13: * DOCUMENT ME
14: *
15: * @param listener
16: */
17: public void addListener(IGeoSelectionChangedListener listener);
18:
19: /**
20: * DOCUMENT ME
21: *
22: * @param listener
23: */
24: public void removeListener(IGeoSelectionChangedListener listener);
25:
26: /**
27: * DOCUMENT ME
28: *
29: * @param context
30: * @param selection
31: */
32: public void setSelection(String context, IGeoSelection selection);
33:
34: /**
35: * DOCUMENT ME
36: *
37: * @param context
38: * @return
39: */
40: public IGeoSelection getSelection(String context);
41:
42: public Iterator<IGeoSelectionEntry> getSelections();
43:
44: /**
45: *
46: * This method returns a IGeoSelectionEntry with latest IGeoSelection has been
47: * set to this selection manager.
48: *
49: * @return
50: */
51: public IGeoSelectionEntry getLatestSelection();
52: }
|