source: josm/src/org/openstreetmap/josm/data/osm/LineSegment.java@ 23

Last change on this file since 23 was 23, checked in by imi, 19 years ago
  • added commands to support undo later
  • added Edit-Layer concept
  • painting of deleted objects
File size: 730 bytes
Line 
1package org.openstreetmap.josm.data.osm;
2
3import org.openstreetmap.josm.data.osm.visitor.Visitor;
4
5
6/**
7 * One track line segment consisting of a pair of nodes (start/end)
8 *
9 * @author imi
10 */
11public class LineSegment extends OsmPrimitive {
12
13 /**
14 * The starting node of the line segment
15 */
16 public Node start;
17
18 /**
19 * The ending node of the line segment
20 */
21 public Node end;
22
23 /**
24 * Create an line segment from the given starting and ending node
25 * @param start Starting node of the line segment.
26 * @param end Ending node of the line segment.
27 */
28 public LineSegment(Node start, Node end) {
29 this.start = start;
30 this.end = end;
31 }
32
33 @Override
34 public void visit(Visitor visitor) {
35 visitor.visit(this);
36 }
37}
Note: See TracBrowser for help on using the repository browser.