Examples of LayerTag


Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

     * Connects references to maps to MapTags if exist otherwise downloads maps.
     */
    protected void processMap(MapTag map, String originID) {
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag layer = (LayerTag) layers.nextElement();
            String src = layer.getSrc();
           
            // loads all referenced maps
            if (src != null) {
                MapTag refdMap = (MapTag) maps.get(src);
               
                // if map not in memory
                if (refdMap == null) {
                    refdMap = loadMapTag(src, originID);
                }
                   
                // otherwise downloads it
                if (refdMap == null) {
                }
               
                // sets the referenced map (possibly null)
                layer.setSrcMap(refdMap);
               
                // processes also loaded map
                if (refdMap != null) {
                    processMap(refdMap, originID);
                }
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

               
        // first goes through the mapTag and looks for map images
        // all images are uploaded and OOB is added
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag l = (LayerTag) layers.nextElement();
            ImgTag img = l.getImg();
            if (img != null) {
                File imgFile = new File(completeMapPath + "/" + img.getSrc());
                String urlStr = new String("http://" + fileServer + ":" +
                                fileServerPort + fileServerPath + "/" + img.getSrc());
                URL url;
                try {
                    url = new URL(urlStr);
                    URLFileTransfer.uploadURL(imgFile, url, proxy, proxyPort);
                    msgBuilder.addExtension(new IQXOOB(url,img.getSrc()));
                } catch (MalformedURLException e) {
                    break;
                } catch (IOException e) {
                    break;
                }
            }
            MapTag insetMap = l.getSrcMap();
            if (insetMap != null && recursiveMapsSend) {
                addMapIntoMessage(msgBuilder, insetMap.getID(), originID, false);
            }
        }
       
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

        String destPath = new String(mapPath + "/" + destOriginID);
       
        // for all layers
        Enumeration layers = map.layers();
        while (layers.hasMoreElements()) {
            LayerTag l = (LayerTag) layers.nextElement();
            // copies images
            ImgTag img = l.getImg();
            if (img != null) {
                if (!FileCopier.copyFile(new File(sourcePath + "/" + img.getSrc()),
                                         new File(destPath + "/" + img.getSrc())))
                    return false;
            }
            // for nested maps
            MapTag insetMap = l.getSrcMap();
            if (insetMap != null) {
                // copies map files
                if (!FileCopier.copyFile(new File(sourcePath + "/" + insetMap.getID()),
                                         new File(destPath + "/" + insetMap.getID())))
                    return false;
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

   
    public void initLayersComboBox() {
        layersComboBox.removeAllItems();
        Enumeration layersEnum = mapView.getLayers();
        while (layersEnum.hasMoreElements()) {
            LayerTag layer = (LayerTag) layersEnum.nextElement();
            String layerName = layer.getID();
            layersComboBox.addItem(layerName);
        }
    }
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

                    "Cannot change referenced map",
                    "Set priority error",
                    JOptionPane.ERROR_MESSAGE);
            return;
        }*/
        LayerTag layer = mapView.getSelectedLayer();
        if (layer == null) return;
        BSLayerDialog dlg = new BSLayerDialog(
                                  docked? mainFrame : frame,
                                  layer.getOffsetXInt(), layer.getOffsetYInt(),
                                  layer.getScaleFloat(),
                                  0, 20, layer.getPriorityInt());
        dlg.setVisible(true);
        if (dlg.confirmed)
            mapView.setLayerProperties(dlg.offsetX, dlg.offsetY, dlg.scale,
                                       dlg.priority);
    }
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.LayerTag

            mapView.setLayerProperties(dlg.offsetX, dlg.offsetY, dlg.scale,
                                       dlg.priority);
    }
   
    public void deleteLayer() {
        LayerTag layer = mapView.getSelectedLayer();
        if (layer == null) return;
        /*if (!mapView.isSelectedTopLevelLayer()) {
            JOptionPane.showMessageDialog(docked? winMan.mainFrame : frame,
                    "Cannot change referenced map",
                    "Set priority error",
View Full Code Here
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.