Examples of PointPlacemarkAttributes


Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

        return GfrFactoryObjPntPin._INSTANCE_;
    }
   
    static private PointPlacemarkAttributes _s_getAttributes_()
    {
       PointPlacemarkAttributes ppa = new PointPlacemarkAttributes();
      
       ppa.setScale(0.5);
       ppa.setImageOffset(new Offset(18.5d, 4d, AVKey.PIXELS, AVKey.PIXELS)); // see comment amadeus tloPushpin
      
       String strPathRelImage = "images/pushpins/plain-green.png";
       ppa.setImageAddress(strPathRelImage);

       return ppa;
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

         {
            String strPathRelImage = (String) evt.getValue();

            try
            {
               PointPlacemarkAttributes ppa = super.getAttributes();
               ppa.setImageAddress(strPathRelImage);
               this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
               return;
            }
            catch (Exception exc)
            {
View Full Code Here

Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

          super.setLabelText(strLabel);
      }
     
      super.setLineEnabled(true);

      PointPlacemarkAttributes ppa = new PointPlacemarkAttributes();
      ppa.setScale(0.5);

      //MEMO Amadeus
      //!!!! Why those parameters??? I don't know, but if this line is commented
      //placemarks have a display artefact : an offset from the real lat lon position
      ppa.setImageOffset(new Offset(18.5d, 4d, AVKey.PIXELS, AVKey.PIXELS));
      //!!!!!

      String strPathRelImage = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOnePushpin.getInstance().getKindColorPushpinValue(super._strId);
      ppa.setImageAddress(strPathRelImage);

      super.setAttributes(ppa);
   }
View Full Code Here

Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

        return GfrFactoryObjPntCircle._INSTANCE_;
    }
   
    static private PointPlacemarkAttributes _s_getAttributes_()
    {
       PointPlacemarkAttributes ppa = new PointPlacemarkAttributes();
      
       ppa.setLabelColor("ffffffff");
       ppa.setLineMaterial(new Material(Color.GREEN));
       ppa.setUsePointAsDefaultImage(true);
       ppa.setScale(10d);

       return ppa;
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

    }
   
    @Override
    public void setAttributesThis() throws Exception
    {
       PointPlacemarkAttributes ppa = new PointPlacemarkAttributes();
        Color colRgb = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOnePointCircle.getInstance().getColor(super._strId);
       
        float fltAlpha = GfrWrpBasPrsDspPrjRndWwdEarthShpDimOnePointCircle.getInstance().getTransparency(super._strId);
        fltAlpha *=100;
        fltAlpha *= 2.5;
        int intAlpha = Math.round(fltAlpha);
        Color col = new Color(colRgb.getRed(), colRgb.getGreen(), colRgb.getBlue(), intAlpha);
       
       
        ppa.setLineMaterial(new Material(col));
        ppa.setScale(this._douScale_);
        ppa.setUsePointAsDefaultImage(true);   
        super.setAttributes(ppa);
    }
View Full Code Here

Examples of gov.nasa.worldwind.render.PointPlacemarkAttributes

         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.COLOR)
          {
             Color col = (Color) evt.getValue();
            
             PointPlacemarkAttributes ppa = super.getAttributes();
             ppa.setLineMaterial(new Material(col));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          if (objWhat == EnuEvtDspRndWwdEarthShpDimOne.TRANSPARENCY)
          {
             Float flo = (Float) evt.getValue();
             float fltAlpha = flo.floatValue();
             fltAlpha *=100;
             fltAlpha *= 2.55;
             int intAlpha = Math.round(fltAlpha);
            
             PointPlacemarkAttributes ppa = super.getAttributes();
             Color colOld = ppa.getLineMaterial().getDiffuse();
             Color colNew = new Color(colOld.getRed(), colOld.getGreen(), colOld.getBlue(), intAlpha);
             ppa.setLineMaterial(new Material(colNew));
             this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
             return;
          }
         
          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.