Changeset 16163 in osm for applications


Ignore:
Timestamp:
2009-06-26T22:22:00+02:00 (15 years ago)
Author:
jttt
Message:

Use getter for Node.coor and Node.eastNorth

Location:
applications/editors/josm/plugins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/build.xml

    r14015 r16163  
    2626                <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/>
    28                 <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Mainversion" value="1638"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java

    r14817 r16163  
    125125            }
    126126
    127             Point p = mv.getPoint(node.eastNorth);
     127            Point p = mv.getPoint(node.getEastNorth());
    128128
    129129            ImageIcon icon = OsbPlugin.loadIcon("icon_error16.png");
     
    200200            if (n.deleted || n.incomplete)
    201201                continue;
    202             Point sp = Main.map.mapView.getPoint(n.eastNorth);
     202            Point sp = Main.map.mapView.getPoint(n.getEastNorth());
    203203            double dist = p.distanceSq(sp);
    204204            if (minDistanceSq > dist && p.distance(sp) < snapDistance) {
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r15960 r16163  
    258258    public void zoomToNode(Node node) {
    259259        double scale = Main.map.mapView.getScale();
    260         Main.map.mapView.zoomTo(node.eastNorth, scale);
     260        Main.map.mapView.zoomTo(node.getEastNorth(), scale);
    261261    }
    262262
  • applications/editors/josm/plugins/osmarender/.classpath

    r1438 r16163  
    33        <classpathentry kind="src" path="src"/>
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    5         <classpathentry combineaccessrules="false" kind="src" path="/josm"/>
     5        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
    66        <classpathentry kind="output" path="bin"/>
    77</classpath>
  • applications/editors/josm/plugins/osmarender/build.xml

    r14015 r16163  
    2626                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    2727                <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image."/>
    28                 <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Mainversion" value="1638"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/osmarender/src/OsmarenderPlugin.java

    r15938 r16163  
    22
    33import java.awt.event.ActionEvent;
     4import java.io.BufferedReader;
     5import java.io.File;
    46import java.io.FileOutputStream;
     7import java.io.FileReader;
    58import java.io.IOException;
    69import java.io.PrintWriter;
    7 import java.io.BufferedReader;
    8 import java.io.FileReader;
    9 import java.io.File;
    10 import java.util.Collection;
    1110import java.util.HashSet;
    1211
    13 import javax.swing.AbstractAction;
    1412import javax.swing.JLabel;
    1513import javax.swing.JMenuItem;
     
    2321import org.openstreetmap.josm.data.osm.DataSet;
    2422import org.openstreetmap.josm.data.osm.Node;
     23import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2524import org.openstreetmap.josm.data.osm.Way;
    26 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2725import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
     26import org.openstreetmap.josm.gui.MainMenu;
    2827import org.openstreetmap.josm.gui.MapFrame;
    29 import org.openstreetmap.josm.gui.MainMenu;
    3028import org.openstreetmap.josm.gui.preferences.PreferenceDialog;
    3129import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
     
    5856            for (Node n : Main.ds.nodes) {
    5957                if (n.deleted || n.incomplete) continue;
    60                 if (n.coor.isWithin(b)) {
     58                if (n.getCoor().isWithin(b)) {
    6159                    fromDataSet.nodes.add(n);
    6260                    n.visit(backRefsV);
     
    6664                if (p instanceof Way) {
    6765                    for (Node n : ((Way) p).nodes) {
    68                         if (n.coor.isWithin(b))
     66                        if (n.getCoor().isWithin(b))
    6967                            backRefsV.data.add(n);
    7068                    }
Note: See TracChangeset for help on using the changeset viewer.