Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.ScreenAnnotation


      this.annotationAttributes.setEffect(AVKey.TEXT_EFFECT_OUTLINE);
      this.annotationAttributes.setFont(Font.decode("Arial-Bold-14"));
      this.annotationAttributes.setTextColor(Color.WHITE);
      this.annotationAttributes.setBackgroundColor(Color.BLACK);
      this.annotationAttributes.setSize(new Dimension(220, 0));
      this.annotation = new ScreenAnnotation("", new Point(0, 0), this.annotationAttributes);
      this.annotation.getAttributes().setVisible(false);
      this.annotation.getAttributes().setDrawOffset(null); // use defaults
      this.shapeLayer.addRenderable(this.annotation);
   }
View Full Code Here


      this.annotationAttributes.setTextColor(Color.WHITE);
      this.annotationAttributes.setBackgroundColor(Color.BLACK);
      this.annotationAttributes.setSize(new Dimension(220, 0));
       
       
        this.annotation = new ScreenAnnotation("", new Point(0, 0), this.annotationAttributes);
        this.annotation.getAttributes().setVisible(false);
        this.annotation.getAttributes().setDrawOffset(null); // use defaults
        super.addRenderable(this.annotation);
    }
View Full Code Here

      String controlType = ((AVList) event.getTopObject()).getStringValue(AVKey.VIEW_OPERATION);
      if (controlType == null)
         return;

      ScreenAnnotation selectedObject = (ScreenAnnotation) event.getTopObject();

      this.lastPickPoint = event.getPickPoint();
      if (event.getEventAction().equals(SelectEvent.ROLLOVER))
      {
         // Highlight on rollover
View Full Code Here

    }

    protected void initialize()
    {
        // Set up screen annotation that will display the layer list
        this.annotation = new ScreenAnnotation("", new Point(0, 0));

        // Set annotation so that it will not force text to wrap (large width) and will adjust it's width to
        // that of the text. A height of zero will have the annotation height follow that of the text too.
        this.annotation.getAttributes().setSize(new Dimension(Integer.MAX_VALUE, 0));
        this.annotation.getAttributes().setAdjustWidthToText(AVKey.SIZE_FIT_TEXT);
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.render.ScreenAnnotation

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.