Changeset 6977 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2014-04-15T00:43:24+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
r6380 r6977 23 23 private String textLatLon, textEastNorth; 24 24 25 /** 26 * Constructs a new {@code AddNodeAction}. 27 */ 25 28 public AddNodeAction() { 26 29 super(tr("Add Node..."), "addnode", tr("Add a node by entering latitude / longitude or easting / northing."), -
trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java
r6961 r6977 257 257 for(int i = 1; i < nodes.size()-1; i++) 258 258 if(nodes.get(i) == node) { 259 System.out.printf("Find 2 neighbors\n");260 259 neighbors.add(nodes.get(i-1)); 261 260 neighbors.add(nodes.get(i+1)); 262 //lines.add(new Line(nodes.get(i-1), nodes.get(i+1)));263 261 } 264 262 if(neighbors.size() == 0) -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r6942 r6977 97 97 * Class designed to create a couple between a node and its angle relative to the center of the circle. 98 98 */ 99 private class PolarNode { 99 private static class PolarNode { 100 100 double a; 101 101 Node node; … … 111 111 * Comparator used to order PolarNode relative to their angle. 112 112 */ 113 private class PolarNodeComparator implements Comparator<PolarNode> { 113 private static class PolarNodeComparator implements Comparator<PolarNode> { 114 114 115 115 @Override … … 186 186 double yc = 0.5 * (y1 + y2); 187 187 center = new EastNorth(xc, yc); 188 } else if (nodes.size() == 3){188 } else { 189 189 // triangle: three single nodes needed or a way with three nodes 190 190 center = Geometry.getCenter(nodes); -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r6976 r6977 54 54 private final LinkedList<Command> cmds = new LinkedList<Command>(); 55 55 private int cmdsCount = 0; 56 private final Li nkedList<Relation> addedRelations = new LinkedList<Relation>();56 private final List<Relation> addedRelations = new LinkedList<Relation>(); 57 57 58 58 /**
Note:
See TracChangeset
for help on using the changeset viewer.