
public class Polyline extends PolyOverlayWithIW
| Modifier and Type | Class and Description |
|---|---|
static interface |
Polyline.OnClickListener
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.
|
Overlay.Snappable| Modifier and Type | Field and Description |
|---|---|
protected Polyline.OnClickListener |
mOnClickListener |
mDensity, mFillPaint, mHoles, mOutline, mOutlinePaint, mPathmId, mInfoWindow, mRelatedObject, mSnippet, mSubDescription, mTitlemBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Constructor and Description |
|---|
Polyline()
If MapView is not provided, infowindow popup will not function unless you set it yourself.
|
Polyline(MapView mapView)
If MapView is null, infowindow popup will not function unless you set it yourself.
|
Polyline(MapView pMapView,
boolean pUsePath) |
Polyline(MapView pMapView,
boolean pUsePath,
boolean pClosePath) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
click(MapView pMapView,
GeoPoint pEventPos) |
int |
getColor()
Deprecated.
Use {
PolyOverlayWithIW.getOutlinePaint()} instead |
double |
getDistance() |
Paint |
getPaint()
Deprecated.
Use {
PolyOverlayWithIW.getOutlinePaint()} instead |
ArrayList<GeoPoint> |
getPoints()
Deprecated.
Use
PolyOverlayWithIW.getActualPoints() instead; copy the list if necessary |
float |
getWidth()
Deprecated.
Use {
PolyOverlayWithIW.getOutlinePaint()} instead |
boolean |
onClickDefault(Polyline polyline,
MapView mapView,
GeoPoint eventPos)
default behaviour when no click listener is set
|
void |
onDetach(MapView mapView)
Override to perform clean up of resources before shutdown.
|
void |
setColor(int color)
Deprecated.
Use {
PolyOverlayWithIW.getOutlinePaint()} instead |
void |
setOnClickListener(Polyline.OnClickListener listener) |
void |
setWidth(float width)
Deprecated.
Use {
PolyOverlayWithIW.getOutlinePaint()} instead |
addPoint, contains, draw, getActualPoints, getBounds, getCloseTo, getFillPaint, getInfoWindowLocation, getOutlinePaint, getOutlinePaintLists, isCloseTo, isGeodesic, isVisible, onSingleTapConfirmed, setDefaultInfoWindowLocation, setDensityMultiplier, setDowngradeDisplay, setDowngradePixelSizes, setGeodesic, setInfoWindow, setInfoWindowLocation, setMilestoneManagers, setPoints, setVisible, showInfoWindow, usePathcloseInfoWindow, getId, getInfoWindow, getRelatedObject, getSnippet, getSubDescription, getTitle, isInfoWindowOpen, onDestroy, setId, setRelatedObject, setSnippet, setSubDescription, setTitledraw, drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabledprotected Polyline.OnClickListener mOnClickListener
public Polyline()
public Polyline(MapView mapView)
public Polyline(MapView pMapView, boolean pUsePath, boolean pClosePath)
public Polyline(MapView pMapView, boolean pUsePath)
pUsePath - true if you want the drawing to use Path instead of Canvas.drawLines
Not recommended in all cases, given the performances.
Useful though if you want clean alpha vertices
cf. https://github.com/osmdroid/osmdroid/issues/1280@Deprecated public ArrayList<GeoPoint> getPoints()
PolyOverlayWithIW.getActualPoints() instead; copy the list if necessary@Deprecated public int getColor()
PolyOverlayWithIW.getOutlinePaint()} instead@Deprecated public float getWidth()
PolyOverlayWithIW.getOutlinePaint()} instead@Deprecated public Paint getPaint()
PolyOverlayWithIW.getOutlinePaint()} instead@Deprecated public void setColor(int color)
PolyOverlayWithIW.getOutlinePaint()} instead@Deprecated public void setWidth(float width)
PolyOverlayWithIW.getOutlinePaint()} insteadpublic void setOnClickListener(Polyline.OnClickListener listener)
public boolean onClickDefault(Polyline polyline, MapView mapView, GeoPoint eventPos)
public void onDetach(MapView mapView)
OverlayonDetach in class PolyOverlayWithIWpublic double getDistance()
getDistance in class PolyOverlayWithIWprotected boolean click(MapView pMapView, GeoPoint pEventPos)
click in class PolyOverlayWithIW