Ignore:
Timestamp:
2009-06-06T14:30:21+02:00 (16 years ago)
Author:
stoecker
Message:

little bit more refactoring of coordinate access - patch by jttt

Location:
trunk/src/org/openstreetmap/josm/command
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r1499 r1640  
    340340                if (osm instanceof Node && osm.id != 0) {
    341341                    Node n = (Node) osm;
    342                     if (!a.contains(n.coor)) {
     342                    if (!a.contains(n.getCoor())) {
    343343                        JPanel msg = new JPanel(new GridBagLayout());
    344344                        msg.add(new JLabel(
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r1636 r1640  
    7070        for (Node n : this.objects) {
    7171            OldState os = new OldState();
    72             os.eastNorth = n.eastNorth;
    73             os.latlon = n.coor;
     72            os.eastNorth = n.getEastNorth();
     73            os.latlon = n.getCoor();
    7474            os.modified = n.modified;
    7575            oldState.add(os);
     
    8787    public void moveAgain(double x, double y) {
    8888        for (Node n : objects) {
    89             n.setEastNorth(n.eastNorth.add(x, y));
     89            n.setEastNorth(n.getEastNorth().add(x, y));
    9090        }
    9191        this.x += x;
     
    9595    @Override public boolean executeCommand() {
    9696        for (Node n : objects) {
    97             n.setEastNorth(n.eastNorth.add(x, y));
     97            n.setEastNorth(n.getEastNorth().add(x, y));
    9898            n.modified = true;
    9999        }
  • trunk/src/org/openstreetmap/josm/command/RotateCommand.java

    r1636 r1640  
    6464        for (Node n : this.objects) {
    6565            MoveCommand.OldState os = new MoveCommand.OldState();
    66             os.eastNorth = n.eastNorth;
    67             os.latlon = n.coor;
     66            os.eastNorth = n.getEastNorth();
     67            os.latlon = n.getCoor();
    6868            os.modified = n.modified;
    6969            oldState.put(n, os);
Note: See TracChangeset for help on using the changeset viewer.