Package 

Class SpeechBalloonOverlay

  • All Implemented Interfaces:
    org.osmdroid.views.util.constants.OverlayConstants

    
    public class SpeechBalloonOverlay
    extends Overlay
                        

    Overlay that display a title in a "speech balloon"

    • Method Summary

      Modifier and Type Method Description
      void setTitle(String pTitle)
      void setGeoPoint(GeoPoint pGeoPoint)
      void setBackground(Paint pBackground)
      void setForeground(Paint pForeground)
      void setDragBackground(Paint pDragBackground)
      void setDragForeground(Paint pDragForeground)
      void setMargin(int pMargin)
      void setRadius(long pRadius)
      void setOffset(int pOffsetX, int pOffsetY)
      void draw(Canvas pCanvas, Projection pProjection)
      boolean onLongPress(MotionEvent event, MapView mapView) By default does nothing ({@code return false}).
      boolean onTouchEvent(MotionEvent event, MapView mapView) You can prevent all(!) other Touch-related events from happening!
      • Methods inherited from class org.osmdroid.views.overlay.Overlay

        draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTrackballEvent, setEnabled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setOffset

         void setOffset(int pOffsetX, int pOffsetY)
      • onLongPress

         boolean onLongPress(MotionEvent event, MapView mapView)

        By default does nothing ({@code return false}). If you handled the Event, return {@code true} , otherwise return {@code false}. If you returned {@code true} none of the following Overlaysor the underlying MapView has the chance to handle this event.

      • onTouchEvent

         boolean onTouchEvent(MotionEvent event, MapView mapView)

        You can prevent all(!) other Touch-related events from happening!By default does nothing ({@code return false}). If you handled the Event, return {@code true} , otherwise return {@code false}. If you returned {@code true} none of the following Overlaysor the underlying MapView has the chance to handle this event.