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 | |
---|
1 | package org.openstreetmap.josm.data.osm;
|
---|
2 |
|
---|
3 | import 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 | */
|
---|
11 | public 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.