Changeset 29516 in osm for applications/viewer/jmapviewer/src/org
- Timestamp:
- 2013-04-19T23:14:55+02:00 (12 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r29513 r29516 714 714 */ 715 715 protected void paintPolygon(Graphics g, MapPolygon polygon) { 716 List< ICoordinate> coords = polygon.getPoints();716 List<? extends ICoordinate> coords = polygon.getPoints(); 717 717 if (coords != null && coords.size() >= 3) { 718 718 List<Point> points = new LinkedList<Point>(); -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapPolygonImpl.java
r29513 r29516 24 24 public class MapPolygonImpl extends MapObjectImpl implements MapPolygon { 25 25 26 private List< ICoordinate> points;26 private List<? extends ICoordinate> points; 27 27 28 28 public MapPolygonImpl(ICoordinate ... points) { 29 29 this(null, null, points); 30 30 } 31 public MapPolygonImpl(String name, List<ICoordinate> points) { 31 public MapPolygonImpl(List<? extends ICoordinate> points) { 32 this(null, null, points); 33 } 34 public MapPolygonImpl(String name, List<? extends ICoordinate> points) { 32 35 this(null, name, points); 33 36 } … … 35 38 this(null, name, points); 36 39 } 37 public MapPolygonImpl(Layer layer, List< ICoordinate> points) {40 public MapPolygonImpl(Layer layer, List<? extends ICoordinate> points) { 38 41 this(layer, null, points); 39 42 } 40 public MapPolygonImpl(Layer layer, String name, List< ICoordinate> points) {43 public MapPolygonImpl(Layer layer, String name, List<? extends ICoordinate> points) { 41 44 this(layer, name, points, getDefaultStyle()); 42 45 } … … 44 47 this(layer, name, Arrays.asList(points), getDefaultStyle()); 45 48 } 46 public MapPolygonImpl(Layer layer, String name, List< ICoordinate> points, Style style) {49 public MapPolygonImpl(Layer layer, String name, List<? extends ICoordinate> points, Style style) { 47 50 super(layer, name, style); 48 51 this.points = points; … … 53 56 */ 54 57 @Override 55 public List< ICoordinate> getPoints() {58 public List<? extends ICoordinate> getPoints() { 56 59 return this.points; 57 60 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java
r29513 r29516 7 7 import java.awt.Graphics2D; 8 8 import java.awt.Point; 9 import java.awt.Rectangle;10 9 import java.awt.Stroke; 11 10 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
r28505 r29516 15 15 import java.io.OutputStreamWriter; 16 16 import java.io.PrintWriter; 17 import java.lang.Thread;18 17 import java.net.HttpURLConnection; 19 18 import java.net.URL; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
r28505 r29516 8 8 import java.net.URL; 9 9 import java.net.URLConnection; 10 import java.util.HashMap; 10 11 import java.util.Map; 11 12 import java.util.Map.Entry; 12 import java.util.HashMap;13 13 14 14 import org.openstreetmap.gui.jmapviewer.interfaces.TileJob; 15 15 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader; 16 16 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener; 17 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;18 17 19 18 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodeRenderer.java
r29513 r29516 7 7 import java.awt.event.ActionListener; 8 8 import java.awt.event.MouseAdapter; 9 import java.awt.event.MouseEvent;10 9 11 10 import javax.swing.JMenuItem; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapPolygon.java
r29513 r29516 6 6 import java.awt.Polygon; 7 7 import java.util.List; 8 9 import org.openstreetmap.gui.jmapviewer.Coordinate;10 8 11 9 /** … … 19 17 * @return Latitude/Longitude of each point of polygon 20 18 */ 21 public List< ICoordinate> getPoints();19 public List<? extends ICoordinate> getPoints(); 22 20 23 21 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
r26806 r29516 1 1 package org.openstreetmap.gui.jmapviewer.interfaces; 2 2 3 import java.awt.Image;4 3 import java.io.IOException; 5 4 6 import org.openstreetmap.gui.jmapviewer.Coordinate;7 5 import org.openstreetmap.gui.jmapviewer.JMapViewer; 8 6
Note:
See TracChangeset
for help on using the changeset viewer.