Last change
on this file since 4442 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
|
Rev | Line | |
---|
[2272] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.data.projection;
|
---|
| 3 |
|
---|
[3779] | 4 | import java.awt.event.ActionListener;
|
---|
[2272] | 5 | import java.util.Collection;
|
---|
| 6 |
|
---|
| 7 | import javax.swing.JPanel;
|
---|
| 8 |
|
---|
[3779] | 9 | public interface ProjectionSubPrefs extends Projection {
|
---|
[2272] | 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.
|
---|
[3779] | 13 | *
|
---|
| 14 | * @param listener listener for any change of preferences
|
---|
[2272] | 15 | */
|
---|
[3779] | 16 | public void setupPreferencePanel(JPanel p, ActionListener listener);
|
---|
[2272] | 17 |
|
---|
| 18 | /**
|
---|
| 19 | * Will be called if the preference dialog is dismissed.
|
---|
| 20 | */
|
---|
[2499] | 21 | public Collection<String> getPreferences(JPanel p);
|
---|
[2272] | 22 |
|
---|
| 23 | /**
|
---|
[3779] | 24 | * Return all projection codes supported by this projection class.
|
---|
| 25 | */
|
---|
| 26 | public String[] allCodes();
|
---|
| 27 |
|
---|
| 28 | /**
|
---|
[2272] | 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.
|
---|
[2491] | 35 | * argument may be null to reset everything
|
---|
[2272] | 36 | */
|
---|
| 37 | public void setPreferences(Collection<String> args);
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.