source: josm/trunk/src/org/openstreetmap/josm/data/projection/ProjectionSubPrefs.java@ 5040

Last change on this file since 5040 was 3779, checked in by Upliner, 13 years ago

Identify projections in offset bookmarks by EPSG codes, bugfixes in getPreferencesFromCode() functions as they're critical now.

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.projection;
3
4import java.awt.event.ActionListener;
5import java.util.Collection;
6
7import javax.swing.JPanel;
8
9public interface ProjectionSubPrefs extends Projection {
10 /**
11 * Generates the GUI for the given preference and packs them in a JPanel
12 * so they may be displayed if the projection is selected.
13 *
14 * @param listener listener for any change of preferences
15 */
16 public void setupPreferencePanel(JPanel p, ActionListener listener);
17
18 /**
19 * Will be called if the preference dialog is dismissed.
20 */
21 public Collection<String> getPreferences(JPanel p);
22
23 /**
24 * Return all projection codes supported by this projection class.
25 */
26 public String[] allCodes();
27
28 /**
29 * Return null when code is not part of this projection.
30 */
31 public Collection<String> getPreferencesFromCode(String code);
32
33 /**
34 * Will be called if the preference dialog is dismissed.
35 * argument may be null to reset everything
36 */
37 public void setPreferences(Collection<String> args);
38}
Note: See TracBrowser for help on using the repository browser.