public abstract class WorldWindowImpl extends WWObjectImpl implements WorldWindow
WorldWindow interface. Classes implementing WorldWindow can
 subclass or aggregate this object to provide default WorldWindow functionality.| Modifier and Type | Field and Description | 
|---|---|
| protected GpuResourceCache | gpuResourceCache | 
| Constructor and Description | 
|---|
| WorldWindowImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPositionListener(PositionListener listener)Adds a position listener to this world window. | 
| void | addRenderingExceptionListener(RenderingExceptionListener listener)Adds an exception 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 | callRenderingExceptionListeners(Throwable exception) | 
| protected void | callRenderingListeners(RenderingEvent event) | 
| protected void | callSelectListeners(SelectEvent event) | 
| static GpuResourceCache | createGpuResourceCache() | 
| protected PickedObjectList | getCurrentBoxSelection() | 
| Position | getCurrentPosition()Returns the current latitude, longitude and altitude of the current cursor position, or  nullif the
 cursor is not on the globe. | 
| protected PickedObject | getCurrentSelection() | 
| GpuResourceCache | getGpuResourceCache()Returns the GPU Resource used by this World Window. | 
| InputHandler | getInputHandler()Returns the input handler associated with this instance. | 
| Model | getModel()Returns the window's current model. | 
| PickedObjectList | getObjectsAtCurrentPosition()Returns the World Wind objects at the current cursor position. | 
| PickedObjectList | getObjectsInSelectionBox()Returns the World Wind objects intersecting the current selection box. | 
| 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 associated with this instance. | 
| View | getView()Returns this window's current view. | 
| void | redraw()Causes a repaint event to be enqueued 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 | removeRenderingExceptionListener(RenderingExceptionListener listener)Removes the specified rendering exception 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 | setGpuResourceCache(GpuResourceCache gpuResourceCache) | 
| 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. | 
| void | setSceneController(SceneController sc)Specifies a new scene controller for the window. | 
| 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. | 
onMessage, propertyChangeaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, isEnableGpuCacheReinitialization, setEnableGpuCacheReinitializationaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected GpuResourceCache gpuResourceCache
public void addPositionListener(PositionListener listener)
WorldWindowaddPositionListener in interface WorldWindowlistener - The position listener to add.public void addRenderingExceptionListener(RenderingExceptionListener listener)
WorldWindowaddRenderingExceptionListener in interface WorldWindowlistener - the The exception listener to add.public void addRenderingListener(RenderingListener listener)
WorldWindowaddRenderingListener in interface WorldWindowlistener - The rendering listener to add to those notified of rendering events by this world window.public void addSelectListener(SelectListener listener)
WorldWindowaddSelectListener in interface WorldWindowlistener - The select listener to add.protected void callPositionListeners(PositionEvent event)
protected void callRenderingExceptionListeners(Throwable exception)
protected void callRenderingListeners(RenderingEvent event)
protected void callSelectListeners(SelectEvent event)
public static GpuResourceCache createGpuResourceCache()
protected PickedObjectList getCurrentBoxSelection()
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 GpuResourceCache getGpuResourceCache()
WorldWindowgetGpuResourceCache in interface WorldWindowpublic InputHandler getInputHandler()
WorldWindowgetInputHandler in interface WorldWindownull if no input handler is associated.public Model getModel()
WorldWindowgetModel in interface WorldWindowpublic PickedObjectList getObjectsAtCurrentPosition()
WorldWindowgetObjectsAtCurrentPosition in interface WorldWindownull if no objects are under the cursor.public PickedObjectList getObjectsInSelectionBox()
WorldWindowgetObjectsInSelectionBox in interface WorldWindownull if no objects are in the box.public Collection<PerformanceStatistic> getPerFrameStatistics()
WorldWindowgetPerFrameStatistics in interface WorldWindowpublic SceneController getSceneController()
WorldWindowgetSceneController in interface WorldWindownull if no scene controller is
         associated.public View getView()
WorldWindowgetView in interface WorldWindowpublic void redraw()
WorldWindowredraw in interface WorldWindowpublic void redrawNow()
WorldWindowredrawNow in interface WorldWindowpublic void removePositionListener(PositionListener listener)
WorldWindowremovePositionListener in interface WorldWindowlistener - The listener to remove.public void removeRenderingExceptionListener(RenderingExceptionListener listener)
WorldWindowremoveRenderingExceptionListener in interface WorldWindowlistener - The listener to remove.public void removeRenderingListener(RenderingListener listener)
WorldWindowremoveRenderingListener in interface WorldWindowlistener - The rendering listener to remove.public void removeSelectListener(SelectListener listener)
WorldWindowremoveSelectListener in interface WorldWindowlistener - The select listener to remove.public void setGpuResourceCache(GpuResourceCache gpuResourceCache)
public void setInputHandler(InputHandler inputHandler)
WorldWindowsetInputHandler 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)
WorldWindowsetPerFrameStatisticsKeys in interface WorldWindowkeys - The statistics to activate.public void setSceneController(SceneController sc)
WorldWindowView, Model and any desired per-frame statistics keys.setSceneController in interface WorldWindowsc - the new scene controller.SceneController.setView(View), 
SceneController.setModel(Model), 
SceneController.setPerFrameStatisticsKeys(java.util.Set)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