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

Last change on this file since 7937 was 7937, checked in by bastiK, 9 years ago

add subversion property svn:eol=native

  • Property svn:eol-style set to native
File size: 1008 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.gui.widgets.HtmlPanel;
13import org.openstreetmap.josm.tools.GBC;
14
15public class SwissGridProjectionChoice extends SingleProjectionChoice {
16
17 /**
18 * Constructs a new {@code SwissGridProjectionChoice}.
19 */
20 public SwissGridProjectionChoice() {
21 super(tr("Swiss Grid (Switzerland)"), /* NO-ICON */ "core:swissgrid", "EPSG:21781");
22 }
23
24 @Override
25 public JPanel getPreferencePanel(ActionListener listener) {
26 JPanel p = new JPanel(new GridBagLayout());
27 p.add(new HtmlPanel(tr("<i>CH1903 / LV03 (without local corrections)</i>")), GBC.eol().fill(GBC.HORIZONTAL));
28 p.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
29 return p;
30 }
31}
Note: See TracBrowser for help on using the repository browser.