source: josm/trunk/src/org/openstreetmap/josm/gui/preferences/projection/SwissGridProjectionChoice.java@ 5234

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.
2package org.openstreetmap.josm.gui.preferences.projection;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.GridBagLayout;
7import java.awt.event.ActionListener;
8
9import javax.swing.Box;
10import javax.swing.JPanel;
11
12import org.openstreetmap.josm.data.projection.SwissGrid;
13import org.openstreetmap.josm.gui.widgets.HtmlPanel;
14import org.openstreetmap.josm.tools.GBC;
15
16public 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.