Package adams.data.mapobject
Interface HitIndicator
-
- All Known Implementing Classes:
SimpleMapMarkerCircle
,SimpleMapMarkerDot
,SimpleMapPolygon
,SimpleMapRectangle
public interface HitIndicator
Interface for mapobjects that mapobjects implement to allow checks whether a coordinate hits it.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isHit(org.openstreetmap.gui.jmapviewer.JMapViewer viewer, org.openstreetmap.gui.jmapviewer.Coordinate coord)
Checks whether the given coordinate is a hit for a specific mapobject.
-
-
-
Method Detail
-
isHit
boolean isHit(org.openstreetmap.gui.jmapviewer.JMapViewer viewer, org.openstreetmap.gui.jmapviewer.Coordinate coord)
Checks whether the given coordinate is a hit for a specific mapobject.- Parameters:
viewer
- the underlying viewer that triggered the callcoord
- the coordinate to check- Returns:
- true if the mapobject is "hit" by this coordinate
-
-