org.openstreetmap.gui.jmapviewer.interfaces
Interface MapRectangle
- All Known Implementing Classes:
- MapRectangleImpl
public interface MapRectangle
Interface to be implemented by rectangles that can be displayed on the map.
- See Also:
JMapViewer.addMapRectangle(MapRectangle)
,
JMapViewer.getMapRectangleList()
getTopLeft
Coordinate getTopLeft()
- Returns:
- Latitude/Longitude of top left of rectangle
getBottomRight
Coordinate getBottomRight()
- Returns:
- Latitude/Longitude of bottom right of rectangle
paint
void paint(java.awt.Graphics g,
java.awt.Point topLeft,
java.awt.Point bottomRight)
- Paints the map rectangle on the map. The
topLeft
and
bottomRight
are specifying the coordinates within g
- Parameters:
g
- graphics structure for paintingtopLeft
- lop left edge of painting regionbottomRight
- bottom right edge of painting region
JOSM