Ignore:
Timestamp:
2009-11-14T19:27:50+01:00 (16 years ago)
Author:
jttt
Message:

Updated to new MapViewPaintable.paint arguments

Location:
applications/editors/josm/plugins/agpifoj
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/agpifoj/.classpath

    r16603 r18593  
    22<classpath>
    33        <classpathentry kind="src" path="src"/>
    4         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
     4        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JDK 5"/>
    55        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
     6        <classpathentry kind="lib" path="/JOSM/lib/metadata-extractor-2.3.1-nosun.jar"/>
    67        <classpathentry kind="output" path="bin"/>
    78</classpath>
  • applications/editors/josm/plugins/agpifoj/build.xml

    r18287 r18593  
    3434                <attribute name="Plugin-Early" value="false"/>
    3535                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/>
    36                 <attribute name="Plugin-Mainversion" value="2322"/>
     36                <attribute name="Plugin-Mainversion" value="2450"/>
    3737                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3838            </manifest>
  • applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/AgpifojLayer.java

    r18287 r18593  
    99
    1010import java.awt.Component;
    11 import java.awt.Graphics;
     11import java.awt.Graphics2D;
    1212import java.awt.Point;
    1313import java.awt.Rectangle;
     
    3131import org.openstreetmap.josm.Main;
    3232import org.openstreetmap.josm.actions.RenameLayerAction;
     33import org.openstreetmap.josm.data.Bounds;
    3334import org.openstreetmap.josm.data.coor.CachedLatLon;
    3435import org.openstreetmap.josm.data.coor.LatLon;
     
    109110                this.errorMessages.add(message);
    110111        }
    111        
     112
    112113        public Loader(File[] selection) {
    113114            super(tr("Extracting GPS locations from EXIF"));
    114115            this.selection = selection;
    115             errorMessages = new LinkedHashSet<String>(); 
     116            errorMessages = new LinkedHashSet<String>();
    116117        }
    117118
     
    122123            try {
    123124                addRecursiveFiles(files, selection);
    124             } catch(NullPointerException npe) {                 
     125            } catch(NullPointerException npe) {
    125126                rememberError(tr("One of the selected files was null"));
    126127            }
     
    128129            if (cancelled) {
    129130                return;
    130             }           
     131            }
    131132            progressMonitor.subTask(tr("Read photos..."));
    132133            progressMonitor.setTicksCount(files.size());
     
    200201                        } catch(NullPointerException npe) {
    201202                            npe.printStackTrace();
    202                            
     203
    203204                            rememberError(tr("Found null file in directory {0}\n", f.getPath()));
    204205                        }
     
    232233                return sb.toString();
    233234        }
    234        
     235
    235236        @Override protected void finish() {
    236237                if (!errorMessages.isEmpty()) {
     
    361362
    362363    @Override
    363     public void paint(Graphics g, MapView mv) {
     364    public void paint(Graphics2D g, MapView mv, Bounds bounds) {
    364365
    365366        int iconWidth = icon.getIconWidth() / 2;
  • applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java

    r17526 r18593  
    9696        }
    9797
    98         public String toString() {
     98        @Override
     99                public String toString() {
    99100            return name;
    100101        }
     
    172173                    x.printStackTrace();
    173174                    JOptionPane.showMessageDialog(
    174                                 Main.parent, 
     175                                Main.parent,
    175176                                tr("Error while parsing {0}",sel.getName())+": "+x.getMessage(),
    176177                                tr("Error"),
     
    181182                    x.printStackTrace();
    182183                    JOptionPane.showMessageDialog(
    183                                 Main.parent, 
     184                                Main.parent,
    184185                                tr("Could not read \"{0}\"",sel.getName())+"\n"+x.getMessage(),
    185186                                tr("Error"),
     
    386387            while (! isOk) {
    387388                int answer = JOptionPane.showConfirmDialog(
    388                                 Main.parent, panel, 
    389                                 tr("Synchronize time from a photo of the GPS receiver"), 
     389                                Main.parent, panel,
     390                                tr("Synchronize time from a photo of the GPS receiver"),
    390391                                JOptionPane.OK_CANCEL_OPTION,
    391392                                JOptionPane.QUESTION_MESSAGE
     
    637638        // Search whether an other layer has yet defined some bounding box.
    638639        // If none, we'll zoom to the bounding box of the layer with the photos.
    639         Collection<Layer> layerCol = Main.map.mapView.getAllLayers();
    640         Iterator<Layer> layerIter = layerCol.iterator();
    641640        boolean boundingBoxedLayerFound = false;
    642         while (layerIter.hasNext()) {
    643             Layer l = layerIter.next();
     641        for (Layer l: Main.map.mapView.getAllLayers()) {
    644642            if (l != yLayer) {
    645643                BoundingXYVisitor bbox = new BoundingXYVisitor();
     
    657655        }
    658656
    659         Main.main.map.repaint();
     657        Main.map.repaint();
    660658
    661659        JOptionPane.showMessageDialog(Main.parent, tr("Found {0} matches of {1} in GPX track {2}", matched, dateImgLst.size(), selectedGpx.name),
     
    886884        ExtendedDialog d = new ExtendedDialog(Main.parent,
    887885            tr("Adjust timezone and offset"),
    888             new String[] { tr("Close"),  tr("Default Values") }           
     886            new String[] { tr("Close"),  tr("Default Values") }
    889887        );
    890888
Note: See TracChangeset for help on using the changeset viewer.