Package org.openstreetmap.josm.gui.preferences.projection

Source Code of org.openstreetmap.josm.gui.preferences.projection.SwissGridProjectionChoice

// License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.gui.preferences.projection;

import static org.openstreetmap.josm.tools.I18n.tr;

import java.awt.GridBagLayout;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.JPanel;

import org.openstreetmap.josm.gui.widgets.HtmlPanel;
import org.openstreetmap.josm.tools.GBC;

public class SwissGridProjectionChoice extends SingleProjectionChoice {

    /**
     * Constructs a new {@code SwissGridProjectionChoice}.
     */
    public SwissGridProjectionChoice() {
        super(tr("Swiss Grid (Switzerland)"), "core:swissgrid", "EPSG:21781");
    }

    @Override
    public JPanel getPreferencePanel(ActionListener listener) {
        JPanel p = new JPanel(new GridBagLayout());
        p.add(new HtmlPanel(tr("<i>CH1903 / LV03 (without local corrections)</i>")), GBC.eol().fill(GBC.HORIZONTAL));
        p.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
        return p;
    }
}
TOP

Related Classes of org.openstreetmap.josm.gui.preferences.projection.SwissGridProjectionChoice

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.