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