|
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.WorldWindowImpl
public class WorldWindowImpl
An implementation class for the WorldWindow interface. Classes implementing WorldWindow can
subclass or aggreate this object to provide default WorldWindow functionality.
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
WorldWindowImpl()
|
|
| 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. |
protected void |
callPositionListeners(PositionEvent event)
|
protected void |
callRenderingListeners(RenderingEvent event)
|
protected void |
callSelectListeners(SelectEvent event)
|
Position |
getCurrentPosition()
Returns the current latitude, longitude and altitude of the current cursor position, or null if the
cursor is not on the globe. |
protected PickedObject |
getCurrentSelection()
|
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. |
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(Set<String> keys)
Activates the per-frame performance statistic specified. |
protected void |
setTextureCache(TextureCache textureCache)
|
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 gov.nasa.worldwind.WWObjectImpl |
|---|
propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, 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.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Constructor Detail |
|---|
public WorldWindowImpl()
| Method Detail |
|---|
public void addPositionListener(PositionListener listener)
WorldWindow
addPositionListener in interface WorldWindowlistener - The position listener to add.public void addRenderingListener(RenderingListener listener)
WorldWindow
addRenderingListener in interface WorldWindowlistener - The rendering listener to add to those notified of rendering events by this world window.public void addSelectListener(SelectListener listener)
WorldWindow
addSelectListener in interface WorldWindowlistener - The select listener to add.protected void callPositionListeners(PositionEvent event)
protected void callRenderingListeners(RenderingEvent event)
protected void callSelectListeners(SelectEvent event)
public Position getCurrentPosition()
WorldWindownull if the
cursor is not on the globe.
getCurrentPosition in interface WorldWindownull if the cursor is not positioned on the globe.protected PickedObject getCurrentSelection()
public InputHandler getInputHandler()
WorldWindow
getInputHandler in interface WorldWindownull if no input handler is associated.public Model getModel()
WorldWindow
getModel in interface WorldWindowpublic PickedObjectList getObjectsAtCurrentPosition()
WorldWindow
getObjectsAtCurrentPosition in interface WorldWindownull if no objects are under the cursor.public Collection<PerformanceStatistic> getPerFrameStatistics()
WorldWindow
getPerFrameStatistics in interface WorldWindowpublic SceneController getSceneController()
WorldWindow
getSceneController in interface WorldWindownull if no scene controller is
associated.public TextureCache getTextureCache()
WorldWindow
getTextureCache in interface WorldWindowpublic View getView()
WorldWindow
getView in interface WorldWindowpublic void redraw()
WorldWindow
redraw in interface WorldWindowpublic void redrawNow()
WorldWindow
redrawNow in interface WorldWindowpublic void removePositionListener(PositionListener listener)
WorldWindow
removePositionListener in interface WorldWindowlistener - The listener to remove.public void removeRenderingListener(RenderingListener listener)
WorldWindow
removeRenderingListener in interface WorldWindowlistener - The rendering listener to remove.public void removeSelectListener(SelectListener listener)
WorldWindow
removeSelectListener in interface WorldWindowlistener - The select listener to remove.public void setInputHandler(InputHandler inputHandler)
WorldWindow
setInputHandler in interface WorldWindowinputHandler - 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)
WorldWindownull is specified for the model, the current model, if
any, is disassociated with the window.
setModel in interface WorldWindowmodel - the model to display. May be null.
public void setModelAndView(Model model,
View view)
WorldWindownull 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 WorldWindowmodel - the model to display. May benull.view - the view to use to display this window's model. May benull.public void setPerFrameStatisticsKeys(Set<String> keys)
WorldWindow
setPerFrameStatisticsKeys in interface WorldWindowkeys - The statistics to activate.protected void setTextureCache(TextureCache textureCache)
public void setView(View view)
WorldWindownull is specified for the view, the
current view, if any, is disassociated with the window.
setView in interface WorldWindowview - the view to use to display this window's model. May be null.public void shutdown()
shutdown in interface WorldWindow
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||