src.gov.nasa.worldwind.util.webview.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
WebView
Provides classes for loading web content, laying out and rendering the content as an OpenGL texture, and interacting
with the rendered content.
{@link gov.nasa.worldwind.render.AbstractBrowserBalloon} uses WebView to implement a balloon that contains web content.
See {@link gov.nasa.worldwindx.examples.Balloons} for an example of usage.
To use WebView:
- Create an instance of {@link gov.nasa.worldwind.util.webview.WebView} using {@link
gov.nasa.worldwind.util.webview.WebViewFactory}
- Loading content into the WebView using {@link gov.nasa.worldwind.util.webview.WebView#setHTMLString}
- Load the WebView into an OpenGL texture using {@link
gov.nasa.worldwind.util.webview.WebView#getTextureRepresentation}
- Draw the texture in WorldWind
- (Optional) Forward user input to the WebView to make the page interactive using {@link
gov.nasa.worldwind.util.webview.WebView#sendEvent}