1 | /* Copyright 2012 Malcolm Herring
|
---|
2 | *
|
---|
3 | * This is free software: you can redistribute it and/or modify
|
---|
4 | * it under the terms of the GNU General Public License as published by
|
---|
5 | * the Free Software Foundation, version 3 of the License.
|
---|
6 | *
|
---|
7 | * For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
---|
8 | */
|
---|
9 |
|
---|
10 | package symbols;
|
---|
11 |
|
---|
12 | import java.awt.BasicStroke;
|
---|
13 | import java.awt.Color;
|
---|
14 | import java.awt.Rectangle;
|
---|
15 | import java.awt.geom.*;
|
---|
16 | import java.util.ArrayList;
|
---|
17 |
|
---|
18 | import symbols.Symbols.*;
|
---|
19 |
|
---|
20 | public class Areas {
|
---|
21 | public static final ArrayList<Instr> Cable = new ArrayList<Instr>();
|
---|
22 | static {
|
---|
23 | Cable.add(new Instr(Prim.STRK, new BasicStroke(8.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)));
|
---|
24 | Cable.add(new Instr(Prim.FILL, new Color(0xc480ff)));
|
---|
25 | Path2D.Double p = new Path2D.Double(); p.moveTo(0,0); p.curveTo(-13,-13,-13,-17,0,-30); p.curveTo(13,-43,13,-47,0,-60);
|
---|
26 | Cable.add(new Instr(Prim.PLIN, p));
|
---|
27 | }
|
---|
28 | public static final ArrayList<Instr> LaneArrow = new ArrayList<Instr>();
|
---|
29 | static {
|
---|
30 | LaneArrow.add(new Instr(Prim.STRK, new BasicStroke(10.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));
|
---|
31 | LaneArrow.add(new Instr(Prim.FILL, new Color(0x80c480ff, true)));
|
---|
32 | Path2D.Double p = new Path2D.Double(); p.moveTo(15,0); p.lineTo(15,-195); p.lineTo(40,-195);
|
---|
33 | p.lineTo(0,-240); p.lineTo(-40,-195); p.lineTo(-15,-195); p.lineTo(-15,0); p.closePath();
|
---|
34 | LaneArrow.add(new Instr(Prim.PLIN, p));
|
---|
35 | }
|
---|
36 | public static final ArrayList<Instr> LineAnchor = new ArrayList<Instr>();
|
---|
37 | static {
|
---|
38 | LineAnchor.add(new Instr(Prim.FILL, new Color(0xc480ff)));
|
---|
39 | LineAnchor.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 0.5, 0, 0, new Delta(Handle.TC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null)));
|
---|
40 | }
|
---|
41 | public static final ArrayList<Instr> LinePlane = new ArrayList<Instr>();
|
---|
42 | public static final ArrayList<Instr> MarineFarm = new ArrayList<Instr>();
|
---|
43 | public static final ArrayList<Instr> NoWake = new ArrayList<Instr>();
|
---|
44 | public static final ArrayList<Instr> Pipeline = new ArrayList<Instr>();
|
---|
45 | public static final ArrayList<Instr> Restricted = new ArrayList<Instr>();
|
---|
46 | public static final ArrayList<Instr> Rock = new ArrayList<Instr>();
|
---|
47 | public static final ArrayList<Instr> RockA = new ArrayList<Instr>();
|
---|
48 | public static final ArrayList<Instr> RockC = new ArrayList<Instr>();
|
---|
49 | public static final ArrayList<Instr> Sandwaves = new ArrayList<Instr>();
|
---|
50 | public static final ArrayList<Instr> Seaplane = new ArrayList<Instr>();
|
---|
51 | public static final ArrayList<Instr> WindFarm = new ArrayList<Instr>();
|
---|
52 | public static final ArrayList<Instr> WreckD = new ArrayList<Instr>();
|
---|
53 | public static final ArrayList<Instr> WreckND = new ArrayList<Instr>();
|
---|
54 | public static final ArrayList<Instr> WreckS = new ArrayList<Instr>();
|
---|
55 | }
|
---|