source:
osm/applications/editors/josm/plugins/seachart/src/render/ChartContext.java
Last change on this file was 35835, checked in by , 3 years ago | |
---|---|
File size: 802 bytes |
Rev | Line | |
---|---|---|
[32907] | 1 | // License: GPL. For details, see LICENSE file. |
[30894] | 2 | package render; |
3 | ||
[31343] | 4 | import java.awt.Color; |
[30894] | 5 | import java.awt.geom.Point2D; |
6 | ||
[32082] | 7 | import s57.S57map; |
[32394] | 8 | import s57.S57map.Feature; |
9 | import s57.S57map.Snode; | |
[30894] | 10 | |
[32907] | 11 | /** |
12 | * @author Malcolm Herring | |
13 | */ | |
[30894] | 14 | public interface ChartContext { |
[32394] | 15 | enum RuleSet { ALL, BASE, SEAMARK } |
[35835] | 16 | class Chart { |
17 | public int zoom; | |
18 | public double scale; | |
19 | public int grid; | |
20 | public boolean rose; | |
21 | public double roseLat; | |
22 | public double roseLon; | |
23 | public Chart() { | |
24 | zoom = 15; | |
25 | scale = 1.0; | |
26 | grid = 0; | |
27 | rose = false; | |
28 | roseLat = roseLon = 0; | |
29 | } | |
30 | } | |
[31532] | 31 | |
[32394] | 32 | Point2D getPoint(Snode coord); |
33 | ||
34 | double mile(Feature feature); | |
35 | ||
36 | boolean clip(); | |
[35391] | 37 | |
38 | int grid(); | |
[35835] | 39 | |
40 | Chart chart(); | |
[32394] | 41 | |
42 | Color background(S57map map); | |
43 | ||
44 | RuleSet ruleset(); | |
[30894] | 45 | } |
Note:
See TracBrowser
for help on using the repository browser.