Package org.openstreetmap.josm.data.imagery

Examples of org.openstreetmap.josm.data.imagery.ImageryInfo$ImageryPreferenceEntry


                return layerInfo.getDefaultLayers().size();
            }

            @Override
            public Object getValueAt(int row, int column) {
                ImageryInfo info = layerInfo.getDefaultLayers().get(row);
                switch (column) {
                case 0:
                    return info.getCountryCode();
                case 1:
                    return info.getName();
                case 2:
                    return info.getExtendedUrl();
                }
                return null;
            }
View Full Code Here


        showBounds.setEnabled(tree.getSelectedLayers().size() == 1);
    }

    @Override
    public ImageryInfo getImageryInfo() {
        final ImageryInfo info;
        if (endpoint.isSelected()) {
            info = new ImageryInfo(getImageryName(), getImageryRawUrl());
            info.setImageryType(ImageryInfo.ImageryType.WMS_ENDPOINT);
        } else {
            info = wms.toImageryInfo(getImageryName(), tree.getSelectedLayers());
            info.setUrl(getWmsUrl());
        }
        return info;
    }
View Full Code Here

        return a.toString();
    }

    @Override
    public ImageryInfo getImageryInfo() {
        return new ImageryInfo(getImageryName(), getTmsUrl());
    }
View Full Code Here

        public BookmarkWmsAction() {
            super(tr("Set WMS Bookmark"));
        }
        @Override
        public void actionPerformed(ActionEvent ev) {
            ImageryLayerInfo.addLayer(new ImageryInfo(info));
        }
View Full Code Here

    /**
     * Constructs a new {@code WMSLayer}.
     */
    public WMSLayer() {
        this(new ImageryInfo(tr("Blank Layer")));
    }
View Full Code Here

     * Adds a WMS Layer with given title and URL
     * @param title Name of the layer as it will shop up in the layer manager
     * @param url URL to the WMS server
     */
    private void addWMSLayer(String title, String url) {
        Main.main.addLayer(new WMSLayer(new ImageryInfo(title, url)));
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.data.imagery.ImageryInfo$ImageryPreferenceEntry

Copyright © 2018 www.massapicom. 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.