Examples of GfrEvtMdlIdDspRndWwdEarthShpDimOneLine


Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

    {
       // beg display
      
       if (objEvt instanceof GfrEvtMdlIdDspRndWwdEarthShpDimOneLine)
       {
          GfrEvtMdlIdDspRndWwdEarthShpDimOneLine evt = (GfrEvtMdlIdDspRndWwdEarthShpDimOneLine) objEvt;
         
          String strId = evt.getId();
         
          if (strId.compareTo(super._strId) != 0)
             return;
         
          Object objWhat = evt.getWhat();
         
          if (objWhat == EnuEvtDspRndWwdEarthShp.TOOLTIP)
          {
             Boolean boo = (Boolean) evt.getValue();
             super.setValue(GfrKeysRnd.STR_HAS_TOOLTIP, boo.booleanValue());
             // memo: no need to send event to redraw!
             return;
          }
         

         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS)
          {
             Integer itg = (Integer) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineWidth(itg.doubleValue());
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
         
          return;
       }
      
       // end display
      
      
       // beg data
      
       GfrEvtMdlIdAbs objId = (GfrEvtMdlIdAbs) objEvt;
      
       String strIdEvt = objId.getId();
      
       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.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setThickness(strs, intValue);

        for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS, itgValue);
           super.notifyObservers(objEvt);
        }
      }

      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setThickness(strId, intValue);

         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strId, EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS, itgValue);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setColor(strs, colValue);

        for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOne.COLOR, colValue);
           super.notifyObservers(objEvt);
        }
      }

      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setColor(strId, colValue);

         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strId, EnuEvtDspRndWwdEarthShpDimOne.COLOR, colValue);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setTransparency(strs, fltValue);
        
         for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY, flo);
           super.notifyObservers(objEvt);
        }
      }
     
      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setTransparency(strId, fltValue);
        
         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strId, EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY, flo);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setKindAnnotation(strs, strValue);
        
         for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShp.ANNOTATION, strValue);
           super.notifyObservers(objEvt);
        }
      }
     
      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setKindAnnotation(strId, strValue);
        
         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strId, EnuEvtDspRndWwdEarthShp.ANNOTATION, strValue);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setTooltip(strs, blnValue);
        
         for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShp.TOOLTIP, boo);
           super.notifyObservers(objEvt);
        }
      }
     
      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setTooltip(strId, blnValue);
        
         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strId, EnuEvtDspRndWwdEarthShp.TOOLTIP, boo);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

      Integer itgValue = new Integer(intValue);
     
      for (int i=0; i<strs.length; i++)
      {
        super.setChanged();
        Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS, itgValue);
        super.notifyObservers(objEvt);
      }
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setColor(strs, colValue);

         for (int i=0; i<strs.length; i++)
         {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOne.COLOR, colValue);
           super.notifyObservers(objEvt);
         }
        
         return;
      }
     
      // random color
     
      for (int i=0; i<strs.length; i++)
      {
         Color colCur = GfrColorFactory.s_getRandom();
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setColor(strs[i], colCur);
        
        super.setChanged();
        Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOne.COLOR, colCur);
        super.notifyObservers(objEvt);
      }

   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

      GfrWrpBasPrsDspPrjRndWwdEarthShpDimOneLineWiseNo.getInstance().setTransparency(strs, fltValue);
     
      for (int i=0; i<strs.length; i++)
      {
        super.setChanged();
        Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimOneLine(strs[i], EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY, flo);
        super.notifyObservers(objEvt);
      }
     
   }
View Full Code Here

Examples of org.geoforge.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimOneLine

    {
       // beg display
      
       if (objEvt instanceof GfrEvtMdlIdDspRndWwdEarthShpDimOneLine)
       {
          GfrEvtMdlIdDspRndWwdEarthShpDimOneLine evt = (GfrEvtMdlIdDspRndWwdEarthShpDimOneLine) objEvt;
         
          String strId = evt.getId();
         
          if (strId.compareTo(this._strIdParent_) != 0)
             return;
         
          Object objWhat = evt.getWhat();
         
          if (objWhat == EnuEvtDspRndWwdEarthShp.TOOLTIP)
          {
             Boolean boo = (Boolean) evt.getValue();
             super.setValue(GfrKeysRnd.STR_HAS_TOOLTIP, boo.booleanValue());
             // memo: no need to send event to redraw!
             return;
          }
         

         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOneLine.THICKNESS)
          {
             Integer itg = (Integer) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineWidth(itg.doubleValue());
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
         
          return;
       }
      
       // end display
      
      
       // beg data
      
       if (objEvt instanceof GfrEvtMdlIdDatRenamedMlo)
      {
         GfrEvtMdlIdDatRenamedMlo evt = (GfrEvtMdlIdDatRenamedMlo) objEvt;
         String strIdChild = evt.getId();
        
         if (strIdChild.compareTo(super._strId) != 0)
            return;
        
         String strNameNewChild = evt.getValueNew();
         super.setValue(gov.nasa.worldwind.avlist.AVKey.DISPLAY_NAME, strNameNewChild);
         // memo: no need to redraw, coz of just handling toolTip
        
         return;
      }
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.