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