Changeset 29516 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2013-04-19T23:14:55+02:00 (12 years ago)
Author:
donvip
Message:

[jmapviewer] fix some stuff causing compilation problems in JOSM

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  
    714714     */
    715715    protected void paintPolygon(Graphics g, MapPolygon polygon) {
    716         List<ICoordinate> coords = polygon.getPoints();
     716        List<? extends ICoordinate> coords = polygon.getPoints();
    717717        if (coords != null && coords.size() >= 3) {
    718718            List<Point> points = new LinkedList<Point>();
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapPolygonImpl.java

    r29513 r29516  
    2424public class MapPolygonImpl extends MapObjectImpl implements MapPolygon {
    2525
    26     private List<ICoordinate> points;
     26    private List<? extends ICoordinate> points;
    2727
    2828    public MapPolygonImpl(ICoordinate ... points) {
    2929        this(null, null, points);
    3030    }
    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) {
    3235        this(null, name, points);
    3336    }
     
    3538        this(null, name, points);
    3639    }
    37     public MapPolygonImpl(Layer layer, List<ICoordinate> points) {
     40    public MapPolygonImpl(Layer layer, List<? extends ICoordinate> points) {
    3841        this(layer, null, points);
    3942    }
    40     public MapPolygonImpl(Layer layer, String name, List<ICoordinate> points) {
     43    public MapPolygonImpl(Layer layer, String name, List<? extends ICoordinate> points) {
    4144        this(layer, name, points, getDefaultStyle());
    4245    }
     
    4447        this(layer, name, Arrays.asList(points), getDefaultStyle());
    4548    }
    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) {
    4750        super(layer, name, style);
    4851        this.points = points;
     
    5356     */
    5457    @Override
    55     public List<ICoordinate> getPoints() {
     58    public List<? extends ICoordinate> getPoints() {
    5659        return this.points;
    5760    }
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java

    r29513 r29516  
    77import java.awt.Graphics2D;
    88import java.awt.Point;
    9 import java.awt.Rectangle;
    109import java.awt.Stroke;
    1110
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java

    r28505 r29516  
    1515import java.io.OutputStreamWriter;
    1616import java.io.PrintWriter;
    17 import java.lang.Thread;
    1817import java.net.HttpURLConnection;
    1918import java.net.URL;
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java

    r28505 r29516  
    88import java.net.URL;
    99import java.net.URLConnection;
     10import java.util.HashMap;
    1011import java.util.Map;
    1112import java.util.Map.Entry;
    12 import java.util.HashMap;
    1313
    1414import org.openstreetmap.gui.jmapviewer.interfaces.TileJob;
    1515import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
    1616import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
    17 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
    1817
    1918/**
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodeRenderer.java

    r29513 r29516  
    77import java.awt.event.ActionListener;
    88import java.awt.event.MouseAdapter;
    9 import java.awt.event.MouseEvent;
    109
    1110import javax.swing.JMenuItem;
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapPolygon.java

    r29513 r29516  
    66import java.awt.Polygon;
    77import java.util.List;
    8 
    9 import org.openstreetmap.gui.jmapviewer.Coordinate;
    108
    119/**
     
    1917     * @return Latitude/Longitude of each point of polygon
    2018     */
    21     public List<ICoordinate> getPoints();
     19    public List<? extends ICoordinate> getPoints();
    2220
    2321    /**
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java

    r26806 r29516  
    11package org.openstreetmap.gui.jmapviewer.interfaces;
    22
    3 import java.awt.Image;
    43import java.io.IOException;
    54
    6 import org.openstreetmap.gui.jmapviewer.Coordinate;
    75import org.openstreetmap.gui.jmapviewer.JMapViewer;
    86
Note: See TracChangeset for help on using the changeset viewer.