Last change
on this file since 16225 was 11748, checked in by michael2402, 8 years ago |
Move label / icon placement code to new package. Unify the handling of text label positioning (path / center)
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.draw;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.gui.MapViewState.MapViewPoint;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * A map view point combined with a rotation angle.
|
---|
8 | *
|
---|
9 | * @author Michael Zangl
|
---|
10 | * @since 11748
|
---|
11 | */
|
---|
12 | public class MapViewPositionAndRotation {
|
---|
13 |
|
---|
14 | private final MapViewPoint point;
|
---|
15 |
|
---|
16 | private final double theta;
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Create a new {@link MapViewPositionAndRotation}
|
---|
20 | * @param point the point
|
---|
21 | * @param theta the rotation
|
---|
22 | */
|
---|
23 | public MapViewPositionAndRotation(MapViewPoint point, double theta) {
|
---|
24 | super();
|
---|
25 | this.point = point;
|
---|
26 | this.theta = theta;
|
---|
27 | }
|
---|
28 |
|
---|
29 | /**
|
---|
30 | * Gets the point.
|
---|
31 | * @return The point
|
---|
32 | */
|
---|
33 | public MapViewPoint getPoint() {
|
---|
34 | return point;
|
---|
35 | }
|
---|
36 |
|
---|
37 | /**
|
---|
38 | * Gets the rotation
|
---|
39 | * @return the rotation
|
---|
40 | */
|
---|
41 | public double getRotation() {
|
---|
42 | return theta;
|
---|
43 | }
|
---|
44 |
|
---|
45 | @Override
|
---|
46 | public String toString() {
|
---|
47 | return "MapViewPositionAndRotation [" + point + ", theta=" + theta + "]";
|
---|
48 | }
|
---|
49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.