Last change
on this file since 5234 was 5234, checked in by bastiK, 12 years ago |
separate preference gui from core projection code (there may be bugs)
|
File size:
979 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.preferences.projection;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import java.awt.GridBagLayout;
|
---|
7 | import java.awt.event.ActionListener;
|
---|
8 |
|
---|
9 | import javax.swing.Box;
|
---|
10 | import javax.swing.JPanel;
|
---|
11 |
|
---|
12 | import org.openstreetmap.josm.data.projection.SwissGrid;
|
---|
13 | import org.openstreetmap.josm.gui.widgets.HtmlPanel;
|
---|
14 | import org.openstreetmap.josm.tools.GBC;
|
---|
15 |
|
---|
16 | public class SwissGridProjectionChoice extends SingleProjectionChoice {
|
---|
17 |
|
---|
18 | public SwissGridProjectionChoice() {
|
---|
19 | super("core:swissgrid", tr("Swiss Grid (Switzerland)"), new SwissGrid());
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public JPanel getPreferencePanel(ActionListener listener) {
|
---|
24 | JPanel p = new JPanel(new GridBagLayout());
|
---|
25 | p.add(new HtmlPanel(tr("<i>CH1903 / LV03 (without local corrections)</i>")), GBC.eol().fill(GBC.HORIZONTAL));
|
---|
26 | p.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
|
---|
27 | return p;
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.