Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package render;
|
---|
3 |
|
---|
4 | import java.awt.Color;
|
---|
5 | import java.awt.geom.Point2D;
|
---|
6 |
|
---|
7 | import s57.S57map;
|
---|
8 | import s57.S57map.Feature;
|
---|
9 | import s57.S57map.Snode;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * @author Malcolm Herring
|
---|
13 | */
|
---|
14 | public interface ChartContext {
|
---|
15 | enum RuleSet { ALL, BASE, SEAMARK }
|
---|
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 | }
|
---|
31 |
|
---|
32 | Point2D getPoint(Snode coord);
|
---|
33 |
|
---|
34 | double mile(Feature feature);
|
---|
35 |
|
---|
36 | boolean clip();
|
---|
37 |
|
---|
38 | int grid();
|
---|
39 |
|
---|
40 | Chart chart();
|
---|
41 |
|
---|
42 | Color background(S57map map);
|
---|
43 |
|
---|
44 | RuleSet ruleset();
|
---|
45 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.