NASA World Wind

gov.nasa.worldwindx.examples
Class Balloons

java.lang.Object
  extended by gov.nasa.worldwindx.examples.ApplicationTemplate
      extended by gov.nasa.worldwindx.examples.Balloons

public class Balloons
extends ApplicationTemplate

Illustrates how to use a World Wind Balloon to display on-screen information to the user in the form of a screen-aligned text balloon. There are two abstract balloon types: ScreenBalloon which displays a balloon at a point on the screen, and GlobeBalloon which displays a balloon attached to a position on the Globe. For each abstract balloon type, there are two concrete types: AnnotationBalloon which provides support for simple text content with an optional image, and BrowserBalloon which provides support for complex HTML, JavaScript, and Flash content.

Balloon Content
A Balloon's content is specified by calling Balloon.setText(String), and its visual attributes are specified by calling Balloon.setAttributes(gov.nasa.worldwind.render.BalloonAttributes) with an instance of BalloonAttributes.

ScreenBalloon
ScreenBalloons display a screen-aligned balloon at a point on the screen. There are two concrete ScreenBalloon types:

GlobeBalloon
GlobeBalloons display a screen-aligned balloon attached to a position on the Globe.


Nested Class Summary
static class Balloons.AppFrame
           
 
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
 
Field Summary
protected static String BROWSER_BALLOON_CONTENT_PATH
           
 
Constructor Summary
Balloons()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_BALLOON_CONTENT_PATH

protected static final String BROWSER_BALLOON_CONTENT_PATH
See Also:
Constant Field Values
Constructor Detail

Balloons

public Balloons()
Method Detail

main

public static void main(String[] args)

NASA World Wind