Package 

Class ScrollEvent

  • All Implemented Interfaces:
    org.osmdroid.events.MapEvent

    
    public class ScrollEvent
     implements MapEvent
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected MapView source
      protected int x
      protected int y
    • Constructor Summary

      Constructors 
      Constructor Description
      ScrollEvent(MapView source, int x, int y) note coordinates represent integer based scroll coordinates, not latitude/longitude.
    • Method Summary

      Modifier and Type Method Description
      MapView getSource() Return the map which generated this event.
      int getX() Return the x-coordinate scrolled to.note coordinates represent integer based scroll coordinates, not latitude/longitude.
      int getY() note coordinates represent integer based scroll coordinates, not latitude/longitude.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScrollEvent

        ScrollEvent(MapView source, int x, int y)
        note coordinates represent integer based scroll coordinates, not latitude/longitude.
    • Method Detail

      • getX

         int getX()

        Return the x-coordinate scrolled to.note coordinates represent integer based scroll coordinates, not latitude/longitude. They aresubject to integer overflow and will be revisited in a later version of osmdroid to use long values.In some cases, osmdroid will always send a 0,0 coordinate.As such, this event is more useful to be notified when the map moves, but not really where it ended up.Use other functions in getBoundingBox and getMapCenter for that.

      • getY

         int getY()

        note coordinates represent integer based scroll coordinates, not latitude/longitude. They aresubject to integer overflow and will be revisited in a later version of osmdroid to use long values.Return the y-coordinate scrolled to. In some cases, osmdroid will always send a 0,0 coordinate.As such, this event is more useful to be notified when the map moves, but not really where it ended up.Use other functions in getBoundingBox and getMapCenter for that.