com.google.android.maps
Class MapView
java.lang.Object
android.view.View
com.google.android.maps.MapView
- All Implemented Interfaces:
- Drawable.Callback, KeyEvent.Callback
public class MapView
- extends View
| Fields inherited from class android.view.View |
FIRST_STATE_SET, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, GONE, INVISIBLE, LAST_STATE_SET, mBottom, mContext, mCurrentAnimation, MIDDLE_STATE_SET, mLayoutParams, mLeft, mMeasuredHeight, mMeasuredWidth, mOnClickListener, mOnFocusChangeListener, mPaddingBottom, mPaddingLeft, mPaddingRight, mPaddingTop, mParent, mRight, mScrollX, mScrollY, mTag, mTop, mWindowLeft, mWindowTop, NO_ID, NORMAL_FOCUS, PRESSED_STATE_DURATION, PRESSED_STATE_SET, SINGLE_STATE_SET, VIEW_LOG_TAG, VISIBLE, WEAK_FOCUS |
| Methods inherited from class android.view.View |
applyDrawableToTransparentRegion, awakenScrollBars, awakenScrollBars, bringToFront, clearAnimation, clearFocus, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, copyWindowBitmap, createDrawableState, debug, debug, debugIndent, dispatchDraw, dispatchKeyEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, draw, drawableStateChanged, findFocus, findParentViewOfType, findViewById, findViewTraversal, findViewWithTag, findViewWithTagTraversal, focusSearch, focusSearchInDescendants, forceLayout, gatherTransparentRegion, getAbsoluteLocationOnScreen, getBackground, getBaseline, getBlockDescendantFocus, getBlockUnmatchedKeyUps, getBottom, getContext, getCurrentAnimation, getDefaultSize, getDrawableState, getDrawingRect, getDrawingTime, getFocusables, getFocusType, getGlobalVisibleRect, getGlobalVisibleRect, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getInterestingRect, getLayoutParams, getLeft, getLocalVisibleRect, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getScrollX, getScrollY, getTag, getTop, getVerticalFadingEdgeLength, getVisibility, getWidth, getWindowBottom, getWindowFrame, getWindowLeft, getWindowRight, getWindowSession, getWindowToken, getWindowTop, hasBackground, hasFocus, hasWindowFocus, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isEnabled, isFocusable, isFocused, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isLayoutRequested, isRootNamespace, isSelected, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onDetachedFromWindow, onDrawAfterChildren, onDrawBackground, onFinishInflate, onLayout, onMeasure, onMotionEvent, onScrollChanged, performClick, postInvalidate, postInvalidateDelayed, refreshDrawableState, requestFocus, requestFocus, requestLayout, requestRectangleOnScreen, resolveSize, scheduleDrawable, scrollBy, scrollTo, setBackground, setBackground, setBackgroundColor, setBlockDescendantFocus, setBlockUnmatchedKeyUps, setCurrentAnimation, setEnabled, setFocusable, setFocusType, setFrame, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setIsRootNamespace, setKeyListener, setLayoutParams, setMeasuredDimension, setOnClickListener, setOnFocusChangeListener, setPadding, setPreferredHeight, setPreferredWidth, setSelected, setTag, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotDraw, startAnimation, takeFocus, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotDraw |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapView
public MapView(Context context)
MapView
public MapView(Context context,
AttributeSet attrs,
Map inflateParams)
onSizeChanged
protected void onSizeChanged(int w,
int h,
int oldw,
int oldh)
- Overrides:
onSizeChanged in class View
onDraw
protected void onDraw(Canvas canvas)
- Overrides:
onDraw in class View
windowFocusChanged
public void windowFocusChanged(boolean hasFocus)
- Overrides:
windowFocusChanged in class View
onFocusChanged
public void onFocusChanged(boolean hasFocus,
int direction)
- Overrides:
onFocusChanged in class View
onKeyDown
public boolean onKeyDown(int keyCode,
KeyEvent event)
- Specified by:
onKeyDown in interface KeyEvent.Callback- Overrides:
onKeyDown in class View
onKeyUp
public boolean onKeyUp(int keyCode,
KeyEvent event)
- Specified by:
onKeyUp in interface KeyEvent.Callback- Overrides:
onKeyUp in class View
dispatchMotionEvent
public boolean dispatchMotionEvent(MotionEvent ev)
- Overrides:
dispatchMotionEvent in class View
canCoverCenter
public boolean canCoverCenter()
preLoad
public void preLoad()
getZoomLevel
public int getZoomLevel()
toggleSatellite
public void toggleSatellite()
isSatellite
public boolean isSatellite()
toggleTraffic
public void toggleTraffic()
isTraffic
public boolean isTraffic()
getMapCenter
public Point getMapCenter()
getController
public MapController getController()
createOverlayController
public OverlayController createOverlayController()
getLatitudeSpan
public int getLatitudeSpan()
getLongitudeSpan
public int getLongitudeSpan()
setReticleDrawMode
public void setReticleDrawMode(MapView.ReticleDrawMode mode)