|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorldWindow
The top-level interface common to all toolkit-specific World Wind windows.
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. |
Position |
getCurrentPosition()
Returns the current latitude, longitude and altitude of the current cursor position, or null if the
cursor is not on the globe. |
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. |
TextureCache |
getTextureCache()
Returns the texture cache used by this World Window.? |
View |
getView()
Returns this window's current view. |
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 |
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 |
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 interface gov.nasa.worldwind.avlist.AVList |
---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Method Detail |
---|
void addPositionListener(PositionListener listener)
listener
- The position listener to add.void addRenderingListener(RenderingListener listener)
listener
- The rendering listener to add to those notified of rendering events by this world window.void addSelectListener(SelectListener listener)
listener
- The select listener to add.Position getCurrentPosition()
null
if the
cursor is not on the globe.
null
if the cursor is not positioned on the globe.InputHandler getInputHandler()
null
if no input handler is associated.Model getModel()
PickedObjectList getObjectsAtCurrentPosition()
null
if no objects are under the cursor.java.util.Collection<PerformanceStatistic> getPerFrameStatistics()
SceneController getSceneController()
null
if no scene controller is
associated.TextureCache getTextureCache()
View getView()
void redraw()
void redrawNow()
void removePositionListener(PositionListener listener)
listener
- The listener to remove.void removeRenderingListener(RenderingListener listener)
listener
- The rendering listener to remove.void removeSelectListener(SelectListener listener)
listener
- The select listener to remove.void setInputHandler(InputHandler inputHandler)
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.void setModel(Model model)
null
is specified for the model, the current model, if
any, is disassociated with the window.
model
- the model to display. May be null
.void setModelAndView(Model model, View view)
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.
model
- the model to display. May benull
.view
- the view to use to display this window's model. May benull
.void setPerFrameStatisticsKeys(java.util.Set<java.lang.String> keys)
keys
- The statistics to activate.void setView(View view)
null
is specified for the view, the
current view, if any, is disassociated with the window.
view
- the view to use to display this window's model. May be null.void shutdown()
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |