Package org.geoforge.guillc.internalframe

Examples of org.geoforge.guillc.internalframe.GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs


               BtnTransienMovObjsWwdEarthSecAbs btn = (BtnTransienMovObjsWwdEarthSecAbs) evt.getSource();
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(btn);
               String strIdViewerSource = null;

               strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
               GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
               String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

               if (strStateOrbitViewSource != null)
               {
                  GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
               }
View Full Code Here


               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }

                  _newMousePickedTloSegWiseYesEclSec(strIdViewerSource);
                  return true;
               }
               else
               {
                  // !!!!!!!!!!!!!!!!!!
               }
            }




         }
         //-- end segWiseYes piking


         //-- beg pointset by picking
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0)
            {
               String strTodo = "TODO: GfrMimTrsNewTloPickedSpnManWwdEarth";
               ActPrfPrjConstructOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0)
            {
               String strTodo = "TODO: GfrMimTrsNewTloPickedSpnSelWwdEarth";
               ActPrfPrjConstructOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               String strTodo = "TODO: GfrMimTrsNewTloPickedSpnSecWwdEarth";
               ActPrfPrjConstructOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }
         }
         //-- end pointset by picking

         //-- beg area by picking
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloAreEclMan(frmOwner);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloAreEclSel(frmOwner);
               return true;
            }

            /*
             * either located in external frame or internal frame !
             *
             * memo: external frames could be removed in the future
             */
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(mim);
               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }

                  _newMousePickedTloAreEclSec(strIdViewerSource);
                  return true;
               }
            }
         }
         //-- end area by picking

         //-- beg path by picking
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloPthEclMan(frmOwner);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloPthEclSel(frmOwner);
               return true;
            }

            /*
             * either located in external frame or internal frame !
             *
             * memo: external frames could be removed in the future
             */
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(mim);
               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }

                  _newMousePickedTloPthEclSec(strIdViewerSource);
                  return true;
               }
               else
               {
                  // !!!!!!!!!!!!!!!!!!
               }
            }
         }
         //-- end path by picking



         //-- beg placemark by picking
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloPlcEclMan(frmOwner);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);

               _newMousePickedTloPlcEclSel(frmOwner);
               return true;
            }



            /*
             * either located in external frame or internal frame !
             *
             * memo: external frames could be removed in the future
             */
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(mim);
               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }

                  _newMousePickedTloPlcEclSec(strIdViewerSource);
                  return true;
               }
               else
               {
                  // !!!!!!!!!!!!!!!!!!
               }

               return true;
            }
         }
         //-- end placemark by picking


         //-- beg point by picking
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloPntEclMan(frmOwner);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0)
            {
               JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);
               _newMousePickedTloPntEclSel(frmOwner);
               return true;
            }

            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(mim);
               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }

                  _newMousePickedTloPntEclSec(strIdViewerSource);
                  return true;
               }
               else
               {
                  // !!!!!!!!!!!!!!!!!!
               }

               return true;
            }
         }
         //-- end point by picking
      }


      //---beg New by editing tlo

      if (evt.getSource() instanceof GfrMimTrsAlrNewEdt)
      {

         GfrMimTrsAlrAbs mim = (GfrMimTrsAlrAbs) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         String strValueKindObject = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;

         //--

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
         {

            _newEditTloEclSegWiseYes_(frmOwner);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            _newEditTloEclSct_(frmOwner);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {
            _newEditTloEclSpn_(frmOwner);
            return true;
         }


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {
            _newEditTloEclAre_(frmOwner);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {
            _newEditTloEclPth_(frmOwner);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {
            _newEditTloEclPnt_(frmOwner);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {
            _newEditTloEclPlc_(frmOwner);
            return true;
         }

      }

      //---end New by editing tlo

      // --


      if (evt.getSource() instanceof GfrMimTrsAlrNewDrg)
      {
         GfrMimTrsAlrAbs mim = (GfrMimTrsAlrAbs) evt.getSource();

         String strValueKindObject = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());

         String strValueKindTargetWindow = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_TARGET_WINDOW.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;
         if (strValueKindTargetWindow == null || strValueKindTargetWindow.length() < 1)
            return false;
         //--

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               JInternalFrame ifrOwner = GfrIfrAbs.s_getInternalFrameOwner(mim);
               String strIdViewerSource = null;

               if (ifrOwner != null)
               {
                  strIdViewerSource = ((GfrIfrWinViewRunIdRegSerAbs) ifrOwner).getUniqueId();
                  GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs frm = (GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs) ifrOwner;
                  String strStateOrbitViewSource = frm.getRestorableStateOrbitView();

                  if (strStateOrbitViewSource != null)
                  {
                     GfrSerializeStateWwdSec.s_write(strStateOrbitViewSource, strIdViewerSource);
                  }
View Full Code Here

TOP

Related Classes of org.geoforge.guillc.internalframe.GfrIfrWinViewRunIdRegSerAppTopsWwdEarthAbs

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.