NASA World Wind

gov.nasa.worldwindx.examples
Class WebBrowserBalloons

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

public class WebBrowserBalloons
extends ApplicationTemplate

Illustrates how to use World Wind browser balloons to display HTML, JavaScript, and Flash content to the user in the form of a screen-aligned balloon. There are two browser balloon types: ScreenBrowserBalloon which displays a balloon at a point on the screen, and GlobeBrowserBalloon which displays a balloon attached to a position on the Globe.

Browser Balloon Content
A balloon's HTML content is specified by calling Balloon.setText(String) with a string containing either plain text or HTML + JavaScript. The balloon's visual attributes are specified by calling Balloon.setAttributes(gov.nasa.worldwind.render.BalloonAttributes) with an instance of BalloonAttributes.


Nested Class Summary
static class WebBrowserBalloons.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
WebBrowserBalloons()
           
 
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

WebBrowserBalloons

public WebBrowserBalloons()
Method Detail

main

public static void main(String[] args)

NASA World Wind