Changeset 33342 in osm for applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/FakeMapView.java
- Timestamp:
- 2017-05-27T22:56:30+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/FakeMapView.java
r32914 r33342 1 1 /* 2 2 * GPLv2 or 3, Copyright (c) 2010 Andrzej Zaborowski 3 * 3 */ 4 package wmsturbochallenge; 5 6 import java.awt.Graphics; 7 import java.awt.Graphics2D; 8 import java.awt.Point; 9 import java.awt.image.BufferedImage; 10 11 import org.openstreetmap.josm.data.ProjectionBounds; 12 import org.openstreetmap.josm.data.coor.EastNorth; 13 import org.openstreetmap.josm.gui.MapView; 14 15 /** 4 16 * Implements a fake MapView that we can pass to WMSLayer's .paint, 5 17 * this will give us two things: … … 14 26 * this happened and could only guess. 15 27 */ 16 package wmsturbochallenge;17 18 import java.awt.Graphics;19 import java.awt.Graphics2D;20 import java.awt.Point;21 import java.awt.image.BufferedImage;22 23 import org.openstreetmap.josm.data.ProjectionBounds;24 import org.openstreetmap.josm.data.coor.EastNorth;25 import org.openstreetmap.josm.gui.MapView;26 27 28 class FakeMapView extends MapView { 28 29 public ProjectionBounds view_bounds; … … 36 37 public double max_east_west; 37 38 38 public FakeMapView(MapView parent, double scale) { 39 super(null, null, null); //TODO MapView constructor contains registering listeners and other code, that probably shouldn't be called in fake map view 39 FakeMapView(MapView parent, double scale) { 40 // TODO: MapView constructor contains registering listeners and other code, that probably shouldn't be called in fake map view 41 super(null, null, null); 40 42 this.parent = parent; 41 43 this.scale = scale;
Note:
See TracChangeset
for help on using the changeset viewer.
