Examples of AVList


Examples of gov.nasa.worldwind.avlist.AVList

       if (! (objTopWwd instanceof AVList))
       {
          return;
       }
      
       AVList lstTopWwd = (AVList) objTopWwd;
      
       Object objHasContext = lstTopWwd.getValue(GfrKeysRnd.STR_HAS_CONTEXTUAL_MENU);
      
       if (objHasContext == null)
          return;
      
      
       Boolean booHasContextMenu = (Boolean) objHasContext;
      
       if (! booHasContextMenu.booleanValue())
            return;
      
       GfrPmuCtlDspWwdAbs pop = null;
      
       if (lstTopWwd instanceof GfrRndSurfaceSectorTloSct)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclSct(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }

       else if (lstTopWwd instanceof GfrRndSurfacePolygonTloAre)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclAre(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else if (lstTopWwd instanceof GfrRndSurfacePolylineWisNoTloPth)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclPth(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else if (lstTopWwd instanceof GfrRndSurfaceSegmentWiseYesTloEcl)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclSegWiseYes(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else if (lstTopWwd instanceof GfrRndPointPlacemarkPushpinTloPlc)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclPlc(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleLloSpn)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclSpn(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleTloPnt)
       {
          String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
          pop = new GfrPmuCtlDspWwdTloEclPnt(super._alrController, strId,
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
       }
      
       else
       {
          String str = "Uncaught instanceof lstTopWwd: " + lstTopWwd.getClass().toString();
          GfrCtrMenContextObjectSecRunOgcEcl._LOGGER_.severe(str);
          throw new Exception(str);
       }
      
       if (! pop.init())
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList


      if (!(objTopWwd instanceof AVList))
         return;

      AVList lstTopWwd = (AVList) objTopWwd;

      Object objHasContext = lstTopWwd.getValue(GfrKeysRnd.STR_HAS_CONTEXTUAL_MENU);

      if (objHasContext == null)
         return;


      Boolean booHasContextMenu = (Boolean) objHasContext;

      if (!booHasContextMenu.booleanValue())
         return;

      GfrPmuCtlDspWwdAbs pop = null;

      if (lstTopWwd instanceof GfrRndSurfaceSectorTloSct)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclSct(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndSurfacePolygonTloAre)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclAre(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndSurfacePolylineWisNoTloPth)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclPth(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndSurfaceSegmentWiseYesTloEcl)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclSegWiseYes(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndPointPlacemarkPushpinTloPlc)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclPlc(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleLloSpn)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclSpn(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleTloPnt)
      {
         String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
         pop = new GfrPmuCtlDspWwdTloEclPnt(super._alrController, strId, this._strValueKindTargetWindow);
      }
      else
      {
         String str = "uncaught instanceof: " + lstTopWwd.getClass().toString();
         GfrCtrMenContextObjectMainOgcEcl._LOGGER_.severe(str);
         throw new Exception(str);
      }

      if (!pop.init())
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

        this.setMinActiveAltitude(1);
    }

    private static LevelSet makeLevels(URLBuilder urlBuilder)
    {
        AVList params = new AVListImpl();

        params.setValue(AVKey.TILE_WIDTH, 512);
        params.setValue(AVKey.TILE_HEIGHT, 512);
        params.setValue(AVKey.DATA_CACHE_NAME, "geoservices.brgm.fr/risques/REM_NAPPE_SEDIM");
        params.setValue(AVKey.SERVICE, "http://geoservices.brgm.fr/risques");
       
        params.setValue(AVKey.DATASET_NAME, "REM_NAPPE_SEDIM");
        params.setValue(AVKey.FORMAT_SUFFIX, ".gif");
        params.setValue(AVKey.TRANSPARENCY_COLORS, 0);
       
        params.setValue(AVKey.NUM_LEVELS, 20);
        params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
        params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(.2d), Angle.fromDegrees(.2d)));
        params.setValue(AVKey.SECTOR, Sector.fromDegrees(41.32526397666552, 51.20139642647427, -5.625179091996616, 11.1443951255116));
        params.setValue(AVKey.TILE_URL_BUILDER, urlBuilder);
        //params.setValue(AVKey.EXPIRY_TIME, new GregorianCalendar(2007, 7, 6).getTimeInMillis());

        return new LevelSet(params);
    }
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

                {
                    extentHolders.add((ExtentHolder) o);
                }
                else if (o instanceof AVList)
                {
                    AVList avl = (AVList) o;

                    Object b = avl.getValue(AVKey.FEEDBACK_ENABLED);
                    if (b == null || !Boolean.TRUE.equals(b))
                        continue;

                    if (avl.getValue(AVKey.FEEDBACK_REFERENCE_POINT) != null)
                    {
                        screenExtents.add(new ExtentVisibilitySupport.ScreenExtent(
                            (Vec4) avl.getValue(AVKey.FEEDBACK_REFERENCE_POINT),
                            (Rectangle) avl.getValue(AVKey.FEEDBACK_SCREEN_BOUNDS)));
                    }
                }
            }

            if (!extentHolders.isEmpty())
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

      //if (setStyleChild == null || setStyleChild.isEmpty())
      {
         InfoChildWms lioLayerInfo = InfoChildWms.s_create(capWms, capChild, null);
         //_tempoDumpInfos_(lioLayerInfo);
        
         AVList lstParamsNew = lioLayerInfo.getParams();
        
         Object objComponent = FactoryChildWms.s_create(capWms, lstParamsNew);
        
         // current limitation
         // ATTN: below: same "if" in use
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

       * beg tempo
       */



      AVList lstParamsNew = lioCur.getParams();
      String strPathAbs = "C:\\_tempo\\" + _INT_COUNT_+ "_" + lioCur.getLayerNames() + ".txt";
      File fle = new File(strPathAbs);



      BufferedWriter out =
         new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fle), "UTF8"));

      Set<Map.Entry<String, Object>> setKeyToValue = lstParamsNew.getEntries();

      Iterator it = setKeyToValue.iterator();

      while(it.hasNext())
      {
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

    // end: instantiate logger for this class
    // ----
   
    static public Object s_createComponent(GfrWMSCapabilities caps, AVList params)
    {
        AVList configParams = params.copy(); // Copy to insulate changes from the caller.

        // Some wms servers are slow, so increase the timeouts and limits used by world wind's retrievers.
        configParams.setValue(AVKey.URL_CONNECT_TIMEOUT, 30000);
        configParams.setValue(AVKey.URL_READ_TIMEOUT, 30000);
        configParams.setValue(AVKey.RETRIEVAL_QUEUE_STALE_REQUEST_LIMIT, 60000);

        try
        {
            Factory factory = (Factory) WorldWind.createConfigurationComponent(GfrBasicElevationModelFactory.GFR_KEY_TERRAIN);
            Object obj = factory.createFromConfigSource(caps, configParams);
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

    // end: instantiate logger for this class
    // ----
  
   static public Object s_create(GfrWMSCapabilities capParent, AVList lstParamsChild)
    {
        AVList lstParamsChildClone = lstParamsChild.copy(); // Copy to insulate changes from the caller.

        // Some wms servers are slow, so increase the timeouts and limits used by world wind's retrievers.
        lstParamsChildClone.setValue(AVKey.URL_CONNECT_TIMEOUT, 30000);
        lstParamsChildClone.setValue(AVKey.URL_READ_TIMEOUT, 30000);
        lstParamsChildClone.setValue(AVKey.RETRIEVAL_QUEUE_STALE_REQUEST_LIMIT, 60000);

        try
        {
            String strKey = FactoryChildWms._s_getFactoryKeyForCapabilities_(capParent);
           
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

        super();
    }
   
    static public Object s_createComponent(GfrWMSCapabilities caps, AVList params)
    {
        AVList configParams = params.copy(); // Copy to insulate changes from the caller.

        // Some wms servers are slow, so increase the timeouts and limits used by world wind's retrievers.
        configParams.setValue(AVKey.URL_CONNECT_TIMEOUT, 30000);
        configParams.setValue(AVKey.URL_READ_TIMEOUT, 30000);
        configParams.setValue(AVKey.RETRIEVAL_QUEUE_STALE_REQUEST_LIMIT, 60000);

        try
        {
            Factory factory = (Factory) WorldWind.createConfigurationComponent(GfrBasicLayerFactory.GFR_KEY_LAYER);
            Object obj = factory.createFromConfigSource(caps, configParams);
View Full Code Here

Examples of gov.nasa.worldwind.avlist.AVList

         return null;

      if (!(objTop instanceof AVList))
         return null;

      AVList lst = (AVList) objTop;

      String strValueRolloverValue = lst.getStringValue(this._strRolloverKey_);

      return strValueRolloverValue;
   }
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.