-
- 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 voidsetTitle(String pTitle)voidsetGeoPoint(GeoPoint pGeoPoint)voidsetBackground(Paint pBackground)voidsetForeground(Paint pForeground)voidsetDragBackground(Paint pDragBackground)voidsetDragForeground(Paint pDragForeground)voidsetMargin(int pMargin)voidsetRadius(long pRadius)voidsetOffset(int pOffsetX, int pOffsetY)voiddraw(Canvas pCanvas, Projection pProjection)booleanonLongPress(MotionEvent event, MapView mapView)By default does nothing ( {@code return false}).booleanonTouchEvent(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
-
setGeoPoint
void setGeoPoint(GeoPoint pGeoPoint)
-
setBackground
void setBackground(Paint pBackground)
-
setForeground
void setForeground(Paint pForeground)
-
setDragBackground
void setDragBackground(Paint pDragBackground)
-
setDragForeground
void setDragForeground(Paint pDragForeground)
-
setMargin
void setMargin(int pMargin)
-
setRadius
void setRadius(long pRadius)
-
setOffset
void setOffset(int pOffsetX, int pOffsetY)
-
draw
void draw(Canvas pCanvas, Projection pProjection)
-
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.
-
-
-
-