Examples of LayerList


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 GfrRlrObjTloRndMltPntCircleSpn))
                continue;
           
            String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();

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

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

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

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 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

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 GfrRlrObjTloRndSngPntPlc))
             continue;

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

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 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

Examples of gov.nasa.worldwind.layers.LayerList

      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

Examples of gov.nasa.worldwind.layers.LayerList

  
  
   @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

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 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

Examples of gov.nasa.worldwind.layers.LayerList

      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

Examples of gov.nasa.worldwind.layers.LayerList

  
  
   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
TOP
Copyright © 2018 www.massapi.com. 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.