com.esri.android.map
Class Callout.CalloutInner

java.lang.Object
  extended by android.view.View
      extended by android.view.ViewGroup
          extended by android.widget.FrameLayout
              extended by com.esri.android.map.Callout.CalloutInner
All Implemented Interfaces:
android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent
Enclosing class:
Callout

protected class Callout.CalloutInner
extends android.widget.FrameLayout


Nested Class Summary
 
Nested classes/interfaces inherited from class android.widget.FrameLayout
android.widget.FrameLayout.LayoutParams
 
Nested classes/interfaces inherited from class android.view.ViewGroup
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
 
Nested classes/interfaces inherited from class android.view.View
android.view.View.BaseSavedState, android.view.View.MeasureSpec, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnFocusChangeListener, android.view.View.OnKeyListener, android.view.View.OnLongClickListener, android.view.View.OnTouchListener
 
Field Summary
protected static int HIDE_MSG
           
 
Fields inherited from class android.view.ViewGroup
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
 
Fields inherited from class android.view.View
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, NO_ID, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET
 
Method Summary
 void animatedHide()
           
 long animatedShow(Point pCoordinates, android.view.View newContent, String newTitle)
           
 void draw(android.graphics.Canvas canvas)
           
 int getAnchor()
           Returns the anchor position.
 Point getCoordinates()
          Returns the map coordinates of the anchor point.
 int getMaxHeight()
           
 int getMaxWidth()
           
 int[] getOffset()
           
 void hide()
           
 boolean isShowing()
           
 void move(Point newCoordinates)
           
 void onDraw(android.graphics.Canvas canvas)
           
protected  void onLayout(boolean changed, int left, int top, int right, int bottom)
           
protected  void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
           
 void refresh()
          Invokes a refresh of the callout window when it needs to be redrawn.
 void setAnchor(int anchor)
           Sets the anchor position.
 void setContent(android.view.View v)
          Sets the content of the callout window.
 void setCoordinates(Point coordinates)
          Sets the coordinates of the anchor points in the map spatial reference.
 void setMaxHeight(int maxHeight)
           
 void setMaxWidth(int maxWidth)
           
 void setOffset(int x, int y)
          Vertical and horizontal offset to apply to the anchor point.
 void setStyle(android.util.AttributeSet attrs)
           
 void setStyle(int xmlId)
           
 void setTitle(String title)
          Sets a title for the callout window.
 long show()
           
 long show(Point pCoordinates)
           
 long show(Point pCoordinates, android.view.View newContent)
           
 long show(Point pCoordinates, android.view.View newContent, String newTitle)
           
 boolean wasOpenedBy(long openerId)
           
 
Methods inherited from class android.widget.FrameLayout
checkLayoutParams, drawableStateChanged, gatherTransparentRegion, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getConsiderGoneChildrenWhenMeasuring, getForeground, onSizeChanged, setForeground, setForegroundGravity, setMeasureAllChildren, verifyDrawable
 
Methods inherited from class android.view.ViewGroup
addFocusables, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDraw, dispatchFreezeSelfOnly, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetPressed, dispatchSetSelected, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, drawChild, findFocus, fitSystemWindows, focusableViewAvailable, focusSearch, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, onInterceptTouchEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, showContextMenuForChild, startLayoutAnimation, updateViewLayout
 
Methods inherited from class android.view.View
awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, cancelLongPress, checkInputConnectionProxy, clearAnimation, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createContextMenu, destroyDrawingCache, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getKeyDispatcherState, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAttachedToWindow, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDetachedFromWindow, onDisplayHint, onDrawScrollBars, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onRestoreInstanceState, onSaveInstanceState, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowVisibilityChanged, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAnimation, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLayoutParams, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPressed, setSaveEnabled, setScrollbarFadingEnabled, setScrollBarStyle, setScrollContainer, setSelected, setSoundEffectsEnabled, setTag, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, showContextMenu, startAnimation, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.view.ViewParent
createContextMenu, getParent, isLayoutRequested, requestLayout
 

Field Detail

HIDE_MSG

protected static final int HIDE_MSG
See Also:
Constant Field Values
Method Detail

getCoordinates

public Point getCoordinates()
Returns the map coordinates of the anchor point.

Returns:
the coordinates

getAnchor

public int getAnchor()

Returns the anchor position.

Possible values are:

  • Callout.ANCHOR_POSITION_UPPER_LEFT_CORNER
  • Callout.ANCHOR_POSITION_UPPER_MIDDLE
  • Callout.ANCHOR_POSITION_UPPER_RIGHT_CORNER
  • Callout.ANCHOR_POSITION_RIGHT_MIDDLE
  • Callout.ANCHOR_POSITION_LOWER_RIGHT_CORNER
  • Callout.ANCHOR_POSITION_LOWER_MIDDLE
  • Callout.ANCHOR_POSITION_LOWER_LEFT_CORNER
  • Callout.ANCHOR_POSITION_LEFT_MIDDLE
  • Callout.ANCHOR_POSITION_FLOATING (when panning, the anchor position changes to try and keep the callout window on the screen)

  • Returns:
    the anchor

    getMaxWidth

    public int getMaxWidth()
    Returns:
    the maxWidth

    getMaxHeight

    public int getMaxHeight()
    Returns:
    the maxHeight

    getOffset

    public int[] getOffset()
    Returns:
    the offset

    setOffset

    public void setOffset(int x,
                          int y)
    Vertical and horizontal offset to apply to the anchor point.

    Parameters:
    x - the horizontal offset in pixels
    y - the vertical offset in pixels

    setMaxWidth

    public void setMaxWidth(int maxWidth)
    Parameters:
    maxWidth - the maxWidth to set

    setMaxHeight

    public void setMaxHeight(int maxHeight)
    Parameters:
    maxHeight - the maxHeight to set

    wasOpenedBy

    public boolean wasOpenedBy(long openerId)

    setAnchor

    public void setAnchor(int anchor)

    Sets the anchor position.

    Possible values are:

  • Callout.ANCHOR_POSITION_UPPER_LEFT_CORNER
  • Callout.ANCHOR_POSITION_UPPER_MIDDLE
  • Callout.ANCHOR_POSITION_UPPER_RIGHT_CORNER
  • Callout.ANCHOR_POSITION_RIGHT_MIDDLE
  • Callout.ANCHOR_POSITION_LOWER_RIGHT_CORNER
  • Callout.ANCHOR_POSITION_LOWER_MIDDLE
  • Callout.ANCHOR_POSITION_LOWER_LEFT_CORNER
  • Callout.ANCHOR_POSITION_LEFT_MIDDLE
  • Callout.ANCHOR_POSITION_FLOATING (when panning, the anchor position changes to try and keep the callout window on the screen)

  • Parameters:
    anchor - the anchor to set

    show

    public long show()

    show

    public long show(Point pCoordinates)

    show

    public long show(Point pCoordinates,
                     android.view.View newContent)

    show

    public long show(Point pCoordinates,
                     android.view.View newContent,
                     String newTitle)

    animatedShow

    public long animatedShow(Point pCoordinates,
                             android.view.View newContent,
                             String newTitle)

    hide

    public void hide()

    animatedHide

    public void animatedHide()

    move

    public void move(Point newCoordinates)

    setStyle

    public void setStyle(int xmlId)

    setStyle

    public void setStyle(android.util.AttributeSet attrs)

    setCoordinates

    public void setCoordinates(Point coordinates)
    Sets the coordinates of the anchor points in the map spatial reference.

    Parameters:
    coordinates - the coordinates to set

    setContent

    public void setContent(android.view.View v)
    Sets the content of the callout window.

    Parameters:
    v - the view to be displayed in the callout window

    setTitle

    public void setTitle(String title)
    Sets a title for the callout window.

    Parameters:
    title -

    isShowing

    public boolean isShowing()

    refresh

    public void refresh()
    Invokes a refresh of the callout window when it needs to be redrawn.


    draw

    public void draw(android.graphics.Canvas canvas)
    Overrides:
    draw in class android.widget.FrameLayout

    onMeasure

    protected void onMeasure(int widthMeasureSpec,
                             int heightMeasureSpec)
    Overrides:
    onMeasure in class android.widget.FrameLayout

    onLayout

    protected void onLayout(boolean changed,
                            int left,
                            int top,
                            int right,
                            int bottom)
    Overrides:
    onLayout in class android.widget.FrameLayout

    onDraw

    public void onDraw(android.graphics.Canvas canvas)
    Overrides:
    onDraw in class android.view.View


    Copyright © 2010. All Rights Reserved.