Changeset 26668 in osm for applications


Ignore:
Timestamp:
2011-09-17T23:08:23+02:00 (13 years ago)
Author:
bastik
Message:

fixed josm 6858 - Unnecessary JMapViewer Dependencies (patch by Don-vip)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java

    r26652 r26668  
    1010
    1111import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle;
    12 import org.openstreetmap.josm.data.Bounds;
    1312
    1413/**
     
    2322    private Stroke stroke;
    2423
    25     public MapRectangleImpl(Bounds bounds) {
    26         this(bounds, Color.BLUE, new BasicStroke(2));
     24    public MapRectangleImpl(Coordinate topLeft, Coordinate bottomRight) {
     25        this(topLeft, bottomRight, Color.BLUE, new BasicStroke(2));
    2726    }
    2827
    29     public MapRectangleImpl(Bounds bounds, Color color, Stroke stroke) {
    30         this.topLeft = new Coordinate(bounds.getMax().lat(), bounds.getMin().lon());
    31         this.bottomRight = new Coordinate(bounds.getMin().lat(), bounds.getMax().lon());
     28    public MapRectangleImpl(Coordinate topLeft, Coordinate bottomRight, Color color, Stroke stroke) {
     29        this.topLeft = topLeft;
     30        this.bottomRight = bottomRight;
    3231        this.color = color;
    3332        this.stroke = stroke;
Note: See TracChangeset for help on using the changeset viewer.