Package org.geoforge.worldwindogc.layer

Examples of org.geoforge.worldwindogc.layer.GfrLyrWMSTiledImageLayer


     
      boolean blnIsLayer = false;

      if (objComponent instanceof GfrLyrWMSTiledImageLayer)
      {
         GfrLyrWMSTiledImageLayer objLyr = (GfrLyrWMSTiledImageLayer) objComponent;

         String strErrorCheck = objLyr.getErrorCheck();

         if (strErrorCheck != null)
         {
            String strError = "Got errors in WMS server named " + this._strUrlServerParent;
            strError += "\n" + "Failed to load child(ren):";
View Full Code Here


            params.setValue(AVKey.LAYER_NAMES, namedLayers.get(0).getName());
        }

        try
        {
           GfrLyrWMSTiledImageLayer lyr = new GfrLyrWMSTiledImageLayer((GfrWMSCapabilities) caps, params);       
           return lyr;
        }
       
        catch(Exception exc)
        {
View Full Code Here

        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
               continue;
           
            GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
            String strIdCurParent = rlrCur.getIdParent();

            if (strIdCurParent.compareTo(strId) != 0)
                continue;
  
            llt.remove(lyrCur);
            rlrCur.dispose();
            blnGotIt = true;
        }
      
        return blnGotIt;
    }
View Full Code Here

      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
            continue;
        
         GfrLyrWMSTiledImageLayer lyrLeafCur = (GfrLyrWMSTiledImageLayer) lyrCur;
        
         String strIdCur = lyrLeafCur.getIdObjectGeoforgeWwdEarth();
        
         if (strIdCur.compareTo(strIdLayerLeaf) != 0)
            continue;
        
         double dblOpacityPrev = lyrCur.getOpacity();
View Full Code Here

      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
             continue;

         GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
         String strIdWmsCur = rlrCur.getIdParent();
        
         if (strIdWmsCur.compareTo(strIdWms) != 0)
            continue;
        
         rlrCur.setDisplayStateThis(bln);
        
         if (rlrCur.isAllowedDisplay())
            rlrCur.setEnabled(true);
         else
            rlrCur.setEnabled(false);
        
         blnGotIt = true;
      }
    
      if (! blnGotIt)
View Full Code Here

        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
               continue;
           
            GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
            String strIdCurParent = rlrCur.getIdParent();

            if (strIdCurParent.compareTo(strId) != 0)
                continue;
  
            llt.remove(lyrCur);
            rlrCur.dispose();
            blnGotIt = true;
        }
      
        return blnGotIt;
    }
View Full Code Here

      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
             continue;

         GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
        
         String strIdCur = rlrCur.getIdObjectGeoforgeWwdEarth();
        
         if (strIdCur.compareTo(strId) != 0)
            continue;
        
         rlrCur.setDisplayStateThis(bln);
        
         if (rlrCur.isAllowedDisplay())
            rlrCur.setEnabled(true);
         else
            rlrCur.setEnabled(false);
      
         blnGotIt = true;
         break;
      }
    
View Full Code Here

      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
             continue;

         GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
         llt.remove(rlrCur);
         //rlrCur.removeAllRenderables();
         //rlrCur.destroy();
         blnGotIt = true;
      }
View Full Code Here

        Object obj = GfrBasicLayerFactory.s_createComponent(caps, params);
       
        if (obj == null)
           return null;
       
        GfrLyrWMSTiledImageLayer objLayer = (GfrLyrWMSTiledImageLayer) obj;
       
        String strErrorCheck = objLayer.getErrorCheck();
       
        if (strErrorCheck != null)
        {
           GfrSetRlrTopSecOgcWmss._LOGGER_.warning(strErrorCheck);
           return null;
        }
       
        LayerList llt = super._cnv.getModel().getLayers();
        llt.add(objLayer);
        objLayer.setIdParent(strIdParent);
        objLayer.setUniqueIdGtr(strId);
       
        boolean blnEnable = false;     
        boolean blnIsCheckedParent = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(super._strIdViewer, strIdParent);
        boolean blnIsCheckedThis = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(super._strIdViewer, strId);

         if (blnIsCheckedParent)
         {
             if (blnIsCheckedThis)
             {
                blnEnable = true;
             }
         }
       
        objLayer.setEnabled(blnEnable);
        objLayer.setDisplayStateThis(blnIsCheckedThis); // !!
       
        return obj;

   }
View Full Code Here

           
            if (strIdCurParent.compareTo(strIdParent) != 0)
                continue;
           
            GfrLyrWMSTiledImageLayer lyrChildCur = (GfrLyrWMSTiledImageLayer) lyrCur;
           
            lyrChildCur.setDisplayStateParent(bln);
            boolean blnIsValidForDisplay = lyrChildCur.isAllowedDisplay();
           
           
            if (blnIsValidForDisplay)
               lyrChildCur.setEnabled(true);
            else
               lyrChildCur.setEnabled(false);
            // ATTN: notion of state from control
            blnShouldRedraw = true;
        }
     
View Full Code Here

TOP

Related Classes of org.geoforge.worldwindogc.layer.GfrLyrWMSTiledImageLayer

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.