public class WorldWindow extends android.opengl.GLSurfaceView implements android.view.Choreographer.FrameCallback, android.opengl.GLSurfaceView.Renderer, MessageListener
android.opengl.GLSurfaceView.EGLConfigChooser, android.opengl.GLSurfaceView.EGLContextFactory, android.opengl.GLSurfaceView.EGLWindowSurfaceFactory, android.opengl.GLSurfaceView.GLWrapper, android.opengl.GLSurfaceView.Renderer
android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
DEBUG_CHECK_GL_ERROR, DEBUG_LOG_GL_CALLS, RENDERMODE_CONTINUOUSLY, RENDERMODE_WHEN_DIRTY
ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VISIBLE, X, Y, Z
Constructor and Description |
---|
WorldWindow(android.content.Context context)
Constructs a WorldWindow associated with the specified application context.
|
WorldWindow(android.content.Context context,
android.util.AttributeSet attrs)
Constructs a WorldWindow associated with the specified application context and attributes from an XML tag.
|
WorldWindow(android.content.Context context,
android.opengl.GLSurfaceView.EGLConfigChooser configChooser)
Constructs a WorldWindow associated with the specified application context and EGL configuration chooser.
|
Modifier and Type | Method and Description |
---|---|
void |
addNavigatorListener(NavigatorListener listener) |
boolean |
cartesianToScreenPoint(double x,
double y,
double z,
android.graphics.PointF result)
Transforms a Cartesian coordinate point to Android screen coordinates.
|
double |
distanceToViewGlobeExtents()
Returns the minimum distance from the globe's surface necessary to make the globe's extents visible in this World
Window.
|
void |
doFrame(long frameTimeNanos) |
boolean |
geographicToScreenPoint(double latitude,
double longitude,
double altitude,
android.graphics.PointF result)
Transforms a geographic position to Android screen coordinates.
|
double |
getFieldOfView() |
FrameController |
getFrameController() |
FrameMetrics |
getFrameMetrics() |
Globe |
getGlobe()
Indicates the planet or celestial object displayed by this World Window.
|
LayerList |
getLayers() |
Navigator |
getNavigator() |
long |
getNavigatorStoppedDelay() |
RenderResourceCache |
getRenderResourceCache() |
double |
getVerticalExaggeration() |
WorldWindowController |
getWorldWindowController() |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 unused)
Implements the GLSurfaceView.Renderer.onDrawFrame interface which is called on the GLThread when rendering is
requested.
|
void |
onMessage(java.lang.String name,
java.lang.Object sender,
java.util.Map<java.lang.Object,java.lang.Object> userProperties) |
void |
onPause()
Called when the activity is paused.
|
void |
onResume()
Called when the activity is resumed.
|
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused,
int width,
int height)
Implements the GLSurfaceView.Renderer.onSurfaceChanged interface which is called on the GLThread when the window
size changes.
|
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused,
javax.microedition.khronos.egl.EGLConfig config)
Implements the GLSurfaceView.Renderer.onSurfaceChanged interface which is called on the GLThread when the surface
is created.
|
boolean |
onTouchEvent(android.view.MotionEvent event) |
PickedObjectList |
pick(float x,
float y)
Determines the World Wind objects displayed at a screen point.
|
PickedObjectList |
pickShapesInRect(float x,
float y,
float width,
float height)
Determines the World Wind shapes displayed in a screen rectangle.
|
double |
pixelSizeAtDistance(double distance)
Returns the height of a pixel at a given distance from the eye point.
|
void |
queueEvent(java.lang.Runnable r)
Deprecated.
See Communicating
with the UI Thread instead.
|
boolean |
rayThroughScreenPoint(float x,
float y,
Line result)
Computes a Cartesian coordinate ray that passes through through a screen point.
|
void |
removeNavigatorListener(NavigatorListener listener) |
void |
requestRedraw()
Request that this World Window update its display.
|
void |
requestRender()
Deprecated.
Use
requestRedraw() instead. |
void |
setFieldOfView(double fovyDegrees) |
void |
setFrameController(FrameController frameController) |
void |
setFrameMetrics(FrameMetrics frameMetrics) |
void |
setGlobe(Globe globe)
Sets the planet or celestial object displayed by this World Window.
|
void |
setLayers(LayerList layers) |
void |
setNavigator(Navigator navigator) |
void |
setNavigatorStoppedDelay(long delay,
java.util.concurrent.TimeUnit unit) |
void |
setRenderResourceCache(RenderResourceCache cache) |
void |
setVerticalExaggeration(double verticalExaggeration) |
void |
setWorldWindowController(WorldWindowController controller) |
void |
surfaceCreated(android.view.SurfaceHolder holder)
Called immediately after the surface is first created, in which case the WorldWindow instance adds itself as a
listener to the
WorldWind.messageService() . |
void |
surfaceDestroyed(android.view.SurfaceHolder holder)
Called immediately before a surface is being destroyed, in which case the WorldWindow instance removes itself
from
WorldWind.messageService() . |
getDebugFlags, getPreserveEGLContextOnPause, getRenderMode, setDebugFlags, setEGLConfigChooser, setEGLConfigChooser, setEGLConfigChooser, setEGLContextClientVersion, setEGLContextFactory, setEGLWindowSurfaceFactory, setGLWrapper, setPreserveEGLContextOnPause, setRenderer, setRenderMode, surfaceChanged, surfaceRedrawNeeded
draw, gatherTransparentRegion, getHolder, setSecure, setVisibility, setZOrderMediaOverlay, setZOrderOnTop
addChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, dispatchProvideStructure, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableHotspotChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityClassName, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineProvider, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRight, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getStateListAnimator, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTouchables, getTouchDelegate, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasFocus, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onDrawForeground, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onProvideStructure, onProvideVirtualStructure, onResolvePointerIcon, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityAggregated, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentDescription, setContextClickable, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setForeground, setForegroundGravity, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineProvider, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTransitionName, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, unscheduleDrawable, unscheduleDrawable, updateDragShadow, willNotCacheDrawing, willNotDraw
public WorldWindow(android.content.Context context)
public WorldWindow(android.content.Context context, android.opengl.GLSurfaceView.EGLConfigChooser configChooser)
public WorldWindow(android.content.Context context, android.util.AttributeSet attrs)
public Globe getGlobe()
GeographicProjection
. Defaults to GlobeWgs84
.public void setGlobe(Globe globe)
GeographicProjection
.globe
- the globe to displayjava.lang.IllegalArgumentException
- if the globe is nullpublic LayerList getLayers()
public void setLayers(LayerList layers)
public double getVerticalExaggeration()
public void setVerticalExaggeration(double verticalExaggeration)
public double getFieldOfView()
public void setFieldOfView(double fovyDegrees)
public Navigator getNavigator()
public void setNavigator(Navigator navigator)
public void addNavigatorListener(NavigatorListener listener)
public void removeNavigatorListener(NavigatorListener listener)
public long getNavigatorStoppedDelay()
public void setNavigatorStoppedDelay(long delay, java.util.concurrent.TimeUnit unit)
public FrameController getFrameController()
public void setFrameController(FrameController frameController)
public FrameMetrics getFrameMetrics()
public void setFrameMetrics(FrameMetrics frameMetrics)
public WorldWindowController getWorldWindowController()
public void setWorldWindowController(WorldWindowController controller)
public RenderResourceCache getRenderResourceCache()
public void setRenderResourceCache(RenderResourceCache cache)
public PickedObjectList pick(float x, float y)
x
- the screen point's X coordinate in Android screen pixelsy
- the screen point's Y coordinate in Android screen pixelspublic PickedObjectList pickShapesInRect(float x, float y, float width, float height)
x
- the screen rectangle's X coordinate in Android screen pixelsy
- the screen rectangle's Y coordinate in Android screen pixelswidth
- the screen rectangle's width in Android screen pixelsheight
- the screen rectangle's height in Android screen pixelspublic boolean cartesianToScreenPoint(double x, double y, double z, android.graphics.PointF result)
x
- the Cartesian point's x component in metersy
- the Cartesian point's y component in metersz
- the Cartesian point's z component in metersresult
- a pre-allocated PointF
in which to return the screen pointjava.lang.IllegalArgumentException
- If the result is nullpublic boolean geographicToScreenPoint(double latitude, double longitude, double altitude, android.graphics.PointF result)
latitude
- the position's latitude in degreeslongitude
- the position's longitude in degreesaltitude
- the position's altitude in metersresult
- a pre-allocated PointF
in which to return the screen pointjava.lang.IllegalArgumentException
- If the result is nullpublic boolean rayThroughScreenPoint(float x, float y, Line result)
x
- the screen point's X coordinate in Android screen pixelsy
- the screen point's Y coordinate in Android screen pixelsresult
- a pre-allocated Line in which to return the computed rayjava.lang.IllegalArgumentException
- If the result is nullpublic double pixelSizeAtDistance(double distance)
distance
- the distance from the eye point in meterspublic double distanceToViewGlobeExtents()
public void requestRedraw()
public void doFrame(long frameTimeNanos)
doFrame
in interface android.view.Choreographer.FrameCallback
@Deprecated public void requestRender()
requestRedraw()
instead.requestRedraw()
instead.requestRender
in class android.opengl.GLSurfaceView
@Deprecated public void queueEvent(java.lang.Runnable r)
queueEvent
in class android.opengl.GLSurfaceView
r
- the runnable to executepublic void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused, javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated
in interface android.opengl.GLSurfaceView.Renderer
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused, int width, int height)
onSurfaceChanged
in interface android.opengl.GLSurfaceView.Renderer
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 unused)
onDrawFrame
in interface android.opengl.GLSurfaceView.Renderer
public void surfaceCreated(android.view.SurfaceHolder holder)
WorldWind.messageService()
. The WorldWind.messageService is a facility for broadcasting
global redraw requests to active WorldWindows.surfaceCreated
in interface android.view.SurfaceHolder.Callback
surfaceCreated
in class android.opengl.GLSurfaceView
holder
- the SurfaceHolder whose surface is being createdpublic void surfaceDestroyed(android.view.SurfaceHolder holder)
WorldWind.messageService()
. Failure to do so may result in a memory leak this WorldWindow instance
when its owner is release/collected.surfaceDestroyed
in interface android.view.SurfaceHolder.Callback
surfaceDestroyed
in class android.opengl.GLSurfaceView
holder
- the SurfaceHolder whose surface is being destroyedpublic void onPause()
onPause
in class android.opengl.GLSurfaceView
public void onResume()
onResume
in class android.opengl.GLSurfaceView
public boolean onTouchEvent(android.view.MotionEvent event)
onTouchEvent
in class android.view.View
public void onMessage(java.lang.String name, java.lang.Object sender, java.util.Map<java.lang.Object,java.lang.Object> userProperties)
onMessage
in interface MessageListener