Package 

Interface Overlay.Snappable


  • 
    public interface Overlay.Snappable
    
                        

    Interface definition for overlays that contain items that can be snapped to (for example,when the user invokes a zoom, this could be called allowing the user to snap the zoom to aninteresting point.)

    • Method Summary

      Modifier and Type Method Description
      abstract boolean onSnapToItem(int x, int y, Point snapPoint, IMapView mapView) Checks to see if the given x and y are close enough to an item resulting in snapping thecurrent action (e.g.
      • Methods inherited from class java.lang.Object

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

      • onSnapToItem

         abstract boolean onSnapToItem(int x, int y, Point snapPoint, IMapView mapView)

        Checks to see if the given x and y are close enough to an item resulting in snapping thecurrent action (e.g. zoom) to the item.

        Parameters:
        x - The x in screen coordinates.
        y - The y in screen coordinates.
        snapPoint - To be filled with the the interesting point (in screen coordinates) that isclosest to the given x and y.
        mapView - The MapView that is requesting the snap.