Package gov.nasa.worldwind.layers

Examples of gov.nasa.worldwind.layers.LayerList


 
  
   @Override
   public void removeAllObjects() throws Exception
   {
      LayerList llt = super._cnv.getModel().getLayers();
       
      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfacePolygonAre))
             continue;

         GfrRlrObjTloAbs rlrCur = (GfrRlrObjTloAbs) lyrCur;
         llt.remove(rlrCur);
         rlrCur.removeAllRenderables();
         rlrCur.destroy();
      }
    
   }
View Full Code Here


   }

   @Override
   public Object addObjectVariable(String strId) throws Exception
   {     
      LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfacePolygonAre))
                continue;
           
            String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();

           
            if (strIdCur.compareTo(strId) != 0)
                continue;
           
            // bug
            String str = "already loaded: " + strId;
            GfrSetRlrTopSecEclAres._LOGGER_.warning(str);
            return null;
        }


        // ----
        GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfacePolygonAre(
                (PropertyChangeListener) this,
                strId);
       
        if (! lyr.init())
        {
           String str = "! lyr.init()";
            GfrSetRlrTopSecEclAres._LOGGER_.severe(str);
            throw new Exception(str);
        }
       
        llt.add(lyr);
       
        if (! GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strId))
        {
            lyr.setEnabled(false);
            return lyr;
View Full Code Here

   }
  
   @Override
   public void removeAllObjects() throws Exception
   {
      LayerList llt = super._cnv.getModel().getLayers();
       
      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrRlrObjTloRndSngPntPlc))
             continue;

         GfrRlrObjTloAbs rlrCur = (GfrRlrObjTloAbs) lyrCur;
         llt.remove(rlrCur);
         rlrCur.removeAllRenderables();
         rlrCur.destroy();
      }
    
   }
View Full Code Here

   }

   @Override
   public Object addObjectVariable(String strId) throws Exception
   {     
      LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloRndSngPntPlc))
                continue;
           
            String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();

           
            if (strIdCur.compareTo(strId) != 0)
                continue;
           
            // bug
            String str = "already loaded: " + strId;
            GfrSetRlrTopSecEclPlcs._LOGGER_.warning(str);
            return null;
        }

        // ----
        GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngPntPlc(
                (PropertyChangeListener) this, strId);
       
        if (! lyr.init())
        {
           String str = "! lyr.init()";
            GfrSetRlrTopSecEclPlcs._LOGGER_.severe(str);
            throw new Exception(str);
        }
       
        llt.add(lyr);
     
        if (! GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strId))
        {
            lyr.setEnabled(false);
            return lyr;
View Full Code Here

      return obj;
   }
  
   private boolean _selectObject_(String strId, boolean bln) throws Exception
   {
      LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfaceLineSegWiseYesEcl))
                continue;
View Full Code Here

  
  
   @Override
   public void removeAllObjects() throws Exception
   {
      LayerList llt = super._cnv.getModel().getLayers();
      boolean blnGotIt = false;
       
      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfaceSectorSct))
             continue;

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

   }

   @Override
   public Object addObjectVariable(String strId) throws Exception
   {     
      LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfaceSectorSct))
                continue;
           
            String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();

           
            if (strIdCur.compareTo(strId) != 0)
                continue;
           
            // bug
            String str = "already loaded: " + strId;
            GfrSetRlrTopMainSctsAbs._LOGGER_.warning(str);
            return null;
        }


        // ----
        GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfaceSectorSct(
                (PropertyChangeListener) this,
                strId);
       
        if (! lyr.init())
        {
           String str = "! lyr.init()";
            GfrSetRlrTopMainSctsAbs._LOGGER_.severe(str);
            throw new Exception(str);
        }
       
        llt.add(lyr);
       
        javax.swing.SwingUtilities.invokeLater(new Runnable()
            {
                @Override
                public void run()
View Full Code Here

      super.update(obs, objEvt);
   }
  
   private void _updateTransparency_(String strIdLayerLeaf, float fltAlpha)
   {     
      LayerList llt = super._cnv.getModel().getLayers();
     
      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
            continue;
View Full Code Here

  
  
   private boolean _removeAllObjectsLayer_() throws Exception
   {
      boolean blnGotObject = false;
      LayerList llt = super._cnv.getModel().getLayers();
     
      for (Layer lyrCur: llt)
      {
         if (! (lyrCur instanceof GfrLyrWMSTiledImageLayer))
            continue;
        
         llt.remove(lyrCur);
         lyrCur.dispose();
         blnGotObject = true;
      }
     
      return blnGotObject;
View Full Code Here

    */
   @Override
    public boolean removeObjectVariable(String strId) throws Exception
    {
       boolean blnGotIt = false;
       LayerList llt = super._cnv.getModel().getLayers();
       
        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

TOP

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

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.