Package org.geoforge.worldwindogc.layer

Examples of org.geoforge.worldwindogc.layer.GfrLyrWMSTiledImageLayer


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

         GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
        
         String strIdCurParent = rlrCur.getIdParent();
        
         if (strIdCurParent.compareTo(strIdTlo) != 0)
            continue;
        
         //rlrCur.setDisplayStateParent(bln);
         String strIdCurThis = rlrCur.getIdObjectGeoforgeWwdEarth();
         boolean blnChild = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(_strIdViewer, strIdCurThis);
        
         boolean blnWasVisible = rlrCur.isEnabled();
        
         if (! blnWasVisible)
         {
            if (! bln)
               continue;
           
            // ----
            if (! blnChild)
               continue;
           
            // ----
            rlrCur.setEnabled(true);
            blnShouldRedraw = true;
           
            continue;
         }
        
         // blnWasVisible
         if (bln)
         {
            // !!!! bug
            continue;
         }
        
         // ! bln
         rlrCur.setEnabled(false);
         blnShouldRedraw = true;  
         continue;
      }
    
      return blnShouldRedraw;
View Full Code Here


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

         GfrLyrWMSTiledImageLayer rlrCur = (GfrLyrWMSTiledImageLayer) lyrCur;
        
        
        
        
        
         String strIdCurThis = rlrCur.getIdObjectGeoforgeWwdEarth();
        
         if (strIdCurThis.compareTo(strId) != 0)
            continue;
        
         String strIdCurParent = rlrCur.getIdParent();
        
         boolean blnIsCheckedParent = GfrWrpBasPrsDspPrjObjSecMltTogCbx.getInstance().isEnabled(_strIdViewer, strIdCurParent);
        
         if (! blnIsCheckedParent)
            return false;
        
        
         boolean blnWasEnabled = rlrCur.isEnabled();
        
         if (blnWasEnabled)
         {
            if (! bln)
            {
               rlrCur.setEnabled(false);
               return true;
            }
           
            // !!! bug
            return false;
         }
        
         rlrCur.setEnabled(bln);
         return true;
      }
    
      return false;
   }
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 strIdCur = rlrCur.getIdObjectGeoforgeWwdEarth();
        
         if (strIdCur.compareTo(strId) != 0)
            continue;
        
         rlrCur.setEnabled(bln);
         return true;
      }
    
      return false;
   }
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)
        {
           GfrSetRlrTopMainOgcWmssSel._LOGGER_.warning(strErrorCheck);
           // TODO: send event to registered listeners
           return null;
        }
       
        LayerList llt = super._cnv.getModel().getLayers();
        llt.add(objLayer);
        objLayer.setIdParent(strIdParent);
        objLayer.setUniqueIdGtr(strId);
       
        boolean bln = GfrWrpObjSttSngGlbSel.getInstance().isEnabled(strId);
        objLayer.setEnabled(bln);
       
        return obj;
   }
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.setEnabled(bln);
         return true;
      }
    
      return false;
   }
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)
        {
           GfrSetRlrTopMainOgcWmssMan._LOGGER_.warning(strErrorCheck);
           // TODO: send event to registered listeners
           return null;
        }
       
        LayerList llt = super._cnv.getModel().getLayers();
        llt.add(objLayer);
        objLayer.setIdParent(strIdParent);
        objLayer.setUniqueIdGtr(strId);
       
        boolean bln = GfrWrpObjSttSngGlbMan.getInstance().isEnabled(strId);
        objLayer.setEnabled(bln);
       
        return obj;
   }
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.