source: osm/applications/editors/josm/plugins/seachart/src/render/ChartContext.java

Last change on this file was 35835, checked in by malcolmh, 3 years ago

add seabed areas

File size: 802 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package render;
3
4import java.awt.Color;
5import java.awt.geom.Point2D;
6
7import s57.S57map;
8import s57.S57map.Feature;
9import s57.S57map.Snode;
10
11/**
12 * @author Malcolm Herring
13 */
14public 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.