Package org.geoforge.guillc.popupmenu

Examples of org.geoforge.guillc.popupmenu.GfrPmuCtlDspWwdAbs


       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())
        {
            String str = "! pop.init()";
            GfrCtrMenContextObjectSecRunOgcEcl._LOGGER_.severe(str);
            throw new Exception(str);
        }

        Component cmpSource = (Component) evt.getSource();
        pop.show(cmpSource, evt.getMouseEvent().getX(), evt.getMouseEvent().getY());
       
    }
View Full Code Here


      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())
      {
         String str = "! pop.init()";
         GfrCtrMenContextObjectMainOgcEcl._LOGGER_.severe(str);
         throw new Exception(str);
      }

      Component cmpSource = (Component) evt.getSource();
      pop.show(cmpSource, evt.getMouseEvent().getX(), evt.getMouseEvent().getY());
   }
View Full Code Here

TOP

Related Classes of org.geoforge.guillc.popupmenu.GfrPmuCtlDspWwdAbs

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.