Package gov.nasa.worldwindx.examples
Class Balloons
- java.lang.Object
-
- gov.nasa.worldwindx.examples.ApplicationTemplate
-
- gov.nasa.worldwindx.examples.Balloons
-
public class Balloons extends ApplicationTemplate
Illustrates how to use a WorldWindto display on-screen information to the user in the form of a screen-aligned text balloon. There are two abstract balloon types:Balloonwhich displays a balloon at a point on the screen, andScreenBalloonwhich 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.GlobeBalloonBalloon Content
A Balloon's content is specified by calling, and its visual attributes are specified by callingBalloon.setText(String)with an instance ofBalloon.setAttributes(gov.nasa.worldwind.render.BalloonAttributes).BalloonAttributesScreenBalloon
ScreenBalloons display a screen-aligned balloon at a point on the screen. There are two concrete ScreenBalloon types:- a screen-attached balloon with support for multi-line text, a background image, simple HTML text markup, and simple text styling attributes.ScreenAnnotationBalloon- a screen-attached balloon with support for HTML, JavaScript, and Flash content.ScreenBrowserBalloon
GlobeBalloon
GlobeBalloons display a screen-aligned balloon attached to a position on the Globe.- a Globe-attached balloon with support for multi-line text, a background image, simple HTML text markup, and simple text styling attributes.GlobeAnnotationBalloon- a Globe-attached balloon with support for HTML, JavaScript, and Flash content.GlobeBrowserBalloon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalloons.AppFrame-
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
ApplicationTemplate.AppPanel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringBROWSER_BALLOON_CONTENT_PATH
-
Constructor Summary
Constructors Constructor Description Balloons()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)-
Methods inherited from class gov.nasa.worldwindx.examples.ApplicationTemplate
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
-
-
-
-
Field Detail
-
BROWSER_BALLOON_CONTENT_PATH
protected static final java.lang.String BROWSER_BALLOON_CONTENT_PATH
- See Also:
- Constant Field Values
-
-