Changeset 21 in josm for src/org/openstreetmap/josm/data/osm


Ignore:
Timestamp:
2005-10-20T13:00:33+02:00 (20 years ago)
Author:
imi
Message:
  • started command implementation
  • cleaned up Layer
  • gpsbabel style for importing qpegps tracks
Location:
src/org/openstreetmap/josm/data/osm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/osm/LineSegment.java

    r18 r21  
    1818         * The starting node of the line segment
    1919         */
    20         Node start;
     20        public Node start;
    2121       
    2222        /**
    2323         * The ending node of the line segment
    2424         */
    25         Node end;
     25        public Node end;
    2626
    2727        /**
     
    6969         * The LineSegment is going to be destroyed. Unlink all back references.
    7070         */
    71         void destroy() {
     71        public void destroy() {
    7272                start.parentSegment.remove(this);
    7373                end.parentSegment.remove(this);
  • src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r10 r21  
    44import java.util.Map;
    55
     6import org.openstreetmap.josm.command.DataSet;
    67import org.openstreetmap.josm.data.osm.visitor.Visitor;
    78
  • src/org/openstreetmap/josm/data/osm/Track.java

    r9 r21  
    8080         * The track is going to be destroyed. Unlink all back references.
    8181         */
    82         void destroy() {
     82        public void destroy() {
    8383                for (LineSegment ls : segments) {
    8484                        ls.parent.remove(this);
  • src/org/openstreetmap/josm/data/osm/visitor/SelectionComponentVisitor.java

    r17 r21  
    1919 * @author imi
    2020 */
    21 public class SelectionComponentVisitor extends Visitor {
     21public class SelectionComponentVisitor implements Visitor {
    2222
    2323        /**
     
    3434         * A key icon and the name of the key.
    3535         */
    36         @Override
    3736        public void visit(Key k) {
    3837                name = k.name;
     
    4544         * "(x1,y1) -> (x2,y2)" is displayed with the nodes coordinates.
    4645         */
    47         @Override
    4846        public void visit(LineSegment ls) {
    4947                String name = getName(ls.keys);
     
    5957         * is displayed.
    6058         */
    61         @Override
    6259        public void visit(Node n) {
    6360                String name = getName(n.keys);
     
    7370         * is displayed with x beeing the number of nodes in the track.
    7471         */
    75         @Override
    7672        public void visit(Track t) {
    7773                String name = getName(t.keys);
  • src/org/openstreetmap/josm/data/osm/visitor/Visitor.java

    r8 r21  
    1212 * @author imi
    1313 */
    14 abstract public class Visitor {
    15         public void visit(Node n) {}
    16         public void visit(LineSegment ls) {}
    17         public void visit(Track t) {}
    18         public void visit(Key k) {}
     14public interface Visitor {
     15        void visit(Node n);
     16        void visit(LineSegment ls);
     17        void visit(Track t);
     18        void visit(Key k);
    1919}
Note: See TracChangeset for help on using the changeset viewer.