Examples of GfrEvtMdlIdDspRndWwdEarthShpDimTwo


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

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

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

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

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

    {
       // beg display
      
       if (objEvt instanceof GfrEvtMdlIdDspRndWwdEarthShpDimTwo)
       {
          GfrEvtMdlIdDspRndWwdEarthShpDimTwo evt = (GfrEvtMdlIdDspRndWwdEarthShpDimTwo) objEvt;
         
          String strId = evt.getId();
         
          if (strId.compareTo(this._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 == EnuEvtDspRndWwdEarthDimTwo.COLOR_IN) // what about transparency?
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setInteriorMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_IN)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setInteriorOpacity((double) fltAlpha);
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.COLOR_OUT) // what about transparency?
          {
             Color col = (Color) evt.getValue();
             BasicShapeAttributes bsa = (BasicShapeAttributes) super.getAttributes();
             bsa.setOutlineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_OUT)
          {
             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;
          }
         
         
          return;
       }
      
       // end display
      
      
       // beg data
      
       GfrEvtMdlIdAbs objId = (GfrEvtMdlIdAbs) objEvt;
      
       String strIdEvt = objId.getId();
      
       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.mdldsp.event.render.wwd.GfrEvtMdlIdDspRndWwdEarthShpDimTwo

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorIn(strs, colValue);

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

      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorIn(strId, colValue);

         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strId, EnuEvtDspRndWwdEarthDimTwo.COLOR_IN, colValue);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

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

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setTransparencyIn(strs, fltValue);
        
         for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strs[i], EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_IN, flo);
           super.notifyObservers(objEvt);
        }
      }
     
      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setTransparencyIn(strId, fltValue);
        
         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strId, EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_IN, flo);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

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

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorOut(strs, colValue);

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

      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorOut(strId, colValue);

         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strId, EnuEvtDspRndWwdEarthDimTwo.COLOR_OUT, colValue);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

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

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setTransparencyOut(strs, fltValue);
        
         for (int i=0; i<strs.length; i++)
        {
           super.setChanged();
           Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strs[i], EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_OUT, flo);
           super.notifyObservers(objEvt);
        }
      }
     
      else
      {
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setTransparencyOut(strId, fltValue);
        
         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strId, EnuEvtDspRndWwdEarthDimTwo.TRANSPARENCY_OUT, flo);
         super.notifyObservers(objEvt);
      }
   }
View Full Code Here

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

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

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

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

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

         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorIn(strs, colValue);

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

         return;
      }

      // random color

      for (int i = 0; i < strs.length; i++)
      {
         Color colCur = GfrColorFactory.s_getRandom();
         GfrWrpBasPrsDspPrjRndWwdEarthShpDimTwo.getInstance().setColorIn(strs[i], colCur);

         super.setChanged();
         Object objEvt = new GfrEvtMdlIdDspRndWwdEarthShpDimTwo(strs[i], EnuEvtDspRndWwdEarthDimTwo.COLOR_IN, colCur);
         super.notifyObservers(objEvt);
      }
     
   }
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.