org.openstreetmap.gui.jmapviewer
Class MapPolygonImpl
java.lang.Object
org.openstreetmap.gui.jmapviewer.MapPolygonImpl
- All Implemented Interfaces:
- MapPolygon
public class MapPolygonImpl
- extends java.lang.Object
- implements MapPolygon
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
points
private java.util.List<Coordinate> points
color
private java.awt.Color color
stroke
private java.awt.Stroke stroke
MapPolygonImpl
public MapPolygonImpl(java.util.List<Coordinate> points)
MapPolygonImpl
public MapPolygonImpl(java.util.List<Coordinate> points,
java.awt.Color color,
java.awt.Stroke stroke)
getPoints
public java.util.List<Coordinate> getPoints()
- Specified by:
getPoints
in interface MapPolygon
- Returns:
- Latitude/Longitude of each point of polygon
paint
public void paint(java.awt.Graphics g,
java.util.List<java.awt.Point> points)
- Description copied from interface:
MapPolygon
- Paints the map rectangle on the map. The
points
are specifying the coordinates within g
- Specified by:
paint
in interface MapPolygon
paint
public void paint(java.awt.Graphics g,
java.awt.Polygon polygon)
- Description copied from interface:
MapPolygon
- Paints the map rectangle on the map. The
polygon
is specifying the coordinates within g
- Specified by:
paint
in interface MapPolygon
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
JOSM