Package gov.nasa.worldwind.layers

Examples of gov.nasa.worldwind.layers.LayerList


   }

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

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


        // ----
        GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfaceLineSegWiseYesEcl(
                (PropertyChangeListener) this,
                strId);
       
        if (! lyr.init())
        {
           String str = "! lyr.init()";
            GfrSetRlrTopSecEclSegsWiseYes._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 boolean removeObjectVariable(String strId) throws Exception
    {
       LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloAbs))
                continue;
           
            GfrRlrObjTloAbs rlrCur = (GfrRlrObjTloAbs) lyrCur;
            String strIdCur = rlrCur.getIdObjectGeoforgeWwdEarth();

           
            if (strIdCur.compareTo(strId) != 0)
                continue;
  
            llt.remove(lyrCur);
            rlrCur.removeAllRenderables();
            rlrCur.destroy();
            return true;
        }
      
View Full Code Here

    }
  
   @Override
   protected boolean _selectObject(String strIdObjectTlo, boolean bln) throws Exception
   {     
      LayerList llt = super._cnv.getModel().getLayers();
       
        for (Layer lyrCur: llt)
        {
            if (! (lyrCur instanceof GfrRlrObjTloAbs))
                continue;
View Full Code Here

  

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

           
            if (strIdCur.compareTo(strId) != 0)
                continue;
  
            llt.remove(lyrCur);
            rlrCur.removeAllRenderables();
            rlrCur.destroy();
            return true;
        }
      
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 GfrRlrObjTloRndSngPntPnt))
                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 GfrRlrObjTloRndSngSurfacePolygonAre))
             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 GfrRlrObjTloRndSngSurfacePolygonAre))
               continue;

         String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();


         if (strIdCur.compareTo(strId) != 0)
               continue;

         // bug
         String str = "already loaded: " + strId;
         GfrSetRlrTopMainAresAbs._LOGGER_.warning(str);
         return null;
      }


      // ----
      GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfacePolygonAre(
               (PropertyChangeListener) this,
               strId);

      if (! lyr.init())
      {
         String str = "! lyr.init()";
         GfrSetRlrTopMainAresAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      llt.add(lyr);

      javax.swing.SwingUtilities.invokeLater(new Runnable()
         {
               @Override
               public void run()
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 GfrRlrObjTloRndMltPntCircleSpn))
                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 GfrRlrObjTloRndSngSurfacePolylinePth))
             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 GfrRlrObjTloRndSngSurfacePolylinePth))
                continue;
           
            String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();

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

        // ----
        GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfacePolylinePth(
                (PropertyChangeListener) this,
                strId);
       
        if (! lyr.init())
        {
           String str = "! lyr.init()";
            GfrSetRlrTopMainPthsAbs._LOGGER_.severe(str);
            throw new Exception(str);
        }
       
        llt.add(lyr);
       
        javax.swing.SwingUtilities.invokeLater(new Runnable()
            {
                @Override
                public void run()
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.