
public abstract class PolyOverlayWithIW extends OverlayWithIW
Overlay.Snappable| Modifier and Type | Field and Description |
|---|---|
protected float |
mDensity |
protected Paint |
mFillPaint |
protected List<LinearRing> |
mHoles |
protected List<GeoPoint> |
mOriginalPoints |
protected LinearRing |
mOutline |
protected Paint |
mOutlinePaint |
protected Path |
mPath |
mId, mInfoWindow, mRelatedObject, mSnippet, mSubDescription, mTitlemBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Modifier | Constructor and Description |
|---|---|
protected |
PolyOverlayWithIW(MapView pMapView,
boolean pUsePath,
boolean pClosePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas pCanvas,
Projection pProjection) |
double |
getDistance() |
protected Paint |
getFillPaint() |
GeoPoint |
getInfoWindowLocation() |
Paint |
getOutlinePaint() |
boolean |
isGeodesic() |
boolean |
isVisible() |
void |
onDetach(MapView mapView)
Override to perform clean up of resources before shutdown.
|
protected void |
setDefaultInfoWindowLocation()
Internal method used to ensure that the infowindow will have a default position in all cases,
so that the user can call showInfoWindow even if no tap occured before.
|
void |
setGeodesic(boolean geodesic)
Sets whether to draw each segment of the line as a geodesic or not.
|
void |
setInfoWindow(InfoWindow infoWindow)
Set the InfoWindow to be used.
|
void |
setInfoWindowLocation(GeoPoint location)
Sets the info window anchor point to a geopoint location
|
void |
setMilestoneManagers(List<MilestoneManager> pMilestoneManagers) |
void |
setVisible(boolean visible) |
void |
showInfoWindow()
Show the infowindow, if any.
|
closeInfoWindow, getId, getInfoWindow, getRelatedObject, getSnippet, getSubDescription, getTitle, isInfoWindowOpen, onDestroy, setId, setRelatedObject, setSnippet, setSubDescription, setTitledraw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabledprotected LinearRing mOutline
protected List<LinearRing> mHoles
protected final Paint mOutlinePaint
protected Paint mFillPaint
protected final Path mPath
protected float mDensity
protected PolyOverlayWithIW(MapView pMapView, boolean pUsePath, boolean pClosePath)
public void setVisible(boolean visible)
public boolean isVisible()
public Paint getOutlinePaint()
protected Paint getFillPaint()
public void setGeodesic(boolean geodesic)
public boolean isGeodesic()
public void setInfoWindow(InfoWindow infoWindow)
setInfoWindow in class OverlayWithIWinfoWindow - 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 void showInfoWindow()
public void setInfoWindowLocation(GeoPoint location)
public GeoPoint getInfoWindowLocation()
public void setMilestoneManagers(List<MilestoneManager> pMilestoneManagers)
public double getDistance()
protected void setDefaultInfoWindowLocation()
public void draw(Canvas pCanvas, Projection pProjection)