Changeset 21 in josm for src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2005-10-20T13:00:33+02:00 (20 years ago)
- Location:
- src/org/openstreetmap/josm/data/osm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/LineSegment.java
r18 r21 18 18 * The starting node of the line segment 19 19 */ 20 Node start; 20 public Node start; 21 21 22 22 /** 23 23 * The ending node of the line segment 24 24 */ 25 Node end; 25 public Node end; 26 26 27 27 /** … … 69 69 * The LineSegment is going to be destroyed. Unlink all back references. 70 70 */ 71 void destroy() { 71 public void destroy() { 72 72 start.parentSegment.remove(this); 73 73 end.parentSegment.remove(this); -
src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r10 r21 4 4 import java.util.Map; 5 5 6 import org.openstreetmap.josm.command.DataSet; 6 7 import org.openstreetmap.josm.data.osm.visitor.Visitor; 7 8 -
src/org/openstreetmap/josm/data/osm/Track.java
r9 r21 80 80 * The track is going to be destroyed. Unlink all back references. 81 81 */ 82 void destroy() { 82 public void destroy() { 83 83 for (LineSegment ls : segments) { 84 84 ls.parent.remove(this); -
src/org/openstreetmap/josm/data/osm/visitor/SelectionComponentVisitor.java
r17 r21 19 19 * @author imi 20 20 */ 21 public class SelectionComponentVisitor extends Visitor {21 public class SelectionComponentVisitor implements Visitor { 22 22 23 23 /** … … 34 34 * A key icon and the name of the key. 35 35 */ 36 @Override37 36 public void visit(Key k) { 38 37 name = k.name; … … 45 44 * "(x1,y1) -> (x2,y2)" is displayed with the nodes coordinates. 46 45 */ 47 @Override48 46 public void visit(LineSegment ls) { 49 47 String name = getName(ls.keys); … … 59 57 * is displayed. 60 58 */ 61 @Override62 59 public void visit(Node n) { 63 60 String name = getName(n.keys); … … 73 70 * is displayed with x beeing the number of nodes in the track. 74 71 */ 75 @Override76 72 public void visit(Track t) { 77 73 String name = getName(t.keys); -
src/org/openstreetmap/josm/data/osm/visitor/Visitor.java
r8 r21 12 12 * @author imi 13 13 */ 14 abstractpublicclassVisitor {15 publicvoid visit(Node n){}16 publicvoid visit(LineSegment ls){}17 publicvoid visit(Track t){}18 publicvoid visit(Key k){}14 public interface Visitor { 15 void visit(Node n); 16 void visit(LineSegment ls); 17 void visit(Track t); 18 void visit(Key k); 19 19 }
Note:
See TracChangeset
for help on using the changeset viewer.