Examples of GfrEvtMdlIdDatChangedGeometry


Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

   public void update(Observable obs, Object objEvt)
   {
      if (! (objEvt instanceof GfrEvtMdlIdDatChangedGeometry))
         return;
     
      GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
      String strId = evt.getId();
     
      if (strId.compareTo(this._strIdTlo_) != 0)
         return;
     
      ArrayList<Point2D.Double> lstP2d = (ArrayList<Point2D.Double>) evt.getGeometry();
      List<Position> lstPosition = new ArrayList<Position>();
     
      for (Point2D.Double p2dCur: lstP2d)
      {
         Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

       if (strIdEvt.compareTo(super._strId) != 0)
          return;
      
       if (objId instanceof GfrEvtMdlIdDatChangedGeometry)
       {
          GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          List<Position> lstPosition = new ArrayList<Position>();
         
          for (Point2D.Double p2dCur: lstP2d)
          {
             Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

       if (strIdEvt.compareTo(this._strId_) != 0)
          return;
      
       if (objId instanceof GfrEvtMdlIdDatChangedGeometry)
       {
          GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          List<Position> lstPosition = new ArrayList<Position>();
         
          for (Point2D.Double p2dCur: lstP2d)
          {
             Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

            String strIdEvt = mdlId.getId();

         if (strIdEvt.compareTo(super.getId()) != 0)
            return;
        
         GfrEvtMdlIdDatChangedGeometry evtGeom = (GfrEvtMdlIdDatChangedGeometry) objEvt;
        
         ArrayList<Position> altPos = (ArrayList<Position>) evtGeom.getGeometry();
        
         if (altPos==null || altPos.isEmpty())
         {
            if (super.isEnabled())
               setEnabled(false);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

   public void update(Observable obs, Object objEvt)
   {
      if (! (objEvt instanceof GfrEvtMdlIdDatChangedGeometry))
         return;
     
      GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
      String strId = evt.getId();
     
      if (strId.compareTo(super.getId()) != 0)
         return;
     
      ArrayList<Point2D.Double> lstP2d = (ArrayList<Point2D.Double>) evt.getGeometry();
      List<Position> lstPosition = new ArrayList<Position>();
     
      for (Point2D.Double p2dCur: lstP2d)
      {
         Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

         String strId = evtId.getId();
        
         if (strId.compareTo(super._strId) != 0)
            return;
        
         GfrEvtMdlIdDatChangedGeometry evtChange = (GfrEvtMdlIdDatChangedGeometry) evtId;
         List<Position> lstPos = (List<Position>) evtChange.getGeometry();
         _clear_();
        
         if (lstPos!=null && !lstPos.isEmpty())
         {
            try
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

               * . Point2D.Double[1].x ==> latMax
               * . Point2D.Double[1].y ==> lonMax
            */
         
         
          GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          Point2D.Double p2dMin = lstP2d.get(0);
          Point2D.Double p2dMax = lstP2d.get(1);

          Position posMin = Position.fromDegrees(p2dMin.y, p2dMin.x);
          Position posMax = Position.fromDegrees(p2dMax.y, p2dMax.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

         if (strIdEvt.compareTo(this._strId) != 0)
            return;

         if (objId instanceof GfrEvtMdlIdDatChangedGeometry)
         {
            GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
            Point2D.Double p2d = (Point2D.Double) evt.getGeometry();
            super.position = Position.fromDegrees(p2d.y, p2d.x);
            this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
            return;
         }
         // end data
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

       if (strIdEvt.compareTo(super._strId) != 0)
          return;
      
       if (objId instanceof GfrEvtMdlIdDatChangedGeometry)
       {
          GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          List<Position> lstPosition = new ArrayList<Position>();
         
          for (Point2D.Double p2dCur: lstP2d)
          {
             Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
View Full Code Here

Examples of org.geoforge.mdldat.event.GfrEvtMdlIdDatChangedGeometry

   public void update(Observable obs, Object objEvt)
   {
      if (! (objEvt instanceof GfrEvtMdlIdDatChangedGeometry))
         return;
     
      GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
     
      String strId = evt.getId();
     
      if (strId.compareTo(this._strIdTlo_) != 0)
         return;
     
      Point2D.Double p2d = (Point2D.Double) evt.getGeometry();
     
      List<Position> lstPosition = new ArrayList<Position>();
      Position pos = Position.fromDegrees(p2d.y, p2d.x);
      lstPosition.add(pos);
      super.setLocations(lstPosition);
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.