Package org.oscim.layers.marker
Interface MarkerLayer.Snappable
- Enclosing class:
- MarkerLayer
public static interface MarkerLayer.Snappable
TODO
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 an interesting point.)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonSnapToItem(int x, int y, Point snapPoint) Checks to see if the given x and y are close enough to an item resulting in snapping the current action (e.g.
-
Method Details
-
onSnapToItem
Checks to see if the given x and y are close enough to an item resulting in snapping the current 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 interesting point (in screen coordinates) that is closest to the given x and y. Can be untouched if not snapping.- Returns:
- Whether or not to snap to the interesting point.
-