|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.util.webview.AbstractWebView
public abstract class AbstractWebView
Abstract base class for WebView implementations.
| Field Summary | |
|---|---|
protected boolean |
active
Indicates whether the WebView is active. |
protected Dimension |
frameSize
The size of the WebView frame in pixels. |
protected WWTexture |
textureRep
The WebView's current texture representation. |
| Constructor Summary | |
|---|---|
AbstractWebView()
|
|
| Method Summary | |
|---|---|
protected abstract WWTexture |
createTextureRepresentation(DrawContext dc)
Create a texture representation of the WebView. |
protected abstract void |
doSetFrameSize(Dimension size)
|
protected void |
finalize()
Overridden to ensure that the WebView's native resources are disposed when the WebView is reclaimed by the garbage collector. |
Dimension |
getFrameSize()
Returns the size in pixels of this WebView's frame. |
WWTexture |
getTextureRepresentation(DrawContext dc)
Returns a layed out and rendered representation of the WebView's content as a WWTexture. |
boolean |
isActive()
Indicates whether or not this WebView is active. |
void |
propertyChange(PropertyChangeEvent event)
The property change listener for this instance. |
void |
setActive(boolean active)
Called when this WebView is activated or deactivated. |
void |
setFrameSize(Dimension size)
Specifies the size in pixels of this WebView's frame. |
| 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.util.webview.WebView |
|---|
getBackgroundColor, getContentSize, getContentURL, getLinks, getMinContentSize, goBack, goForward, sendEvent, setBackgroundColor, setHTMLString, setHTMLString, setHTMLString, setMinContentSize |
| 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 |
| Methods inherited from interface gov.nasa.worldwind.Disposable |
|---|
dispose |
| Field Detail |
|---|
protected boolean active
protected Dimension frameSize
protected WWTexture textureRep
getTextureRepresentation(gov.nasa.worldwind.render.DrawContext).
| Constructor Detail |
|---|
public AbstractWebView()
| Method Detail |
|---|
protected abstract WWTexture createTextureRepresentation(DrawContext dc)
dc - draw context.
protected abstract void doSetFrameSize(Dimension size)
protected void finalize()
throws Throwable
Disposable.dispose().
finalize in class ObjectThrowablepublic Dimension getFrameSize()
null if this WebView's frame size
is unspecified.
getFrameSize in interface WebViewnull if it's unspecified.WebView.setFrameSize(java.awt.Dimension)public WWTexture getTextureRepresentation(DrawContext dc)
WWTexture. The texture's image source is the WebView, and its dimensions are large
enough to capture the WebView's frame size (see WebView.setFrameSize(java.awt.Dimension).
On machines that support non-power-of-two sized textures, the texture's dimensions are always equal to the
WebView's frame size. Otherwise, the texture's dimensions are the smallest power-of-two that captures the
WebView's frame size.
getTextureRepresentation in interface WebViewdc - The draw context the WebView is associated with.
WWTexture.public boolean isActive()
isActive in interface WebViewtrue if this WebView is active, false if not.public void propertyChange(PropertyChangeEvent event)
WWObjectImpl
propertyChange in interface PropertyChangeListenerpropertyChange in class WWObjectImplevent - the eventpublic void setActive(boolean active)
setActive in interface WebViewactive - true if this WebView is being activated. false if this WebView is being
deactivated.WebView.sendEvent(java.awt.event.InputEvent)public void setFrameSize(Dimension size)
setFrameSize in interface WebViewsize - the size of this WebView's frame in pixels.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||