|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGLJPanel
gov.nasa.worldwind.awt.WorldWindowGLJPanel
public class WorldWindowGLJPanel
Constructor Summary | |
---|---|
WorldWindowGLJPanel()
Constructs a new WorldWindowGLCanvas window on the default graphics device. |
|
WorldWindowGLJPanel(WorldWindowGLCanvas shareWith)
Constructs a new WorldWindowGLJPanel window on the default graphics device that will share graphics
resources with another WorldWindowGLJPanel window. |
|
WorldWindowGLJPanel(WorldWindowGLCanvas shareWith,
java.awt.GraphicsDevice device)
Constructs a new WorldWindowGLJPanel window that will share graphics resources with another
WorldWindowGLJPanel window. |
Method Summary | |
---|---|
void |
addPositionListener(PositionListener listener)
Adds a position listener to this world window. |
void |
addRenderingListener(RenderingListener listener)
Adds a rendering listener to this world window. |
void |
addSelectListener(SelectListener listener)
Adds a select listener to this world window. |
AVList |
clearList()
|
AVList |
copy()
Returns a shallow copy of this AVList instance: the keys and values themselves are not cloned. |
void |
firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Calls all property change listeners associated with the specified key. |
Position |
getCurrentPosition()
Returns the current latitude, longitude and altitude of the current cursor position, or null if the
cursor is not on the globe. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
getEntries()
|
InputHandler |
getInputHandler()
Returns the input handler associated with this instance. |
Model |
getModel()
Returns the window's current model. |
PickedObjectList |
getObjectsAtCurrentPosition()
Returns the World Wind ojbects at the current cursor position. |
java.util.Collection<PerformanceStatistic> |
getPerFrameStatistics()
Returns the active per-frame performance statistics such as number of tiles drawn in the most recent frame. |
SceneController |
getSceneController()
Returns the scene controller assocciated with this instance. |
java.lang.String |
getStringValue(java.lang.String key)
Returns the value for a specified key. |
TextureCache |
getTextureCache()
Returns the texture cache used by this World Window.? |
java.lang.Object |
getValue(java.lang.String key)
Returns the value for a specified key. |
java.util.Collection<java.lang.Object> |
getValues()
|
View |
getView()
Returns this window's current view. |
boolean |
hasKey(java.lang.String key)
Indicates whether a key is in the collection. |
void |
redraw()
Causes a repaint event to be enqued with the window system for this world window. |
void |
redrawNow()
Immediately repaints the world window without waiting for a window system repaint event. |
void |
removeKey(java.lang.String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the collection. |
void |
removePositionListener(PositionListener listener)
Removes the specified position listener associated with this world window. |
void |
removeRenderingListener(RenderingListener listener)
Removes a specified rendering listener associated with this world window. |
void |
removeSelectListener(SelectListener listener)
Removes the specified select listener associated with this world window. |
void |
setInputHandler(InputHandler inputHandler)
Sets the input handler to use for this instance. |
void |
setModel(Model model)
Sets the model to display in this window. |
void |
setModelAndView(Model model,
View view)
Sets the model to display in this window and the view used to display it. |
void |
setPerFrameStatisticsKeys(java.util.Set<java.lang.String> keys)
Activates the per-frame performance statistic specified. |
void |
setValue(java.lang.String key,
java.lang.Object value)
Adds a key/value pair to the list. |
void |
setValues(AVList avList)
|
void |
setView(View view)
Sets the view to use when displaying this window's model. |
void |
shutdown()
Causes resources used by the World Window to be freed. |
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.avlist.AVList |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public WorldWindowGLJPanel()
WorldWindowGLCanvas
window on the default graphics device.
public WorldWindowGLJPanel(WorldWindowGLCanvas shareWith)
WorldWindowGLJPanel
window on the default graphics device that will share graphics
resources with another WorldWindowGLJPanel
window. The other window, sharewith
, may not be
null
shareWith
- a WorldWindowGLJPanel
with which to share graphics resources.
java.lang.NullPointerException
- if shareWith is nullGLCanvas#GLCanvas(GLCapabilities,GLCapabilitiesChooser,GLContext,GraphicsDevice)
public WorldWindowGLJPanel(WorldWindowGLCanvas shareWith, java.awt.GraphicsDevice device)
WorldWindowGLJPanel
window that will share graphics resources with another
WorldWindowGLJPanel
window. The new window is created on the specified graphics device. Neither
shareWith
or device
may be null.
shareWith
- a WorldWindowGLCanvas
with which to share graphics resources.device
- the GraphicsDevice
on which to create the window.
java.lang.NullPointerException
- if shareWith
is null
java.lang.IllegalArgumentException
- if deevice
is nullGLCanvas#GLCanvas(GLCapabilities,GLCapabilitiesChooser,GLContext,GraphicsDevice)
Method Detail |
---|
public void addPositionListener(PositionListener listener)
WorldWindow
addPositionListener
in interface WorldWindow
listener
- The position listener to add.public void addRenderingListener(RenderingListener listener)
WorldWindow
addRenderingListener
in interface WorldWindow
listener
- The rendering listener to add to those notified of rendering events by this world window.public void addSelectListener(SelectListener listener)
WorldWindow
addSelectListener
in interface WorldWindow
listener
- The select listener to add.public AVList clearList()
clearList
in interface AVList
public AVList copy()
AVList
AVList
instance: the keys and values themselves are not cloned.
copy
in interface AVList
AVList
.public void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
AVList
firePropertyChange
in interface AVList
propertyChangeEvent
- the eventPropertyChangeSupport
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
AVList
odValue
and newValue
are equal and non-null.
firePropertyChange
in interface AVList
propertyName
- the keyoldValue
- the value associated with the key before the even causing the firing.newValue
- the new value associated with the key.PropertyChangeSupport
public Position getCurrentPosition()
WorldWindow
null
if the
cursor is not on the globe.
getCurrentPosition
in interface WorldWindow
null
if the cursor is not positioned on the globe.public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> getEntries()
getEntries
in interface AVList
public InputHandler getInputHandler()
WorldWindow
getInputHandler
in interface WorldWindow
null
if no input handler is associated.public Model getModel()
WorldWindow
getModel
in interface WorldWindow
public PickedObjectList getObjectsAtCurrentPosition()
WorldWindow
getObjectsAtCurrentPosition
in interface WorldWindow
null
if no objects are under the cursor.public java.util.Collection<PerformanceStatistic> getPerFrameStatistics()
WorldWindow
getPerFrameStatistics
in interface WorldWindow
public SceneController getSceneController()
WorldWindow
getSceneController
in interface WorldWindow
null
if no scene controller is
associated.public java.lang.String getStringValue(java.lang.String key)
AVList
String
.
getStringValue
in interface AVList
key
- the attribute name. May not be null
.
null
.public TextureCache getTextureCache()
WorldWindow
getTextureCache
in interface WorldWindow
public java.lang.Object getValue(java.lang.String key)
AVList
getValue
in interface AVList
key
- the attribute name. May not be null
.
null
.public java.util.Collection<java.lang.Object> getValues()
getValues
in interface AVList
public View getView()
WorldWindow
getView
in interface WorldWindow
public boolean hasKey(java.lang.String key)
AVList
hasKey
in interface AVList
key
- the attribute name. May not be null
.
true
if the key exists in the collection, otherwise false
.public void redraw()
WorldWindow
redraw
in interface WorldWindow
public void redrawNow()
WorldWindow
redrawNow
in interface WorldWindow
public void removeKey(java.lang.String key)
AVList
removeKey
in interface AVList
key
- the attribute name. May not be null
.public void removePositionListener(PositionListener listener)
WorldWindow
removePositionListener
in interface WorldWindow
listener
- The listener to remove.public void removeRenderingListener(RenderingListener listener)
WorldWindow
removeRenderingListener
in interface WorldWindow
listener
- The rendering listener to remove.public void removeSelectListener(SelectListener listener)
WorldWindow
removeSelectListener
in interface WorldWindow
listener
- The select listener to remove.public void setInputHandler(InputHandler inputHandler)
WorldWindow
setInputHandler
in interface WorldWindow
inputHandler
- The input handler to use for this world window. May by null
if null
is specified, the current input handler, if any, is disassociated with the world window.public void setModel(Model model)
WorldWindow
null
is specified for the model, the current model, if
any, is disassociated with the window.
setModel
in interface WorldWindow
model
- the model to display. May be null
.public void setModelAndView(Model model, View view)
WorldWindow
null
is specified for
the model, the current model, if any, is disassociated with the window. If null
is specified for the
view, the current view, if any, is disassociated with the window.
setModelAndView
in interface WorldWindow
model
- the model to display. May benull
.view
- the view to use to display this window's model. May benull
.public void setPerFrameStatisticsKeys(java.util.Set<java.lang.String> keys)
WorldWindow
setPerFrameStatisticsKeys
in interface WorldWindow
keys
- The statistics to activate.public void setValue(java.lang.String key, java.lang.Object value)
AVList
setValue
in interface AVList
key
- the attribute name. May not be null
.value
- the attribute value. May be null
, in which case any existing value for the key is
removed from the collection.public void setValues(AVList avList)
setValues
in interface AVList
public void setView(View view)
WorldWindow
null
is specified for the view, the
current view, if any, is disassociated with the window.
setView
in interface WorldWindow
view
- the view to use to display this window's model. May be null.public void shutdown()
WorldWindow
shutdown
in interface WorldWindow
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |