Changeset 4087 in josm for trunk/test/performance
- Timestamp:
- 2011-05-15T23:51:25+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/data/osm/MapPaintVisitorPerformanceTest.java
r3350 r4087 10 10 import org.openstreetmap.josm.Main; 11 11 import org.openstreetmap.josm.data.Bounds; 12 import org.openstreetmap.josm.data.osm.visitor.paint. MapPaintVisitor;13 import org.openstreetmap.josm.data.osm.visitor.paint. PaintVisitor;12 import org.openstreetmap.josm.data.osm.visitor.paint.Rendering; 13 import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer; 14 14 import org.openstreetmap.josm.data.projection.Mercator; 15 15 import org.openstreetmap.josm.gui.NavigatableComponent; … … 52 52 53 53 private static void test(int iterations, DataSet ds, Bounds bounds) throws Exception { 54 PaintVisitor visitor = new MapPaintVisitor();54 Rendering visitor = new StyledMapRenderer(g,nc,false); 55 55 nc.zoomTo(bounds); 56 visitor.setGraphics(g);57 visitor.setNavigatableComponent(nc);58 visitor.setInactive(false);59 56 for (int i=0; i<iterations; i++) { 60 visitor. visitAll(ds, true, bounds);57 visitor.render(ds, true, bounds); 61 58 } 62 59 }
Note:
See TracChangeset
for help on using the changeset viewer.