OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Protected Member Functions | Static Protected Attributes
net.osmand.plus.views.OsmBugsLayer Class Reference
Inheritance diagram for net.osmand.plus.views.OsmBugsLayer:
net.osmand.plus.views.OsmandMapLayer net.osmand.plus.views.ContextMenuLayer.IContextMenuProvider net.osmand.plus.activities.DialogProvider

List of all members.

Classes

class  OpenStreetBug

Public Member Functions

 OsmBugsLayer (MapActivity activity)
void initLayer (OsmandMapTileView view)
void destroyLayer ()
boolean drawInScreenPixels ()
void onDraw (Canvas canvas, RectF latLonBounds, RectF tilesRect, DrawSettings nightMode)
int getRadiusBug (int zoom)
void requestToLoad (double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, final int zoom)
boolean onLongPressEvent (PointF point)
void getBugFromPoint (PointF point, List<?super OpenStreetBug > res)
boolean onSingleTap (PointF point)
void clearCache ()
boolean createNewBug (double latitude, double longitude, String text, String authorName)
boolean addingComment (long id, String text, String authorName)
boolean closingBug (long id)
void openBug (final double latitude, final double longitude)
void commentBug (final OpenStreetBug bug)
void refreshMap ()
void closeBug (final OpenStreetBug bug)
OnClickListener getActionListener (List< String > actionsList, Object o)
String getObjectDescription (Object o)
String getObjectName (Object o)
void collectObjectsFromPoint (PointF point, List< Object > res)
LatLon getObjectLocation (Object o)
Dialog onCreateDialog (int id)
void onPrepareDialog (int id, Dialog dialog)

Protected Member Functions

List< OpenStreetBug > loadingBugs (double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude)

Static Protected Attributes

static final String KEY_LATITUDE = "latitude"
static final String KEY_LONGITUDE = "longitude"
static final String KEY_BUG = "bug"

Constructor & Destructor Documentation


Member Function Documentation

boolean net.osmand.plus.views.OsmBugsLayer.addingComment ( long  id,
String  text,
String  authorName 
)
void net.osmand.plus.views.OsmBugsLayer.closeBug ( final OpenStreetBug  bug)
void net.osmand.plus.views.OsmBugsLayer.collectObjectsFromPoint ( PointF  point,
List< Object >  res 
)
void net.osmand.plus.views.OsmBugsLayer.commentBug ( final OpenStreetBug  bug)
boolean net.osmand.plus.views.OsmBugsLayer.createNewBug ( double  latitude,
double  longitude,
String  text,
String  authorName 
)

This method returns whether canvas should be rotated as map rotated before onDraw(Canvas). If the layer draws simply layer over screen (not over map) it should return true.

Implements net.osmand.plus.views.OsmandMapLayer.

OnClickListener net.osmand.plus.views.OsmBugsLayer.getActionListener ( List< String >  actionsList,
Object  o 
)
void net.osmand.plus.views.OsmBugsLayer.getBugFromPoint ( PointF  point,
List<?super OpenStreetBug >  res 
)
List<OpenStreetBug> net.osmand.plus.views.OsmBugsLayer.loadingBugs ( double  topLatitude,
double  leftLongitude,
double  bottomLatitude,
double  rightLongitude 
) [protected]
void net.osmand.plus.views.OsmBugsLayer.onDraw ( Canvas  canvas,
RectF  latLonBounds,
RectF  tilesRect,
DrawSettings  nightMode 
) [virtual]
void net.osmand.plus.views.OsmBugsLayer.onPrepareDialog ( int  id,
Dialog  dialog 
)
void net.osmand.plus.views.OsmBugsLayer.openBug ( final double  latitude,
final double  longitude 
)
void net.osmand.plus.views.OsmBugsLayer.requestToLoad ( double  topLatitude,
double  leftLongitude,
double  bottomLatitude,
double  rightLongitude,
final int  zoom 
)

Member Data Documentation

final String net.osmand.plus.views.OsmBugsLayer.KEY_BUG = "bug" [static, protected]
final String net.osmand.plus.views.OsmBugsLayer.KEY_LATITUDE = "latitude" [static, protected]
final String net.osmand.plus.views.OsmBugsLayer.KEY_LONGITUDE = "longitude" [static, protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines