Package gov.nasa.worldwind.layers

Examples of gov.nasa.worldwind.layers.Layer


        
         if (lstPickedObjects!=null && !lstPickedObjects.isEmpty())
         {
            for (PickedObject potCur:lstPickedObjects )
            {
               Layer lyrCur = potCur.getParentLayer();

               if (lyrCur == null)
                  continue;
              
               this._lyrDragged_ = lyrCur;
              
               // hide label if any
              
               if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngPntAbs)
               {
                  ((GfrRlrObjTloRndSngPntAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndMltAbs)
               {
                  ((GfrRlrObjTloRndMltAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngSurfaceAbs)
               {
                  ((GfrRlrObjTloRndSngSurfaceAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else
               {
                  // tbrls
                  System.err.println(">> started dragging tbrls: lyrCur.getClass().toString()=" + lyrCur.getClass().toString());
               }

               break;  
            }
         }
View Full Code Here


        
         if (lstPickedObjects!=null && !lstPickedObjects.isEmpty())
         {
            for (PickedObject potCur:lstPickedObjects )
            {
               Layer lyrCur = potCur.getParentLayer();

               if (lyrCur == null)
                  continue;
              
               this._lyrDragged_ = lyrCur;
              
               // hide label if any
              
               if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngPntAbs)
               {
                  ((GfrRlrObjTloRndSngPntAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndMltAbs)
               {
                  ((GfrRlrObjTloRndMltAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngSurfaceAbs)
               {
                  ((GfrRlrObjTloRndSngSurfaceAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else
               {
                  // tbrls
                  System.err.println(">> started dragging tbrls: lyrCur.getClass().toString()=" + lyrCur.getClass().toString());
               }

               break;  
            }
         }
View Full Code Here

           
               if (lstPickedObjects!=null && !lstPickedObjects.isEmpty())
               {
                  for (PickedObject potCur:lstPickedObjects )
                  {
                     Layer lyrCur = potCur.getParentLayer();
                    
                     if (lyrCur != null)
                     {
                       if (lyrCur != _lyrPointNew_)
                          return;
View Full Code Here

        params.setValue(AVKey.URL_CONNECT_TIMEOUT, 30000);
        params.setValue(AVKey.URL_READ_TIMEOUT, 30000);
        params.setValue(AVKey.RETRIEVAL_QUEUE_STALE_REQUEST_LIMIT, 60000);

        Factory factory = (Factory) WorldWind.createConfigurationComponent(AVKey.LAYER_FACTORY);
        Layer layer = (Layer) factory.createFromConfigSource(caps, params);
        layer.setOpacity(0.6);

        return layer;
    }
View Full Code Here

        
         if (lstPickedObjects!=null && !lstPickedObjects.isEmpty())
         {
            for (PickedObject potCur:lstPickedObjects )
            {
               Layer lyrCur = potCur.getParentLayer();

               if (lyrCur == null)
                  continue;
              
               this._lyrDragged_ = lyrCur;
              
               // hide label if any
              
               if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngPntAbs)
               {
                  ((GfrRlrObjTloRndSngPntAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndMltAbs)
               {
                  ((GfrRlrObjTloRndMltAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else if (this._lyrDragged_ instanceof GfrRlrObjTloRndSngSurfaceAbs)
               {
                  ((GfrRlrObjTloRndSngSurfaceAbs) this._lyrDragged_).setVisibleAnnotation(false);
               }
              
               else
               {
                  System.err.println(">> started dragging tbrls : lyrCur.getClass().toString()=" + lyrCur.getClass().toString());
               }

               break;  
            }
         }
View Full Code Here

               GfrSetRlrTopMainOgcWmssAbs._LOGGER_.info("objLayerLeaf == null, strId=" + strId);
               return;
            }
           
            float flt = GfrWrpBasPrsDspPrjRndWwdEarthImg.getInstance().getTransparency(strId);
            Layer lyrLeaf = (Layer) objLayerLeaf;

            lyrLeaf.setOpacity((double) flt);
        
            return;
         }
        
        
View Full Code Here

         GfrSetRlrTopMainOgcWmssAbs._LOGGER_.info("objLayerLeaf == null, strId=" + strId);
         return;
      }

      float flt = GfrWrpBasPrsDspPrjRndWwdEarthImg.getInstance().getTransparency(strId);
      Layer lyrLeaf = (Layer) objLayerLeaf;
     
      lyrLeaf.setOpacity((double) flt);
   }
View Full Code Here

               GfrSetRlrTopSecOgcWmss._LOGGER_.info("obj == null, strId=" + strId);
               return;
            }
           
            float flt = GfrWrpBasPrsDspPrjRndWwdEarthImg.getInstance().getTransparency(strId);
            Layer lyrLeaf = (Layer) objLayerLeaf;

            lyrLeaf.setOpacity((double) flt);
           
            return;
          }

         // ----
View Full Code Here

         GfrSetRlrTopSecOgcWmss._LOGGER_.info("objLayerLeaf == null, strId=" + strId);
         return;
      }
     
      float flt = GfrWrpBasPrsDspPrjRndWwdEarthImg.getInstance().getTransparency(strId);
      Layer lyrLeaf = (Layer) objLayerLeaf;

      lyrLeaf.setOpacity((double) flt);
   }
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.layers.Layer

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.