org.openstreetmap.gui.jmapviewer.interfaces
Interface MapPolygon

All Known Implementing Classes:
MapPolygonImpl

public interface MapPolygon

Interface to be implemented by polygons that can be displayed on the map.


Method Summary
 java.util.List<Coordinate> getPoints()
           
 void paint(java.awt.Graphics g, java.util.List<java.awt.Point> points)
          Paints the map rectangle on the map.
 void paint(java.awt.Graphics g, java.awt.Polygon polygon)
          Paints the map rectangle on the map.
 

Method Detail

getPoints

java.util.List<Coordinate> getPoints()
Returns:
Latitude/Longitude of each point of polygon

paint

void paint(java.awt.Graphics g,
           java.util.List<java.awt.Point> points)
Paints the map rectangle on the map. The points are specifying the coordinates within g

Parameters:
g -
points -

paint

void paint(java.awt.Graphics g,
           java.awt.Polygon polygon)
Paints the map rectangle on the map. The polygon is specifying the coordinates within g

Parameters:
g -
polygon -


JOSM