NASA World Wind

gov.nasa.worldwind.render
Class ScreenBrowserBalloon

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.render.AbstractBalloon
              extended by gov.nasa.worldwind.render.AbstractBrowserBalloon
                  extended by gov.nasa.worldwind.render.ScreenBrowserBalloon
All Implemented Interfaces:
AVList, Disposable, MessageListener, SelectListener, Balloon, Highlightable, OrderedRenderable, Renderable, ScreenBalloon, HotSpot, WWObject, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, PropertyChangeListener, EventListener

public class ScreenBrowserBalloon
extends AbstractBrowserBalloon
implements ScreenBalloon

A ScreenBalloon that displays HTML, JavaScript, and Flash content using the system's native browser, and who's origin is located at a point on the screen.

See Also:
AbstractBrowserBalloon

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractBrowserBalloon
AbstractBrowserBalloon.BrowserControl, AbstractBrowserBalloon.FrameGeometryInfo
 
Field Summary
protected  Point screenLocation
          Indicates this balloon's screen location.
 
Fields inherited from class gov.nasa.worldwind.render.AbstractBrowserBalloon
browserControls, DEFAULT_NATIVE_SIZE, DEFAULT_OUTLINE_PICK_WIDTH, DEFAULT_WEB_VIEW_FACTORY, drawBrowserControls, drawResizeControl, drawTitleBar, eyeDistance, FRAME_GEOMETRY_ELLIPSE_SLICES, FRAME_GEOMETRY_RECTANGLE_CORNER_SLICES, frameInfo, frameTimeStamp, geomTimeStamp, lastPickPoint, osh, outlinePickWidth, pickLayer, pickSupport, resourceResolver, screenExtent, screenOffset, screenPickExtent, screenRect, textUpdateTime, visibilityAction, webView, webViewContentSize, webViewCreationFailed, webViewRect, webViewTimeStamp
 
Fields inherited from class gov.nasa.worldwind.render.AbstractBalloon
activeAttributes, alwaysOnTop, attributes, defaultAttributes, delegateOwner, highlightAttributes, highlighted, maxActiveAltitude, minActiveAltitude, pickEnabled, text, textDecoder, visible
 
Constructor Summary
ScreenBrowserBalloon(String text, Point point)
          Constructs a new ScreenBrowserBalloon with the specified text content and screen location.
 
Method Summary
protected  void computeBalloonPoints(DrawContext dc)
          Computes and stores this balloon's screen coordinates.
 Point getScreenLocation()
          Get the position of the balloon on the screen.
 void setScreenLocation(Point point)
          Set the screen position of the balloon.
protected  void setupDepthTest(DrawContext dc)
          
 
Methods inherited from class gov.nasa.worldwind.render.AbstractBrowserBalloon
addAllBrowserControls, addBrowserControl, addBrowserControl, addBrowserControl, beginDrawing, bindWebViewTexture, computeFramePickRect, computeFrameRectForWebViewRect, computeGeometry, computeOffset, computeOutlinePickWidth, computeSize, computeWebViewRectForFrameRect, convertToWebView, createDefaultBrowserControls, createFrameVertices, createLinkPickedObject, createPickedObject, determineWebViewContentSize, dispose, disposeWebView, doDrawOrderedRenderable, drawBrowserControl, drawBrowserControls, drawFrame, drawFrameInterior, drawFrameOutline, drawLinks, drawOrderedRenderable, drawResizeControl, drawTitleBar, drawWebViewLinks, endDrawing, getBounds, getBrowserControls, getCursor, getDistanceFromEye, getOutlinePickWidth, getResourceResolver, getVisibilityAction, goBack, goForward, handleKeyEvent, handleMouseEvent, handleSelectEvent, intersectsFrustum, isActive, isDrawBrowserControls, isDrawBrowserControls, isDrawInterior, isDrawLinks, isDrawOutline, isDrawResizeControl, isDrawResizeControl, isDrawTitleBar, isDrawTitleBar, keyPressed, keyReleased, keyTyped, makeDefaultFrameVertices, makeEllipseFrameVertices, makeOrderedRenderable, makeRectangleFrameVertices, makeWebView, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, mustRegenerateGeometry, pick, prepareToDrawInterior, prepareToDrawOutline, propertyChange, removeAllBrowserControls, removeBrowserControl, render, selected, setActive, setDrawBrowserControls, setDrawResizeControl, setDrawTitleBar, setOutlinePickWidth, setResourceResolver, setVisibilityAction, setVisible, setWebViewContent, updateRenderState, updateRenderStateIfNeeded, updateWebView
 
Methods inherited from class gov.nasa.worldwind.render.AbstractBalloon
determineActiveAttributes, getActiveAttributes, getAttributes, getDecodedText, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isHighlighted, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.render.Balloon
getAttributes, getBounds, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible
 
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
 
Methods inherited from interface gov.nasa.worldwind.render.Highlightable
isHighlighted, setHighlighted
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Field Detail

screenLocation

protected Point screenLocation
Indicates this balloon's screen location. The screen location's coordinate system has its origin in the upper left corner of the WorldWindow, with the y-axis pointing right and the x-axis pointing down. Initialized to a non-null value at construction.

Constructor Detail

ScreenBrowserBalloon

public ScreenBrowserBalloon(String text,
                            Point point)
Constructs a new ScreenBrowserBalloon with the specified text content and screen location.

Parameters:
text - the balloon's initial text content.
point - the balloon's initial screen location, in AWT coordinates (origin at upper left corner of the WorldWindow).
Throws:
IllegalArgumentException - if either text or point are null.
Method Detail

computeBalloonPoints

protected void computeBalloonPoints(DrawContext dc)
Computes and stores this balloon's screen coordinates. This assigns balloon coordinate properties as follows:


getScreenLocation

public Point getScreenLocation()
Get the position of the balloon on the screen.

Specified by:
getScreenLocation in interface ScreenBalloon
Returns:
The screen location of the balloon.

setScreenLocation

public void setScreenLocation(Point point)
Set the screen position of the balloon. This point is interpreted in a coordinate system with the origin at the upper left corner of the screen.

Specified by:
setScreenLocation in interface ScreenBalloon
Parameters:
point - Point in screen coordinates, with origin at upper left corner.

setupDepthTest

protected void setupDepthTest(DrawContext dc)

Specified by:
setupDepthTest in class AbstractBrowserBalloon

NASA World Wind