1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package symbols;
|
---|
3 |
|
---|
4 | import java.awt.BasicStroke;
|
---|
5 | import java.awt.Color;
|
---|
6 | import java.awt.geom.AffineTransform;
|
---|
7 | import java.awt.geom.Ellipse2D;
|
---|
8 | import java.awt.geom.GeneralPath;
|
---|
9 | import java.awt.geom.Line2D;
|
---|
10 | import java.awt.geom.Path2D;
|
---|
11 | import java.awt.geom.Rectangle2D;
|
---|
12 | import java.util.EnumMap;
|
---|
13 |
|
---|
14 | import s57.S57val.BoySHP;
|
---|
15 | import s57.S57val.TopSHP;
|
---|
16 | import symbols.Symbols.Delta;
|
---|
17 | import symbols.Symbols.Form;
|
---|
18 | import symbols.Symbols.Handle;
|
---|
19 | import symbols.Symbols.Instr;
|
---|
20 | import symbols.Symbols.Symbol;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * @author Malcolm Herring
|
---|
24 | */
|
---|
25 | public final class Topmarks {
|
---|
26 |
|
---|
27 | private Topmarks() {
|
---|
28 | // Hide default constructor for utilities classes
|
---|
29 | }
|
---|
30 |
|
---|
31 | // CHECKSTYLE.OFF: LineLength
|
---|
32 | public static final Symbol RadarReflector = new Symbol();
|
---|
33 | static {
|
---|
34 | RadarReflector.add(new Instr(Form.BBOX, new Rectangle2D.Double(-50, -40, 100, 40)));
|
---|
35 | RadarReflector.add(new Instr(Form.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
36 | RadarReflector.add(new Instr(Form.FILL, Color.black));
|
---|
37 | Path2D.Double p = new Path2D.Double(); p.moveTo(-30, -3); p.quadTo(0, -40, 30, -3); p.moveTo(0, -20); p.lineTo(0, -37);
|
---|
38 | p.moveTo(-30, -3); p.lineTo(-43, -14); p.moveTo(30, -3); p.lineTo(44, -14); p.moveTo(-15, -14); p.lineTo(-25, -30); p.moveTo(15, -14); p.lineTo(25, -30);
|
---|
39 | RadarReflector.add(new Instr(Form.PLIN, p));
|
---|
40 | }
|
---|
41 |
|
---|
42 | public static final Symbol TopArrow = new Symbol();
|
---|
43 | static {
|
---|
44 | TopArrow.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
45 | TopArrow.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
46 | TopArrow.add(new Instr(Form.FILL, Color.black));
|
---|
47 | Path2D.Double p = new Path2D.Double(); p.moveTo(0, 0); p.lineTo(0, -30); p.lineTo(-25, -30); p.lineTo(-30, -20); p.lineTo(-25, -10); p.lineTo(0, -10);
|
---|
48 | TopArrow.add(new Instr(Form.PLIN, p));
|
---|
49 | }
|
---|
50 |
|
---|
51 | public static final Symbol TopBesom = new Symbol();
|
---|
52 | static {
|
---|
53 | TopBesom.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
54 | TopBesom.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
55 | TopBesom.add(new Instr(Form.FILL, Color.black));
|
---|
56 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, 0.0); p.lineTo(0.0, -30.0); p.lineTo(15.0, 0.0); p.moveTo(0.0, 0.0); p.lineTo(0.0, -28.0);
|
---|
57 | TopBesom.add(new Instr(Form.PLIN, p));
|
---|
58 | }
|
---|
59 |
|
---|
60 | public static final Symbol TopIBesom = new Symbol();
|
---|
61 | static {
|
---|
62 | TopIBesom.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
63 | TopIBesom.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
64 | TopIBesom.add(new Instr(Form.FILL, Color.black));
|
---|
65 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -30.0); p.lineTo(0.0, 0.0); p.lineTo(15.0, -30.0);
|
---|
66 | TopIBesom.add(new Instr(Form.PLIN, p));
|
---|
67 | }
|
---|
68 |
|
---|
69 | public static final Symbol TopBoard = new Symbol();
|
---|
70 | static {
|
---|
71 | TopBoard.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -60, 60, 60)));
|
---|
72 | Symbol colours = new Symbol();
|
---|
73 | Path2D.Double p = new Path2D.Double(); p.moveTo(-29, -1); p.lineTo(-29, -59); p.lineTo(29, -59); p.lineTo(29, -1); p.closePath();
|
---|
74 | colours.add(new Instr(Form.P1, p));
|
---|
75 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
76 | p.moveTo(-29, -1); p.lineTo(-29, -59); p.lineTo(29, -59); p.lineTo(29, -1); p.closePath();
|
---|
77 | p.moveTo(-19, -10); p.lineTo(-19, -49); p.lineTo(19, -49); p.lineTo(19, -10); p.closePath();
|
---|
78 | colours.add(new Instr(Form.B1, p));
|
---|
79 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
80 | p.moveTo(-29, -1); p.lineTo(-29, -30); p.lineTo(29, -30); p.lineTo(29, -59); p.lineTo(0, -59); p.lineTo(0, -1); p.closePath();
|
---|
81 | colours.add(new Instr(Form.S2, p));
|
---|
82 | p = new Path2D.Double(); p.moveTo(-29, -1); p.lineTo(-29, -30); p.lineTo(0, -30); p.lineTo(0, -1); p.closePath();
|
---|
83 | colours.add(new Instr(Form.S3, p));
|
---|
84 | p = new Path2D.Double(); p.moveTo(0, -1); p.lineTo(0, -30); p.lineTo(29, -30); p.lineTo(29, -1); p.closePath();
|
---|
85 | colours.add(new Instr(Form.S4, p));
|
---|
86 | TopBoard.add(new Instr(Form.COLR, colours));
|
---|
87 | TopBoard.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
88 | TopBoard.add(new Instr(Form.FILL, Color.black));
|
---|
89 | p = new Path2D.Double(); p.moveTo(-29, -1); p.lineTo(-29, -59); p.lineTo(29, -59); p.lineTo(29.0, -1); p.closePath();
|
---|
90 | TopBoard.add(new Instr(Form.PLIN, p));
|
---|
91 | }
|
---|
92 |
|
---|
93 | public static final Symbol TopCan = new Symbol();
|
---|
94 | static {
|
---|
95 | TopCan.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
96 | Symbol colours = new Symbol();
|
---|
97 | Path2D.Double p = new Path2D.Double(); p.moveTo(-12.0, -15.0); p.lineTo(-12.0, -48.0); p.lineTo(12.0, -48.0); p.lineTo(12.0, -15.0); p.closePath();
|
---|
98 | colours.add(new Instr(Form.P1, p));
|
---|
99 | TopCan.add(new Instr(Form.COLR, colours));
|
---|
100 | TopCan.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
101 | TopCan.add(new Instr(Form.FILL, Color.black));
|
---|
102 | TopCan.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
103 | p = new Path2D.Double(); p.moveTo(-12.0, -15.0); p.lineTo(-12.0, -48.0); p.lineTo(12.0, -48.0); p.lineTo(12.0, -15.0); p.closePath();
|
---|
104 | TopCan.add(new Instr(Form.PLIN, p));
|
---|
105 | }
|
---|
106 |
|
---|
107 | public static final Symbol TopCanSphere = new Symbol();
|
---|
108 | public static final Symbol TopCircle = new Symbol();
|
---|
109 | public static final Symbol TopCircleTriangle = new Symbol();
|
---|
110 | public static final Symbol TopCone = new Symbol();
|
---|
111 | static {
|
---|
112 | TopCone.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
113 | Symbol colours = new Symbol();
|
---|
114 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -15.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
115 | colours.add(new Instr(Form.P1, p));
|
---|
116 | TopCone.add(new Instr(Form.COLR, colours));
|
---|
117 | TopCone.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
118 | TopCone.add(new Instr(Form.FILL, Color.black));
|
---|
119 | TopCone.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
120 | p = new Path2D.Double(); p.moveTo(-15.0, -15.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
121 | TopCone.add(new Instr(Form.PLIN, p));
|
---|
122 | }
|
---|
123 |
|
---|
124 | public static final Symbol TopConeSphere = new Symbol();
|
---|
125 | static {
|
---|
126 | TopConeSphere.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
127 | Symbol colours = new Symbol();
|
---|
128 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -47.0); p.lineTo(0.0, -77.0); p.lineTo(15.0, -47.0); p.closePath();
|
---|
129 | p.moveTo(-14.0, -28.0); p.curveTo(-14.0, -46.7, 14.0, -46.7, 14.0, -28.0); p.curveTo(14.0, -9.3, -14.0, -9.3, -14.0, -28.0); p.closePath();
|
---|
130 | colours.add(new Instr(Form.P1, p));
|
---|
131 | TopConeSphere.add(new Instr(Form.COLR, colours));
|
---|
132 | TopConeSphere.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
133 | TopConeSphere.add(new Instr(Form.FILL, Color.black));
|
---|
134 | TopConeSphere.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
135 | TopConeSphere.add(new Instr(Form.LINE, new Line2D.Double(0, -42, 0, -47)));
|
---|
136 | p = new Path2D.Double(); p.moveTo(-15.0, -47.0); p.lineTo(0.0, -77.0); p.lineTo(15.0, -47.0); p.closePath();
|
---|
137 | TopConeSphere.add(new Instr(Form.ELPS, new Ellipse2D.Double(-14, -42, 28, 28)));
|
---|
138 | TopConeSphere.add(new Instr(Form.PLIN, p));
|
---|
139 | }
|
---|
140 |
|
---|
141 | public static final Symbol TopCross = new Symbol();
|
---|
142 | static {
|
---|
143 | TopCross.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
144 | Symbol colours = new Symbol();
|
---|
145 | Path2D.Double p = new Path2D.Double(); p.moveTo(-5.0, -15.0); p.lineTo(-5.0, -32.5); p.lineTo(-22.5, -32.5); p.lineTo(-22.5, -42.5); p.lineTo(-5.0, -42.5);
|
---|
146 | p.lineTo(-5.0, -60.0); p.lineTo(5.0, -60.0); p.lineTo(5.0, -42.5); p.lineTo(22.5, -42.5); p.lineTo(22.5, -32.5); p.lineTo(5.0, -32.5); p.lineTo(5.0, -15.0); p.closePath();
|
---|
147 | colours.add(new Instr(Form.P1, p));
|
---|
148 | TopCross.add(new Instr(Form.COLR, colours));
|
---|
149 | TopCross.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
150 | TopCross.add(new Instr(Form.FILL, Color.black));
|
---|
151 | TopCross.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
152 | TopCross.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
153 | p = new Path2D.Double(); p.moveTo(-5.0, -15.0); p.lineTo(-5.0, -32.5); p.lineTo(-22.5, -32.5); p.lineTo(-22.5, -42.5); p.lineTo(-5.0, -42.5); p.lineTo(-5.0, -60.0);
|
---|
154 | p.lineTo(5.0, -60.0); p.lineTo(5.0, -42.5); p.lineTo(22.5, -42.5); p.lineTo(22.5, -32.5); p.lineTo(5.0, -32.5); p.lineTo(5.0, -15.0); p.closePath();
|
---|
155 | TopCross.add(new Instr(Form.PLIN, p));
|
---|
156 | }
|
---|
157 |
|
---|
158 | public static final Symbol TopCrosses = new Symbol();
|
---|
159 |
|
---|
160 | public static final Symbol TopCrossCircle = new Symbol();
|
---|
161 |
|
---|
162 | public static final Symbol TopCube = new Symbol();
|
---|
163 | static {
|
---|
164 | TopCube.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
165 | Symbol colours = new Symbol();
|
---|
166 | Path2D.Double p = new Path2D.Double(); p.moveTo(0, -48); p.lineTo(-15, -37); p.lineTo(-15, -20); p.lineTo(0, -9); p.lineTo(15, -20); p.lineTo(15, -37); p.closePath();
|
---|
167 | colours.add(new Instr(Form.P1, p));
|
---|
168 | TopCube.add(new Instr(Form.COLR, colours));
|
---|
169 | TopCube.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
170 | TopCube.add(new Instr(Form.FILL, Color.black));
|
---|
171 | TopCube.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
172 | p = new Path2D.Double(); p.moveTo(0, -48); p.lineTo(-14, -37); p.lineTo(0, -26); p.lineTo(14, -37); p.closePath(); p.moveTo(0, -26); p.lineTo(0, 0);
|
---|
173 | p.moveTo(-15, -37); p.lineTo(-15, -20); p.lineTo(0, -9); p.lineTo(15, -20); p.lineTo(15, -37);
|
---|
174 | TopCube.add(new Instr(Form.PLIN, p));
|
---|
175 | }
|
---|
176 |
|
---|
177 | public static final Symbol TopEast = new Symbol();
|
---|
178 | static {
|
---|
179 | TopEast.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
180 | Symbol colours = new Symbol();
|
---|
181 | Path2D.Double p = new Path2D.Double(); p.moveTo(0.0, -80.0); p.lineTo(-15.0, -47.0); p.lineTo(15.0, -47.0); p.closePath();
|
---|
182 | colours.add(new Instr(Form.P1, p));
|
---|
183 | p = new Path2D.Double(); p.moveTo(0.0, -10.0); p.lineTo(-15.0, -43.0); p.lineTo(15.0, -43.0); p.closePath();
|
---|
184 | colours.add(new Instr(Form.P2, p));
|
---|
185 | TopEast.add(new Instr(Form.COLR, colours));
|
---|
186 | TopEast.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
187 | TopEast.add(new Instr(Form.FILL, Color.black));
|
---|
188 | TopEast.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -10)));
|
---|
189 | TopEast.add(new Instr(Form.LINE, new Line2D.Double(0, -43, 0, -47)));
|
---|
190 | TopEast.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
191 | p = new Path2D.Double(); p.moveTo(0.0, -10.0); p.lineTo(-15.0, -43.0); p.lineTo(15.0, -43.0); p.closePath();
|
---|
192 | p.moveTo(0.0, -80.0); p.lineTo(-15.0, -47.0); p.lineTo(15.0, -47.0); p.closePath();
|
---|
193 | TopEast.add(new Instr(Form.PLIN, p));
|
---|
194 | }
|
---|
195 |
|
---|
196 | public static final Symbol TopFlag = new Symbol();
|
---|
197 | static {
|
---|
198 | TopFlag.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
199 | Symbol colours = new Symbol();
|
---|
200 | Path2D.Double p = new Path2D.Double(); p.moveTo(0, -40); p.lineTo(0, -10); p.lineTo(39, -10); p.lineTo(39, -40); p.closePath();
|
---|
201 | colours.add(new Instr(Form.P1, p));
|
---|
202 | p = new Path2D.Double(); p.moveTo(0, -25); p.lineTo(0, -10); p.lineTo(40, -10); p.lineTo(39, -25); p.closePath();
|
---|
203 | colours.add(new Instr(Form.H2, p));
|
---|
204 | p = new Path2D.Double(); p.moveTo(0, -30); p.lineTo(0, -20); p.lineTo(40, -20); p.lineTo(39, -30); p.closePath();
|
---|
205 | colours.add(new Instr(Form.H3, p));
|
---|
206 | p = new Path2D.Double(); p.moveTo(19.5, -40); p.lineTo(19.5, -10); p.lineTo(39, -10); p.lineTo(39, -40); p.closePath();
|
---|
207 | colours.add(new Instr(Form.V2, p));
|
---|
208 | p = new Path2D.Double(); p.moveTo(13, -40); p.lineTo(13, -10); p.lineTo(26, -10); p.lineTo(26, -40); p.closePath();
|
---|
209 | colours.add(new Instr(Form.V3, p));
|
---|
210 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
211 | p.moveTo(0, -40); p.lineTo(0, -10); p.lineTo(39, -10); p.lineTo(39, -40); p.closePath();
|
---|
212 | p.moveTo(8, -35); p.lineTo(8, -15); p.lineTo(33, -15); p.lineTo(33, -35); p.closePath();
|
---|
213 | colours.add(new Instr(Form.B1, p));
|
---|
214 | p = new Path2D.Double(); p.moveTo(0, -25); p.lineTo(0, -10); p.lineTo(20, -10); p.lineTo(20, -40); p.lineTo(39, -40); p.lineTo(39, -25); p.closePath();
|
---|
215 | colours.add(new Instr(Form.S2, p));
|
---|
216 | p = new Path2D.Double(); p.moveTo(0, -25); p.lineTo(0, -10); p.lineTo(20, -10); p.lineTo(20, -25); p.closePath();
|
---|
217 | colours.add(new Instr(Form.S3, p));
|
---|
218 | p = new Path2D.Double(); p.moveTo(20, -25); p.lineTo(20, -10); p.lineTo(39, -10); p.lineTo(39, -25); p.closePath();
|
---|
219 | colours.add(new Instr(Form.S4, p));
|
---|
220 | TopFlag.add(new Instr(Form.COLR, colours));
|
---|
221 | TopFlag.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
222 | TopFlag.add(new Instr(Form.FILL, Color.black));
|
---|
223 | TopFlag.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -45)));
|
---|
224 | TopFlag.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
225 | TopFlag.add(new Instr(Form.RECT, new Rectangle2D.Double(0, -40, 39, 30)));
|
---|
226 | }
|
---|
227 |
|
---|
228 | public static final Symbol TopIcone = new Symbol();
|
---|
229 | static {
|
---|
230 | TopIcone.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
231 | Symbol colours = new Symbol();
|
---|
232 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -45.0); p.lineTo(0.0, -15.0); p.lineTo(15.0, -45.0); p.closePath();
|
---|
233 | colours.add(new Instr(Form.P1, p));
|
---|
234 | TopIcone.add(new Instr(Form.COLR, colours));
|
---|
235 | TopIcone.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
236 | TopIcone.add(new Instr(Form.FILL, Color.black));
|
---|
237 | TopIcone.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
238 | p = new Path2D.Double(); p.moveTo(-15.0, -45.0); p.lineTo(0.0, -15.0); p.lineTo(15.0, -45.0); p.closePath();
|
---|
239 | TopIcone.add(new Instr(Form.PLIN, p));
|
---|
240 | }
|
---|
241 |
|
---|
242 | public static final Symbol TopIsol = new Symbol();
|
---|
243 | static {
|
---|
244 | TopIsol.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
245 | Symbol colours = new Symbol();
|
---|
246 | Path2D.Double p = new Path2D.Double(); p.moveTo(-13.0, -55.0); p.curveTo(-13.0, -72.3, 13.0, -72.3, 13.0, -55.0); p.curveTo(13.0, -37.7, -13.0, -37.7, -13.0, -55.0); p.closePath();
|
---|
247 | colours.add(new Instr(Form.P1, p));
|
---|
248 | p = new Path2D.Double(); p.moveTo(-13.0, -28.0); p.curveTo(-13.0, -45.3, 13.0, -45.3, 13.0, -28.0); p.curveTo(13.0, -10.7, -13.0, -10.7, -13.0, -28.0); p.closePath();
|
---|
249 | colours.add(new Instr(Form.P2, p));
|
---|
250 | TopIsol.add(new Instr(Form.COLR, colours));
|
---|
251 | TopIsol.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
252 | TopIsol.add(new Instr(Form.FILL, Color.black));
|
---|
253 | TopIsol.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
254 | TopIsol.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
255 | TopIsol.add(new Instr(Form.ELPS, new Ellipse2D.Double(-13, -41, 26, 26)));
|
---|
256 | TopIsol.add(new Instr(Form.ELPS, new Ellipse2D.Double(-13, -68, 26, 26)));
|
---|
257 | }
|
---|
258 |
|
---|
259 | public static final Symbol TopMooring = new Symbol();
|
---|
260 | static {
|
---|
261 | TopMooring.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
262 | TopMooring.add(new Instr(Form.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
263 | TopMooring.add(new Instr(Form.FILL, Color.black));
|
---|
264 | TopMooring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-1.5, -6, 3, 3)));
|
---|
265 | TopMooring.add(new Instr(Form.ELPS, new Ellipse2D.Double(-8.5, -25, 17, 17)));
|
---|
266 | }
|
---|
267 |
|
---|
268 | public static final Symbol TopNorth = new Symbol();
|
---|
269 | static {
|
---|
270 | TopNorth.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
271 | Symbol colours = new Symbol();
|
---|
272 | Path2D.Double p = new Path2D.Double(); p.moveTo(0.0, -78.0); p.lineTo(-15.0, -45.0); p.lineTo(15.0, -45.0); p.closePath();
|
---|
273 | colours.add(new Instr(Form.P1, p));
|
---|
274 | p = new Path2D.Double(); p.moveTo(-15.0, -10.0); p.lineTo(0.0, -43.0); p.lineTo(15.0, -10.0); p.closePath();
|
---|
275 | colours.add(new Instr(Form.P2, p));
|
---|
276 | TopNorth.add(new Instr(Form.COLR, colours));
|
---|
277 | TopNorth.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
278 | TopNorth.add(new Instr(Form.FILL, Color.black));
|
---|
279 | TopNorth.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -10)));
|
---|
280 | TopNorth.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
281 | p = new Path2D.Double(); p.moveTo(-15.0, -10.0); p.lineTo(0.0, -43.0); p.lineTo(15.0, -10.0); p.closePath();
|
---|
282 | p.moveTo(0.0, -78.0); p.lineTo(-15.0, -45.0); p.lineTo(15.0, -45.0); p.closePath();
|
---|
283 | TopNorth.add(new Instr(Form.PLIN, p));
|
---|
284 | }
|
---|
285 |
|
---|
286 | public static final Symbol TopSouth = new Symbol();
|
---|
287 | static {
|
---|
288 | TopSouth.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
289 | Symbol colours = new Symbol();
|
---|
290 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -78.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -78.0); p.closePath();
|
---|
291 | colours.add(new Instr(Form.P1, p));
|
---|
292 | p = new Path2D.Double(); p.moveTo(0.0, -10.0); p.lineTo(-15.0, -43.0); p.lineTo(15.0, -43.0); p.closePath();
|
---|
293 | colours.add(new Instr(Form.P2, p));
|
---|
294 | TopSouth.add(new Instr(Form.COLR, colours));
|
---|
295 | TopSouth.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
296 | TopSouth.add(new Instr(Form.FILL, Color.black));
|
---|
297 | TopSouth.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -10)));
|
---|
298 | TopSouth.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
299 | p = new Path2D.Double(); p.moveTo(0.0, -10.0); p.lineTo(-15.0, -43.0); p.lineTo(15.0, -43.0); p.closePath();
|
---|
300 | p.moveTo(-15.0, -78.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -78.0); p.closePath();
|
---|
301 | TopSouth.add(new Instr(Form.PLIN, p));
|
---|
302 | }
|
---|
303 |
|
---|
304 | public static final Symbol TopSphere = new Symbol();
|
---|
305 | static {
|
---|
306 | TopSphere.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
307 | Symbol colours = new Symbol();
|
---|
308 | Path2D.Double p = new Path2D.Double(); p.moveTo(-14.0, -28.0); p.curveTo(-14.0, -46.7, 14.0, -46.7, 14.0, -28.0); p.curveTo(14.0, -9.3, -14.0, -9.3, -14.0, -28.0); p.closePath();
|
---|
309 | colours.add(new Instr(Form.P1, p));
|
---|
310 | TopSphere.add(new Instr(Form.COLR, colours));
|
---|
311 | TopSphere.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
312 | TopSphere.add(new Instr(Form.FILL, Color.black));
|
---|
313 | TopSphere.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -15)));
|
---|
314 | TopSphere.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
315 | TopSphere.add(new Instr(Form.ELPS, new Ellipse2D.Double(-14, -42, 28, 28)));
|
---|
316 | }
|
---|
317 |
|
---|
318 | public static final Symbol TopSquare = new Symbol();
|
---|
319 | static {
|
---|
320 | TopSquare.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
321 | Symbol colours = new Symbol();
|
---|
322 | Path2D.Double p = new Path2D.Double(); p.moveTo(-13.0, -1.0); p.lineTo(-13.0, -27.0); p.lineTo(13.0, -27.0); p.lineTo(13.0, -1.0); p.closePath();
|
---|
323 | colours.add(new Instr(Form.P1, p));
|
---|
324 | p = new Path2D.Double(); p.moveTo(-13.0, -15.0); p.lineTo(-13.0, -1.0); p.lineTo(13.0, -1.0); p.lineTo(13.0, -15.0); p.closePath();
|
---|
325 | colours.add(new Instr(Form.H2, p));
|
---|
326 | p = new Path2D.Double(); p.moveTo(-13.0, -19.3); p.lineTo(-13.0, -10.7); p.lineTo(13.0, -10.7); p.lineTo(13.0, -19.3); p.closePath();
|
---|
327 | colours.add(new Instr(Form.H3, p));
|
---|
328 | p = new Path2D.Double(); p.moveTo(0.0, -1.0); p.lineTo(0.0, -27.0); p.lineTo(13.0, -27.0); p.lineTo(13.0, -1.0); p.closePath();
|
---|
329 | colours.add(new Instr(Form.V2, p));
|
---|
330 | p = new Path2D.Double(); p.moveTo(-4.3, -1.0); p.lineTo(-4.3, -27.0); p.lineTo(4.3, -27.0); p.lineTo(4.3, -1.0); p.closePath();
|
---|
331 | colours.add(new Instr(Form.V3, p));
|
---|
332 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
333 | p.moveTo(-13.0, -1.0); p.lineTo(-13.0, -27.0); p.lineTo(13.0, -27.0); p.lineTo(13.0, -1.0); p.closePath();
|
---|
334 | p.moveTo(-8.0, -6.0); p.lineTo(-8.0, -22.0); p.lineTo(8.0, -22.0); p.lineTo(8.0, -6.0); p.closePath();
|
---|
335 | colours.add(new Instr(Form.B1, p));
|
---|
336 | TopSquare.add(new Instr(Form.COLR, colours));
|
---|
337 | TopSquare.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
338 | TopSquare.add(new Instr(Form.FILL, Color.black));
|
---|
339 | p = new Path2D.Double(); p.moveTo(-10.0, -1.0); p.lineTo(-10.0, -21.0); p.lineTo(12.0, -21.0); p.lineTo(10.0, -1.0); p.closePath();
|
---|
340 | TopSquare.add(new Instr(Form.PLIN, p));
|
---|
341 | }
|
---|
342 |
|
---|
343 | public static final Symbol TopRectangleH = new Symbol();
|
---|
344 | static {
|
---|
345 | TopRectangleH.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
346 | Symbol colours = new Symbol();
|
---|
347 | Path2D.Double p = new Path2D.Double(); p.moveTo(-14.0, -1.0); p.lineTo(-14.0, -23.0); p.lineTo(14.0, -23.0); p.lineTo(14.0, -1.0); p.closePath();
|
---|
348 | colours.add(new Instr(Form.P1, p));
|
---|
349 | p = new Path2D.Double(); p.moveTo(-14.0, -1.0); p.lineTo(-14.0, -12.0); p.lineTo(14.0, -12.0); p.lineTo(14.0, -1.0); p.closePath();
|
---|
350 | colours.add(new Instr(Form.H2, p));
|
---|
351 | p = new Path2D.Double(); p.moveTo(-14.0, -16.0); p.lineTo(-14.0, -8.0); p.lineTo(14.0, -8.0); p.lineTo(14.0, -16.0); p.closePath();
|
---|
352 | colours.add(new Instr(Form.H3, p));
|
---|
353 | p = new Path2D.Double(); p.moveTo(0.0, -1.0); p.lineTo(0.0, -23.0); p.lineTo(14.0, -23.0); p.lineTo(14.0, -1.0); p.closePath();
|
---|
354 | colours.add(new Instr(Form.V2, p));
|
---|
355 | p = new Path2D.Double(); p.moveTo(-5.0, -1.0); p.lineTo(-5.0, -23.0); p.lineTo(5.0, -23.0); p.lineTo(5.0, -1.0); p.closePath();
|
---|
356 | colours.add(new Instr(Form.V3, p));
|
---|
357 | TopRectangleH.add(new Instr(Form.COLR, colours));
|
---|
358 | TopRectangleH.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
359 | TopRectangleH.add(new Instr(Form.FILL, Color.black));
|
---|
360 | p = new Path2D.Double(); p.moveTo(-14.0, -1.0); p.lineTo(-14.0, -23.0); p.lineTo(14.0, -23.0); p.lineTo(14.0, -1.0); p.closePath();
|
---|
361 | TopRectangleH.add(new Instr(Form.PLIN, p));
|
---|
362 | }
|
---|
363 |
|
---|
364 | public static final Symbol TopRectangleV = new Symbol();
|
---|
365 | static {
|
---|
366 | TopRectangleV.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
367 | Symbol colours = new Symbol();
|
---|
368 | Path2D.Double p = new Path2D.Double(); p.moveTo(-11.0, -1.0); p.lineTo(-11.0, -29.0); p.lineTo(11.0, -29.0); p.lineTo(11.0, -1.0); p.closePath();
|
---|
369 | colours.add(new Instr(Form.P1, p));
|
---|
370 | p = new Path2D.Double(); p.moveTo(-11.0, -1.0); p.lineTo(-11.0, -15.0); p.lineTo(11.0, -15.0); p.lineTo(11.0, -1.0); p.closePath();
|
---|
371 | colours.add(new Instr(Form.H2, p));
|
---|
372 | p = new Path2D.Double(); p.moveTo(-11.0, -10.0); p.lineTo(-11.0, -20.0); p.lineTo(11.0, -20.0); p.lineTo(11.0, -10.0); p.closePath();
|
---|
373 | colours.add(new Instr(Form.H3, p));
|
---|
374 | p = new Path2D.Double(); p.moveTo(0.0, -1.0); p.lineTo(0.0, -29.0); p.lineTo(11.0, -29.0); p.lineTo(11.0, -1.0); p.closePath();
|
---|
375 | colours.add(new Instr(Form.V2, p));
|
---|
376 | p = new Path2D.Double(); p.moveTo(-4.0, -1.0); p.lineTo(-4.0, -29.0); p.lineTo(4.0, -29.0); p.lineTo(4.0, -1.0); p.closePath();
|
---|
377 | colours.add(new Instr(Form.V3, p));
|
---|
378 | TopRectangleV.add(new Instr(Form.COLR, colours));
|
---|
379 | TopRectangleV.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
380 | TopRectangleV.add(new Instr(Form.FILL, Color.black));
|
---|
381 | p = new Path2D.Double(); p.moveTo(-11.0, -1.0); p.lineTo(-11.0, -29.0); p.lineTo(11.0, -29.0); p.lineTo(11.0, -1.0); p.closePath();
|
---|
382 | TopRectangleV.add(new Instr(Form.PLIN, p));
|
---|
383 | }
|
---|
384 |
|
---|
385 | public static final Symbol TopRhombus = new Symbol();
|
---|
386 | static {
|
---|
387 | TopRhombus.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
388 | Symbol colours = new Symbol();
|
---|
389 | Path2D.Double p = new Path2D.Double(); p.moveTo(0.0, -29.0); p.lineTo(-15.0, -15.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
390 | colours.add(new Instr(Form.P1, p));
|
---|
391 | p = new Path2D.Double(); p.moveTo(-15.0, -15.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
392 | colours.add(new Instr(Form.H2, p));
|
---|
393 | p = new Path2D.Double(); p.moveTo(-10.0, -19.7); p.lineTo(-15.0, -15.0); p.lineTo(-10.0, -10.3); p.lineTo(10.0, -10.3); p.lineTo(15.0, -15.0); p.lineTo(10.0, -19.7); p.closePath();
|
---|
394 | colours.add(new Instr(Form.H3, p));
|
---|
395 | p = new Path2D.Double(); p.moveTo(0.0, -29.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
396 | colours.add(new Instr(Form.V2, p));
|
---|
397 | p = new Path2D.Double(); p.moveTo(0.0, -29.0); p.lineTo(-5.0, -24.3); p.lineTo(-5.0, -5.7); p.lineTo(0.0, -1.0); p.lineTo(5.0, -5.7); p.lineTo(5.0, -24.3); p.closePath();
|
---|
398 | colours.add(new Instr(Form.V3, p));
|
---|
399 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
400 | p.moveTo(0.0, -29.0); p.lineTo(-15.0, -15.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
401 | p.moveTo(0.0, -23.0); p.lineTo(-9.0, -15.0); p.lineTo(0.0, -7.0); p.lineTo(9.0, -15.0); p.closePath();
|
---|
402 | colours.add(new Instr(Form.B1, p));
|
---|
403 | TopRhombus.add(new Instr(Form.COLR, colours));
|
---|
404 | TopRhombus.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
405 | TopRhombus.add(new Instr(Form.FILL, Color.black));
|
---|
406 | p = new Path2D.Double(); p.moveTo(0.0, -29.0); p.lineTo(-15.0, -15.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -15.0); p.closePath();
|
---|
407 | TopRhombus.add(new Instr(Form.PLIN, p));
|
---|
408 | }
|
---|
409 |
|
---|
410 | public static final Symbol TopRhombusCircle = new Symbol();
|
---|
411 |
|
---|
412 | public static final Symbol TopSphereRhombus = new Symbol();
|
---|
413 | static {
|
---|
414 | TopSphereRhombus.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
415 | TopSphereRhombus.add(new Instr(Form.SYMB, new Symbols.SubSymbol(TopRhombus, 1.0, 0, 0, null, null)));
|
---|
416 | Symbol colours = new Symbol();
|
---|
417 | Path2D.Double p = new Path2D.Double(); p.moveTo(-14.0, -44.0); p.curveTo(-14.0, -62.7, 14.0, -62.7, 14.0, -44.0); p.curveTo(14.0, -25.3, -14.0, -25.3, -14.0, -44.0); p.closePath();
|
---|
418 | colours.add(new Instr(Form.P1, p));
|
---|
419 | TopSphereRhombus.add(new Instr(Form.COLR, colours));
|
---|
420 | TopSphereRhombus.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
421 | TopSphereRhombus.add(new Instr(Form.FILL, Color.black));
|
---|
422 | TopSphereRhombus.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
423 | TopSphereRhombus.add(new Instr(Form.ELPS, new Ellipse2D.Double(-14, -58, 28, 28)));
|
---|
424 | }
|
---|
425 |
|
---|
426 | public static final Symbol TopT = new Symbol();
|
---|
427 |
|
---|
428 | public static final Symbol TopTrapeziumU = new Symbol();
|
---|
429 | static {
|
---|
430 | TopTrapeziumU.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
431 | Symbol colours = new Symbol();
|
---|
432 | Path2D.Double p = new Path2D.Double(); p.moveTo(-20.0, -1.0); p.lineTo(-13.0, -27.0); p.lineTo(13.0, -27.0); p.lineTo(20.0, -1.0); p.closePath();
|
---|
433 | colours.add(new Instr(Form.P1, p));
|
---|
434 | TopTrapeziumU.add(new Instr(Form.COLR, colours));
|
---|
435 | TopTrapeziumU.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
436 | TopTrapeziumU.add(new Instr(Form.FILL, Color.black));
|
---|
437 | p = new Path2D.Double(); p.moveTo(-20.0, -1.0); p.lineTo(-13.0, -27.0); p.lineTo(13.0, -27.0); p.lineTo(20.0, -1.0); p.closePath();
|
---|
438 | TopTrapeziumU.add(new Instr(Form.PLIN, p));
|
---|
439 | }
|
---|
440 |
|
---|
441 | public static final Symbol TopTrapeziumD = new Symbol();
|
---|
442 | static {
|
---|
443 | TopTrapeziumD.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
444 | Symbol colours = new Symbol();
|
---|
445 | Path2D.Double p = new Path2D.Double(); p.moveTo(-13.0, -1.0); p.lineTo(-20.0, -27.0); p.lineTo(20.0, -27.0); p.lineTo(13.0, -1.0); p.closePath();
|
---|
446 | colours.add(new Instr(Form.P1, p));
|
---|
447 | TopTrapeziumD.add(new Instr(Form.COLR, colours));
|
---|
448 | TopTrapeziumD.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
449 | TopTrapeziumD.add(new Instr(Form.FILL, Color.black));
|
---|
450 | p = new Path2D.Double(); p.moveTo(-13.0, -1.0); p.lineTo(-20.0, -27.0); p.lineTo(20.0, -27.0); p.lineTo(13.0, -1.0); p.closePath();
|
---|
451 | TopTrapeziumD.add(new Instr(Form.PLIN, p));
|
---|
452 | }
|
---|
453 |
|
---|
454 | public static final Symbol TopTriangle = new Symbol();
|
---|
455 | static {
|
---|
456 | TopTriangle.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
457 | Symbol colours = new Symbol();
|
---|
458 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -1.0); p.lineTo(0.0, -29.0); p.lineTo(15.0, -1.0); p.closePath();
|
---|
459 | colours.add(new Instr(Form.P1, p));
|
---|
460 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
461 | p.moveTo(-15.0, -1.0); p.lineTo(0.0, -29.0); p.lineTo(15.0, -1.0); p.closePath();
|
---|
462 | p.moveTo(-10.0, -6.0); p.lineTo(0.0, -24.0); p.lineTo(10.0, -6.0); p.closePath();
|
---|
463 | colours.add(new Instr(Form.B1, p));
|
---|
464 | TopTriangle.add(new Instr(Form.COLR, colours));
|
---|
465 | TopTriangle.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
466 | TopTriangle.add(new Instr(Form.FILL, Color.black));
|
---|
467 | p = new Path2D.Double(); p.moveTo(-15.0, -1.0); p.lineTo(0.0, -29.0); p.lineTo(15.0, -1.0); p.closePath();
|
---|
468 | TopTriangle.add(new Instr(Form.PLIN, p));
|
---|
469 | }
|
---|
470 |
|
---|
471 | public static final Symbol TopItriangle = new Symbol();
|
---|
472 | static {
|
---|
473 | TopItriangle.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20, -80, 40, 80)));
|
---|
474 | Symbol colours = new Symbol();
|
---|
475 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -29.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -29.0); p.closePath();
|
---|
476 | colours.add(new Instr(Form.P1, p));
|
---|
477 | p = new Path2D.Double(); p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
|
---|
478 | p.moveTo(-15.0, -29.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -29.0); p.closePath();
|
---|
479 | p.moveTo(-10.0, -24.0); p.lineTo(0.0, -6.0); p.lineTo(10.0, -24.0); p.closePath();
|
---|
480 | colours.add(new Instr(Form.B1, p));
|
---|
481 | TopItriangle.add(new Instr(Form.COLR, colours));
|
---|
482 | TopItriangle.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
483 | TopItriangle.add(new Instr(Form.FILL, Color.black));
|
---|
484 | p = new Path2D.Double(); p.moveTo(-15.0, -29.0); p.lineTo(0.0, -1.0); p.lineTo(15.0, -29.0); p.closePath();
|
---|
485 | TopItriangle.add(new Instr(Form.PLIN, p));
|
---|
486 | }
|
---|
487 |
|
---|
488 | public static final Symbol TopTriangleCircle = new Symbol();
|
---|
489 |
|
---|
490 | public static final Symbol TopWest = new Symbol();
|
---|
491 | static {
|
---|
492 | TopWest.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
493 | Symbol colours = new Symbol();
|
---|
494 | Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0, -78.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -78.0); p.closePath();
|
---|
495 | colours.add(new Instr(Form.P1, p));
|
---|
496 | p = new Path2D.Double(); p.moveTo(-15.0, -10.0); p.lineTo(0.0, -43.0); p.lineTo(15.0, -10.0); p.closePath();
|
---|
497 | colours.add(new Instr(Form.P2, p));
|
---|
498 | TopWest.add(new Instr(Form.COLR, colours));
|
---|
499 | TopWest.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
500 | TopWest.add(new Instr(Form.FILL, Color.black));
|
---|
501 | TopWest.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -10)));
|
---|
502 | TopWest.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
503 | p = new Path2D.Double(); p.moveTo(-15.0, -10.0); p.lineTo(0.0, -43.0); p.lineTo(15.0, -10.0); p.closePath();
|
---|
504 | p.moveTo(-15.0, -78.0); p.lineTo(0.0, -45.0); p.lineTo(15.0, -78.0); p.closePath();
|
---|
505 | TopWest.add(new Instr(Form.PLIN, p));
|
---|
506 | }
|
---|
507 |
|
---|
508 | public static final Symbol TopX = new Symbol();
|
---|
509 | static {
|
---|
510 | TopX.add(new Instr(Form.BBOX, new Rectangle2D.Double(-30, -80, 60, 80)));
|
---|
511 | Symbol colours = new Symbol();
|
---|
512 | Path2D.Double p = new Path2D.Double(); p.moveTo(0.0, -27.7); p.lineTo(-12.4, -15.7); p.lineTo(-19.3, -22.6); p.lineTo(-7.3, -35.0); p.lineTo(-19.3, -47.3);
|
---|
513 | p.lineTo(-12.4, -54.2); p.lineTo(0.0, -42.4); p.lineTo(12.4, -54.2); p.lineTo(19.3, -47.3); p.lineTo(7.3, -35.0); p.lineTo(19.3, -22.6); p.lineTo(12.4, -15.7); p.closePath();
|
---|
514 | colours.add(new Instr(Form.P1, p));
|
---|
515 | TopX.add(new Instr(Form.COLR, colours));
|
---|
516 | TopX.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
517 | TopX.add(new Instr(Form.FILL, Color.black));
|
---|
518 | TopX.add(new Instr(Form.LINE, new Line2D.Double(0, 0, 0, -27)));
|
---|
519 | TopX.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
|
---|
520 | p = new Path2D.Double(); p.moveTo(0.0, -27.7); p.lineTo(-12.4, -15.7); p.lineTo(-19.3, -22.6); p.lineTo(-7.3, -35.0); p.lineTo(-19.3, -47.3); p.lineTo(-12.4, -54.2); p.lineTo(0.0, -42.4);
|
---|
521 | p.lineTo(12.4, -54.2); p.lineTo(19.3, -47.3); p.lineTo(7.3, -35.0); p.lineTo(19.3, -22.6); p.lineTo(12.4, -15.7); p.closePath();
|
---|
522 | TopX.add(new Instr(Form.PLIN, p));
|
---|
523 | }
|
---|
524 |
|
---|
525 | public static final Symbol TopOther = new Symbol();
|
---|
526 |
|
---|
527 | public static final EnumMap<TopSHP, Symbol> Shapes = new EnumMap<>(TopSHP.class);
|
---|
528 | static {
|
---|
529 | Shapes.put(TopSHP.TOP_BESM, TopBesom); Shapes.put(TopSHP.TOP_IBESM, TopIBesom); Shapes.put(TopSHP.TOP_BORD, TopBoard); Shapes.put(TopSHP.TOP_CAN, TopCan);
|
---|
530 | Shapes.put(TopSHP.TOP_CONE, TopCone); Shapes.put(TopSHP.TOP_CROS, TopCross); Shapes.put(TopSHP.TOP_EAST, TopEast); Shapes.put(TopSHP.TOP_ICONE, TopIcone);
|
---|
531 | Shapes.put(TopSHP.TOP_ISD, TopIsol); Shapes.put(TopSHP.TOP_NORTH, TopNorth); Shapes.put(TopSHP.TOP_SOUTH, TopSouth); Shapes.put(TopSHP.TOP_SPHR, TopSphere);
|
---|
532 | Shapes.put(TopSHP.TOP_SQUR, TopSquare); Shapes.put(TopSHP.TOP_TRI, TopTriangle); Shapes.put(TopSHP.TOP_ITRI, TopItriangle); Shapes.put(TopSHP.TOP_WEST, TopWest);
|
---|
533 | Shapes.put(TopSHP.TOP_SALT, TopX); Shapes.put(TopSHP.TOP_RHOM, TopRhombus); Shapes.put(TopSHP.TOP_FLAG, TopFlag); Shapes.put(TopSHP.TOP_CUBE, TopCube);
|
---|
534 | Shapes.put(TopSHP.TOP_SPRH, TopSphereRhombus); Shapes.put(TopSHP.TOP_HRECT, TopRectangleH); Shapes.put(TopSHP.TOP_VRECT, TopRectangleV);
|
---|
535 | Shapes.put(TopSHP.TOP_TRAP, TopTrapeziumU); Shapes.put(TopSHP.TOP_ITRAP, TopTrapeziumD); Shapes.put(TopSHP.TOP_COSP, TopConeSphere);
|
---|
536 | Shapes.put(TopSHP.TOP_CIRC, TopCircle); Shapes.put(TopSHP.TOP_CRSS, TopCrosses); Shapes.put(TopSHP.TOP_T, TopT); Shapes.put(TopSHP.TOP_TRCL, TopTriangleCircle);
|
---|
537 | Shapes.put(TopSHP.TOP_CRCL, TopCrossCircle); Shapes.put(TopSHP.TOP_RHCL, TopRhombusCircle); Shapes.put(TopSHP.TOP_CLTR, TopCircleTriangle);
|
---|
538 | Shapes.put(TopSHP.TOP_CYSP, TopCanSphere); Shapes.put(TopSHP.TOP_OTHR, TopOther); Shapes.put(TopSHP.TOP_ARRW, TopArrow);
|
---|
539 | }
|
---|
540 |
|
---|
541 | // CHECKSTYLE.OFF: SingleSpaceSeparator
|
---|
542 | public static final EnumMap<BoySHP, Delta> BuoyDeltas = new EnumMap<>(BoySHP.class);
|
---|
543 | static {
|
---|
544 | BuoyDeltas.put(BoySHP.BOY_PILR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 31.5, -95.0)));
|
---|
545 | BuoyDeltas.put(BoySHP.BOY_SPAR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 31.5, -95.0)));
|
---|
546 | BuoyDeltas.put(BoySHP.BOY_CAN, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
|
---|
547 | BuoyDeltas.put(BoySHP.BOY_CONE, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
|
---|
548 | BuoyDeltas.put(BoySHP.BOY_SPHR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
|
---|
549 | BuoyDeltas.put(BoySHP.BOY_BARL, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 12.7, -37.9)));
|
---|
550 | BuoyDeltas.put(BoySHP.BOY_SUPR, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -42.0)));
|
---|
551 | BuoyDeltas.put(BoySHP.BOY_ICE, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -25.0)));
|
---|
552 | }
|
---|
553 |
|
---|
554 | public static final Delta FloatDelta = new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -42.0));
|
---|
555 | public static final Delta BeaconDelta = new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -70.0));
|
---|
556 | public static final Delta LightDelta = new Delta(Handle.BC, AffineTransform.getTranslateInstance(0.0, -20.0));
|
---|
557 | // CHECKSTYLE.ON: SingleSpaceSeparator
|
---|
558 | }
|
---|