org.openstreetmap.gui.jmapviewer.interfaces
Interface MapMarker
- All Known Implementing Classes:
- MapMarkerDot
public interface MapMarker
Interface to be implemented by all one dimensional elements that can be displayed on the map.
- See Also:
JMapViewer.addMapMarker(MapMarker)
,
JMapViewer.getMapMarkerList()
Method Summary |
double |
getLat()
|
double |
getLon()
|
void |
paint(java.awt.Graphics g,
java.awt.Point position)
Paints the map marker on the map. |
getLat
double getLat()
- Returns:
- Latitude of the map marker position
getLon
double getLon()
- Returns:
- Longitude of the map marker position
paint
void paint(java.awt.Graphics g,
java.awt.Point position)
- Paints the map marker on the map. The
position
specifies the
coordinates within g
- Parameters:
g
- position
-
JOSM