001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.preferences.projection; 003 004import static org.openstreetmap.josm.tools.I18n.tr; 005 006import java.awt.GridBagLayout; 007import java.awt.event.ActionListener; 008 009import javax.swing.Box; 010import javax.swing.JPanel; 011 012import org.openstreetmap.josm.gui.widgets.HtmlPanel; 013import org.openstreetmap.josm.tools.GBC; 014 015public class SwissGridProjectionChoice extends SingleProjectionChoice { 016 017 /** 018 * Constructs a new {@code SwissGridProjectionChoice}. 019 */ 020 public SwissGridProjectionChoice() { 021 super(tr("Swiss Grid (Switzerland)"), /* NO-ICON */ "core:swissgrid", "EPSG:21781"); 022 } 023 024 @Override 025 public JPanel getPreferencePanel(ActionListener listener) { 026 JPanel p = new JPanel(new GridBagLayout()); 027 p.add(new HtmlPanel(tr("<i>CH1903 / LV03 (without local corrections)</i>")), GBC.eol().fill(GBC.HORIZONTAL)); 028 p.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); 029 return p; 030 } 031}