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()

Method Summary
 Coordinate getBottomRight()
           
 Coordinate getTopLeft()
           
 void paint(java.awt.Graphics g, java.awt.Point topLeft, java.awt.Point bottomRight)
          Paints the map rectangle on the map.
 

Method Detail

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 painting
topLeft - lop left edge of painting region
bottomRight - bottom right edge of painting region


JOSM