Changeset 26668 in osm for applications
- Timestamp:
- 2011-09-17T23:08:23+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java
r26652 r26668 10 10 11 11 import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle; 12 import org.openstreetmap.josm.data.Bounds;13 12 14 13 /** … … 23 22 private Stroke stroke; 24 23 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)); 27 26 } 28 27 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; 32 31 this.color = color; 33 32 this.stroke = stroke;
Note:
See TracChangeset
for help on using the changeset viewer.