Changeset 24999 in osm for applications/editors/josm
- Timestamp:
- 2011-01-08T13:45:42+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/wms-turbo-challenge2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wms-turbo-challenge2/.classpath
r21477 r24999 4 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 5 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 6 <classpathentry combineaccessrules="false" kind="src" path="/wmsplugin"/>7 6 <classpathentry kind="output" path="build"/> 8 7 </classpath> -
applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
r21706 r24999 16 16 <property name="plugin.dist.dir" value="../../dist"/> 17 17 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 18 <property name="wmsplugin" location="${plugin.dist.dir}/wmsplugin.jar:${user.home}/.josm/plugins/wmsplugin.jar"/>19 18 20 19 <!-- … … 34 33 <target name="compile" depends="init"> 35 34 <echo message="compiling sources for ${plugin.jar} ... "/> 36 <javac srcdir="src" classpath="${josm} :${wmsplugin}" debug="true" destdir="${plugin.build.dir}">35 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 37 36 <compilerarg value="-Xlint:deprecation"/> 38 37 <compilerarg value="-Xlint:unchecked"/> … … 67 66 <attribute name="Plugin-Icon" value="images/wmsracer.png"/> 68 67 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/> 69 <attribute name="Plugin-Mainversion" value="3 252"/>68 <attribute name="Plugin-Mainversion" value="3715"/> 70 69 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 71 70 </manifest> -
applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java
r23190 r24999 6 6 package wmsturbochallenge; 7 7 8 import org.openstreetmap.josm.gui.layer.Layer; 9 import org.openstreetmap.josm.gui.layer.GpxLayer; 10 import org.openstreetmap.josm.gui.MapView; 8 import java.awt.Color; 9 import java.awt.Graphics; 10 import java.awt.Image; 11 import java.awt.Point; 12 import java.awt.Toolkit; 13 import java.awt.event.ActionEvent; 14 import java.awt.event.ActionListener; 15 import java.awt.event.KeyAdapter; 16 import java.awt.event.KeyEvent; 17 import java.awt.image.BufferedImage; 18 import java.util.ArrayList; 19 import java.util.Arrays; 20 import java.util.Collection; 21 import java.util.HashMap; 22 import java.util.List; 23 24 import javax.swing.ImageIcon; 25 import javax.swing.JFrame; 26 import javax.swing.JPanel; 27 import javax.swing.Timer; 28 11 29 import org.openstreetmap.josm.Main; 12 13 30 import org.openstreetmap.josm.data.ProjectionBounds; 14 31 import org.openstreetmap.josm.data.coor.EastNorth; 15 import org.openstreetmap.josm.data.coor.LatLon;16 32 import org.openstreetmap.josm.data.gpx.GpxData; 17 import org.openstreetmap.josm.data.gpx.GpxTrack;18 33 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 19 34 import org.openstreetmap.josm.data.gpx.WayPoint; 20 21 import java.util.Collection; 22 import java.util.ArrayList; 23 import java.util.List; 24 import java.util.Arrays; 25 import java.util.HashMap; 26 27 import java.awt.Point; 28 import java.awt.event.ActionEvent; 29 import java.awt.event.ActionListener; 30 import java.awt.event.KeyEvent; 31 import java.awt.event.KeyAdapter; 32 import java.awt.Toolkit; 33 import java.awt.Graphics; 34 import java.awt.Color; 35 import java.awt.Image; 36 import java.awt.image.BufferedImage; 37 38 import javax.swing.JFrame; 39 import javax.swing.JPanel; 40 import javax.swing.ImageIcon; 41 import javax.swing.Timer; 35 import org.openstreetmap.josm.gui.layer.GpxLayer; 36 import org.openstreetmap.josm.gui.layer.Layer; 37 import org.openstreetmap.josm.gui.layer.WMSLayer; 42 38 43 39 public class GameWindow extends JFrame implements ActionListener { … … 110 106 } 111 107 108 @Override 112 109 public void start() { 113 110 super.start(); … … 394 391 /* If the layer is a WMS layer, check if any tiles are 395 392 * missing */ 396 if (ground instanceof wmsplugin.WMSLayer) {397 wmsplugin.WMSLayer wms = (wmsplugin.WMSLayer) ground;393 if (ground instanceof WMSLayer) { 394 WMSLayer wms = (WMSLayer) ground; 398 395 downloading = wms.hasAutoDownload() && ( 399 396 null == wms.findImage(new EastNorth( … … 590 587 } 591 588 589 @Override 592 590 public void paint(Graphics g) { 593 591 int w = (int) getSize().getWidth(); … … 639 637 640 638 protected class TAdapter extends KeyAdapter { 639 @Override 641 640 public void keyPressed(KeyEvent e) { 642 641 int key = e.getKeyCode(); … … 682 681 } 683 682 683 @Override 684 684 public void keyReleased(KeyEvent e) { 685 685 int key = e.getKeyCode();
Note:
See TracChangeset
for help on using the changeset viewer.