public abstract class OverlayWithIW extends Overlay
OverlayWithIW
is an Overlay
that
contain data title
,
a snippet or description
,
and optionally a "sub-description"
and that
can be shown in a popup-InfoWindow
(a bubble).
Handling tap event and showing the InfoWindow at a relevant position is let to sub-classes.
BasicInfoWindow
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected InfoWindow |
mInfoWindow |
protected Object |
mRelatedObject |
protected String |
mSnippet |
protected String |
mSubDescription |
protected String |
mTitle |
mBounds, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
OverlayWithIW() |
OverlayWithIW(Context ctx)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
closeInfoWindow() |
InfoWindow |
getInfoWindow() |
Object |
getRelatedObject() |
String |
getSnippet() |
String |
getSubDescription() |
String |
getTitle() |
boolean |
isInfoWindowOpen() |
void |
onDestroy() |
void |
setInfoWindow(InfoWindow infoWindow)
By default, OverlayWithIW has no InfoWindow.
|
void |
setRelatedObject(Object relatedObject)
Allows to link an Object (any Object) to this marker.
|
void |
setSnippet(String snippet) |
void |
setSubDescription(String subDescription)
set the "sub-description", an optional text to be shown in the InfoWindow, below the snippet, in a smaller text size
|
void |
setTitle(String title) |
draw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected String mTitle
protected String mSnippet
protected String mSubDescription
protected InfoWindow mInfoWindow
protected Object mRelatedObject
@Deprecated public OverlayWithIW(Context ctx)
OverlayWithIW()
insteadpublic OverlayWithIW()
public void setTitle(String title)
public String getTitle()
public void setSnippet(String snippet)
public String getSnippet()
public void setSubDescription(String subDescription)
public String getSubDescription()
public void setRelatedObject(Object relatedObject)
public Object getRelatedObject()
public void setInfoWindow(InfoWindow infoWindow)
infoWindow
- the InfoWindow to be opened when tapping the overlay.
This InfoWindow MUST be able to handle an OverlayWithIW (as BasicInfoWindow does).
Set it to null to remove an existing InfoWindow.public InfoWindow getInfoWindow()
public void closeInfoWindow()
public void onDestroy()
public boolean isInfoWindowOpen()