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.geom.*;
|
---|
15 | import java.util.ArrayList;
|
---|
16 |
|
---|
17 | import symbols.Symbols.*;
|
---|
18 |
|
---|
19 | public class Buoys {
|
---|
20 |
|
---|
21 | public static final ArrayList<Instr> Barrel = new ArrayList<Instr>();
|
---|
22 | static {
|
---|
23 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
24 | Path2D.Double p = new Path2D.Double(); p.moveTo(-50.0,0); p.curveTo(-50.0,-11.0,-45.0,-32.0,-32.0,-36.0);
|
---|
25 | p.curveTo(-18.0,-40.0,12.0,-40.0,25.0,-36.0); p.curveTo(38.0,-32.0,43.0,-11.0,43.0,0);
|
---|
26 | p.lineTo(8.0, 0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
27 | colours.add(new Instr(Prim.P1, p));
|
---|
28 | Barrel.add(new Instr(Prim.COLR, colours));
|
---|
29 | Barrel.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
30 | Barrel.add(new Instr(Prim.FILL, Color.black));
|
---|
31 | Barrel.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
32 | Barrel.add(new Instr(Prim.LINE, new Line2D.Double(-57,0,-10,0)));
|
---|
33 | Barrel.add(new Instr(Prim.LINE, new Line2D.Double(10,0,50,0)));
|
---|
34 | p = new Path2D.Double(); p.moveTo(-50.0,0); p.curveTo(-50.0,-11.0,-45.0,-32.0,-32.0,-36.0); p.curveTo(-18.0,-40.0,12.0,-40.0,25.0,-36.0);
|
---|
35 | p.curveTo(38.0,-32.0,43.0,-11.0,43.0,0); p.moveTo(-32.0,-36.0); p.curveTo(-23.0,-25.0,-21.0,-12.0,-21.0,0.0);
|
---|
36 | Barrel.add(new Instr(Prim.PLIN, p));
|
---|
37 | }
|
---|
38 |
|
---|
39 | public static final ArrayList<Instr> Can = new ArrayList<Instr>();
|
---|
40 | static {
|
---|
41 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
42 | Path2D.Double p = new Path2D.Double(); p.moveTo(-31.6, 0); p.lineTo(-15.7,-47.4); p.lineTo(41.1,-28.4); p.lineTo(31.6,0);
|
---|
43 | p.lineTo(8.0, 0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
44 | colours.add(new Instr(Prim.P1, p));
|
---|
45 | p = new Path2D.Double(); p.moveTo(-31.6,0); p.lineTo(-22.0,-28.4); p.lineTo(34.8,-9.4); p.lineTo(31.6,0);
|
---|
46 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
47 | colours.add(new Instr(Prim.H2, p));
|
---|
48 | p = new Path2D.Double(); p.moveTo(-24.2,-22.1); p.lineTo(-19.9,-34.8); p.lineTo(36.9,-15.8); p.lineTo(32.6,-3.1); p.closePath();
|
---|
49 | colours.add(new Instr(Prim.H3, p));
|
---|
50 | p = new Path2D.Double(); p.moveTo(-22.0,-28.4); p.lineTo(-18.9,-37.9); p.lineTo(37.9,-18.9); p.lineTo(34.8,-9.4); p.closePath();
|
---|
51 | colours.add(new Instr(Prim.H4, p));
|
---|
52 | p = new Path2D.Double(); p.moveTo(-25.2,-19.0); p.lineTo(-22.0,-28.4); p.lineTo(34.8,-9.4); p.lineTo(31.6,0.0); p.closePath();
|
---|
53 | colours.add(new Instr(Prim.H5, p));
|
---|
54 | p = new Path2D.Double(); p.moveTo(12.7,-37.9); p.lineTo(41.1,-28.4); p.lineTo(31.6,0); p.lineTo(8.0,0.0); p.quadTo(8.0,-6.0,2.5,-7.6); p.closePath();
|
---|
55 | colours.add(new Instr(Prim.V2, p));
|
---|
56 | Can.add(new Instr(Prim.COLR, colours));
|
---|
57 | Can.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
58 | Can.add(new Instr(Prim.FILL, Color.black));
|
---|
59 | Can.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
60 | Can.add(new Instr(Prim.LINE, new Line2D.Double(-40,0,-10,0)));
|
---|
61 | Can.add(new Instr(Prim.LINE, new Line2D.Double(10,0,40,0)));
|
---|
62 | p = new Path2D.Double(); p.moveTo(-31.6, 0); p.lineTo(-15.7,-47.4); p.lineTo(41.1,-28.4); p.lineTo(31.6,0);
|
---|
63 | Can.add(new Instr(Prim.PLIN, p));
|
---|
64 | }
|
---|
65 |
|
---|
66 | public static final ArrayList<Instr> Cone = new ArrayList<Instr>();
|
---|
67 | static {
|
---|
68 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
69 | Path2D.Double p = new Path2D.Double(); p.moveTo(-31.6,0); p.curveTo(-24.9,-32.2, 1.4,-38.7,12.7,-37.9); p.curveTo(21.9,-30.5,32.8,-18.4,32.1,0.0);
|
---|
70 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
71 | colours.add(new Instr(Prim.P1, p));
|
---|
72 | p = new Path2D.Double(); p.moveTo(-31.6,0); p.quadTo(-29.0,-15.5,-17.3,-26.9); p.lineTo(31.5,-10.5); p.quadTo(33.0,-5.0,32.1,0.0);
|
---|
73 | p.lineTo(8.0,0.0); p.curveTo(8.0, -11.0, -8.0, -11.0, -8.0, 0.0); p.closePath();
|
---|
74 | colours.add(new Instr(Prim.H2, p));
|
---|
75 | p = new Path2D.Double(); p.moveTo(-22.3,-21.4); p.quadTo(-15.2,-29.8,-10.8,-31.8); p.lineTo(28.8,-18.5); p.quadTo(31.8,-12.5,32.6,-3.1); p.closePath();
|
---|
76 | colours.add(new Instr(Prim.H3, p));
|
---|
77 | p = new Path2D.Double(); p.moveTo(-17.3,-27.0); p.quadTo(-13.0,-31.4,-6.9,-33.8); p.lineTo(26.4,-22.7); p.quadTo(30.0,-17.0,31.7,-10.3); p.closePath();
|
---|
78 | colours.add(new Instr(Prim.H4, p));
|
---|
79 | p = new Path2D.Double(); p.moveTo(-24.4,-18.7); p.quadTo(-20.3,-25.0,-17.3,-27.0); p.lineTo(31.7,-10.3); p.quadTo(32.7,-4.5,32.1,0.0); p.closePath();
|
---|
80 | colours.add(new Instr(Prim.H5, p));
|
---|
81 | p = new Path2D.Double(); p.moveTo(12.7,-37.9); p.curveTo(21.9,-30.5,32.8,-18.4,32.1,0.0); p.lineTo(8.0,0.0); p.quadTo(8.0,-6.0,2.5,-7.6); p.closePath();
|
---|
82 | colours.add(new Instr(Prim.V2, p));
|
---|
83 | Cone.add(new Instr(Prim.COLR, colours));
|
---|
84 | Cone.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
85 | Cone.add(new Instr(Prim.FILL, Color.black));
|
---|
86 | Cone.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
87 | Cone.add(new Instr(Prim.LINE, new Line2D.Double(-40,0,-10,0)));
|
---|
88 | Cone.add(new Instr(Prim.LINE, new Line2D.Double(10,0,40,0)));
|
---|
89 | p = new Path2D.Double(); p.moveTo(-31.6, 0); p.curveTo(-24.9,-32.2,1.4,-38.7,12.7,-37.9); p.curveTo(21.9,-30.5,32.8,-18.4,32.1,0.0);
|
---|
90 | Cone.add(new Instr(Prim.PLIN, p));
|
---|
91 | }
|
---|
92 |
|
---|
93 | public static final ArrayList<Instr> Float = new ArrayList<Instr>();
|
---|
94 | static {
|
---|
95 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
96 | Path2D.Double p = new Path2D.Double(); p.moveTo(-36.0,0); p.lineTo(-47.0,-33.0); p.quadTo(-30.0, -25.0, -19.0,-23.0);
|
---|
97 | p.lineTo(-12.0,-42.0); p.lineTo(12.0,-42.0); p.lineTo(19.0,-23.0); p.quadTo(30.0,-25.0,47.0,-33.0); p.lineTo(36.0,0);
|
---|
98 | p.lineTo(8.0, 0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
99 | colours.add(new Instr(Prim.P1, p));
|
---|
100 | p = new Path2D.Double(); p.moveTo(-36.0,0); p.lineTo(-43.0,-21.0); p.lineTo(43.0,-21.0); p.lineTo(36.0,0);
|
---|
101 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
102 | colours.add(new Instr(Prim.H2, p));
|
---|
103 | p = new Path2D.Double(); p.moveTo(-40.8,-14.0); p.lineTo(-45.4,-28.0); p.lineTo(-35.5,-28.0); p.quadTo(-28.0,-25.0,-19.0,-23.0); p.lineTo(-17.2,-28.0);
|
---|
104 | p.lineTo(17.2,-28.0); p.lineTo(19.0,-23.0); p.quadTo(28.0,-25.0,35.5,-28.0); p.lineTo(45.4,-28.0); p.lineTo(40.8,-14.0); p.closePath();
|
---|
105 | colours.add(new Instr(Prim.H3, p));
|
---|
106 | p = new Path2D.Double(); p.moveTo(-43.0,-21.0); p.lineTo(-47.0,-33.0); p.quadTo(-29.7,-24.8,-19.0,-23.0); p.lineTo(-15.8,-31.5); p.lineTo(15.8,-31.5);
|
---|
107 | p.lineTo(19.0,-23.0); p.quadTo(28.4,-24.3,47.0,-33.0); p.lineTo(43.0,-21.0); p.closePath();
|
---|
108 | colours.add(new Instr(Prim.H4, p));
|
---|
109 | p = new Path2D.Double(); p.moveTo(-39.8,-11.5); p.lineTo(-43.0,-21.0); p.lineTo(43.0,-21.0); p.lineTo(39.8,-11.5); p.closePath();
|
---|
110 | colours.add(new Instr(Prim.H5, p));
|
---|
111 | p = new Path2D.Double(); p.moveTo(0.0,-42.0); p.lineTo(12.0,-42.0); p.lineTo(19.0,-23.0); p.quadTo(28.4,-24.3,47.0,-33.0); p.lineTo(36.0,0.0);
|
---|
112 | p.lineTo(8.0,0.0); p.quadTo(7.7,-7.7,0.0,-8.0); p.closePath();
|
---|
113 | colours.add(new Instr(Prim.V2, p));
|
---|
114 | Float.add(new Instr(Prim.COLR, colours));
|
---|
115 | Float.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
116 | Float.add(new Instr(Prim.FILL, Color.black));
|
---|
117 | Float.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
118 | Float.add(new Instr(Prim.LINE, new Line2D.Double(-54,0,-10,0)));
|
---|
119 | Float.add(new Instr(Prim.LINE, new Line2D.Double(10,0,54,0)));
|
---|
120 | p = new Path2D.Double(); p.moveTo(-36.0,0); p.lineTo(-47.0,-33.0); p.curveTo(-15.0, -17.0, 15.0, -17.0, 47.0,-33.0); p.lineTo(36.0,0);
|
---|
121 | p.moveTo(-19.0, -23.0); p.lineTo(-12.0,-42.0); p.lineTo(12.0,-42.0); p.lineTo(19.0,-23.0);
|
---|
122 | Float.add(new Instr(Prim.PLIN, p));
|
---|
123 | }
|
---|
124 |
|
---|
125 | public static final ArrayList<Instr> Pillar = new ArrayList<Instr>();
|
---|
126 | static {
|
---|
127 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
128 | Path2D.Double p = new Path2D.Double(); p.moveTo(-32.0,0.0); p.lineTo(-2.8,-32.5); p.lineTo(25.6,-96.7); p.lineTo(37.0,-92.9); p.lineTo(21.8,-24.3);
|
---|
129 | p.lineTo(25.0,0.0); p.lineTo(8.0, 0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
130 | colours.add(new Instr(Prim.P1, p));
|
---|
131 | p = new Path2D.Double(); p.moveTo(-32.0,0); p.lineTo(-2.8,-32.5); p.lineTo(5.3,-51.0); p.lineTo(26.3,-43.9); p.lineTo(21.8,-24.3); p.lineTo(25.0,0.0);
|
---|
132 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
133 | colours.add(new Instr(Prim.H2, p));
|
---|
134 | p = new Path2D.Double(); p.moveTo(-0.9,-37.1); p.lineTo(11.3,-64.6); p.lineTo(29.6,-58.7); p.lineTo(23.1,-29.3); p.closePath();
|
---|
135 | colours.add(new Instr(Prim.H3, p));
|
---|
136 | p = new Path2D.Double(); p.moveTo(5.3,-51.0); p.lineTo(14.5,-71.5); p.lineTo(31.2,-65.9); p.lineTo(26.3,-43.9); p.closePath();
|
---|
137 | colours.add(new Instr(Prim.H4, p));
|
---|
138 | p = new Path2D.Double(); p.moveTo(-5.2,-29.7); p.lineTo(-2.8,-32.5); p.lineTo(5.3,-51.0); p.lineTo(26.3,-43.9); p.lineTo(21.8,-24.3); p.lineTo(22.2,-21.5); p.closePath();
|
---|
139 | colours.add(new Instr(Prim.H5, p));
|
---|
140 | p = new Path2D.Double(); p.moveTo(12.7,-37.9); p.lineTo(31.3,-94.8); p.lineTo(37.0,-92.9); p.lineTo(21.8,-24.3);
|
---|
141 | p.lineTo(25.0,0.0); p.lineTo(8.0,0.0); p.quadTo(8.0,-6.0,2.5,-7.6); p.closePath();
|
---|
142 | colours.add(new Instr(Prim.V2, p));
|
---|
143 | Pillar.add(new Instr(Prim.COLR, colours));
|
---|
144 | Pillar.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
145 | Pillar.add(new Instr(Prim.FILL, Color.black));
|
---|
146 | Pillar.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
147 | Pillar.add(new Instr(Prim.LINE, new Line2D.Double(-42,0,-10,0)));
|
---|
148 | Pillar.add(new Instr(Prim.LINE, new Line2D.Double(10,0,36,0)));
|
---|
149 | p = new Path2D.Double(); p.moveTo(-32.0,0.0); p.lineTo(-2.8,-32.5); p.lineTo(25.6,-96.7); p.lineTo(37.0,-92.9); p.lineTo(21.8,-24.3); p.lineTo(25.0,0.0);
|
---|
150 | Pillar.add(new Instr(Prim.PLIN, p));
|
---|
151 | }
|
---|
152 |
|
---|
153 | public static final ArrayList<Instr> Spar = new ArrayList<Instr>();
|
---|
154 | static {
|
---|
155 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
156 | Path2D.Double p = new Path2D.Double(); p.moveTo(-3.2,-9.5); p.lineTo(25.6,-96.7); p.lineTo(37.0,-92.9); p.lineTo(8.2,-5.7); p.closePath();
|
---|
157 | colours.add(new Instr(Prim.P1, p));
|
---|
158 | p = new Path2D.Double(); p.moveTo(-3.2,-9.5); p.lineTo(11.2,-53.1); p.lineTo(22.6,-49.3); p.lineTo(8.2,-5.7); p.closePath();
|
---|
159 | colours.add(new Instr(Prim.H2, p));
|
---|
160 | p = new Path2D.Double(); p.moveTo(6.4,-38.6); p.lineTo(16.0,-67.6); p.lineTo(27.4,-63.8); p.lineTo(17.8,-34.8); p.closePath();
|
---|
161 | colours.add(new Instr(Prim.H3, p));
|
---|
162 | p = new Path2D.Double(); p.moveTo(11.2,-53.1); p.lineTo(18.4,-74.9); p.lineTo(29.8,-71.1); p.lineTo(22.6,-49.3); p.closePath();
|
---|
163 | colours.add(new Instr(Prim.H4, p));
|
---|
164 | p = new Path2D.Double(); p.moveTo(4.0,-31.3); p.lineTo(11.2,-53.1); p.lineTo(22.6,-49.3); p.lineTo(15.4,-27.5); p.closePath();
|
---|
165 | colours.add(new Instr(Prim.H5, p));
|
---|
166 | p = new Path2D.Double(); p.moveTo(2.5,-7.6); p.lineTo(31.3,-94.8); p.lineTo(37.0,-92.9); p.lineTo(8.2,-5.7); p.closePath();
|
---|
167 | colours.add(new Instr(Prim.V2, p));
|
---|
168 | Spar.add(new Instr(Prim.COLR, colours));
|
---|
169 | Spar.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
170 | Spar.add(new Instr(Prim.FILL, Color.black));
|
---|
171 | Spar.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
172 | Spar.add(new Instr(Prim.LINE, new Line2D.Double(-20,0,-10,0)));
|
---|
173 | Spar.add(new Instr(Prim.LINE, new Line2D.Double(10,0,20,0)));
|
---|
174 | p = new Path2D.Double(); p.moveTo(-3.2,-9.5); p.lineTo(25.6,-96.7); p.lineTo(37.0,-92.9); p.lineTo(8.2,-5.7);
|
---|
175 | Spar.add(new Instr(Prim.PLIN, p));
|
---|
176 | }
|
---|
177 |
|
---|
178 | public static final ArrayList<Instr> Sphere = new ArrayList<Instr>();
|
---|
179 | static {
|
---|
180 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
181 | Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0); p.curveTo(-32.0,-21.0,-14.0,-45.5,12.7,-37.9); p.curveTo(27.5,-33.8,37.8,-15.5,32.0,0.0);
|
---|
182 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
183 | colours.add(new Instr(Prim.P1, p));
|
---|
184 | p = new Path2D.Double(); p.moveTo(-25.0,0); p.quadTo(-30.0,-15.0,-20.5,-28.0); p.lineTo(33.8,-10.0); p.quadTo(33.7,-4.0,32.0,0.0);
|
---|
185 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
186 | colours.add(new Instr(Prim.H2, p));
|
---|
187 | p = new Path2D.Double(); p.moveTo(-24.2,-22.1); p.quadTo(-21.0,-28.5,-15.2,-33.3); p.lineTo(32.8,-17.2); p.quadTo(34.6,-10.0,33.0,-2.9); p.closePath();
|
---|
188 | colours.add(new Instr(Prim.H3, p));
|
---|
189 | p = new Path2D.Double(); p.moveTo(-20.5,-28.0); p.quadTo(-16.5,-33.0,-12.0,-35.5); p.lineTo(31.5,-21.0); p.quadTo(33.5,-17.0,34.0,-9.5); p.closePath();
|
---|
190 | colours.add(new Instr(Prim.H4, p));
|
---|
191 | p = new Path2D.Double(); p.moveTo(-25.2,-19.0); p.quadTo(-23.5,-24.0,-20.5,-28.0); p.lineTo(34.0,-9.5); p.quadTo(34.0,-3.0,32.0,0.0); p.closePath();
|
---|
192 | colours.add(new Instr(Prim.H5, p));
|
---|
193 | p = new Path2D.Double(); p.moveTo(12.7,-37.9); p.curveTo(27.5,-33.8,37.8,-15.5,32.0,0.0); p.lineTo(8.0,0.0); p.quadTo(8.0,-6.0,2.5,-7.6); p.closePath();
|
---|
194 | colours.add(new Instr(Prim.V2, p));
|
---|
195 | Sphere.add(new Instr(Prim.COLR, colours));
|
---|
196 | Sphere.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
197 | Sphere.add(new Instr(Prim.FILL, Color.black));
|
---|
198 | Sphere.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
199 | Sphere.add(new Instr(Prim.LINE, new Line2D.Double(-33,0,-10,0)));
|
---|
200 | Sphere.add(new Instr(Prim.LINE, new Line2D.Double(10,0,40,0)));
|
---|
201 | Sphere.add(new Instr(Prim.EARC, new Arc2D.Double(-26.5,-39.4,60.0,60.0,-18.0,216.0,Arc2D.OPEN)));
|
---|
202 | }
|
---|
203 |
|
---|
204 | public static final ArrayList<Instr> Super = new ArrayList<Instr>();
|
---|
205 | static {
|
---|
206 | ArrayList<Instr> colours = new ArrayList<Instr>();
|
---|
207 | Path2D.Double p = new Path2D.Double(); p.moveTo(-48.0,0); p.lineTo(-28.0,-42.0); p.lineTo(28.0,-42.0); p.lineTo(48.0,0);
|
---|
208 | p.lineTo(8.0, 0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
209 | colours.add(new Instr(Prim.P1, p));
|
---|
210 | p = new Path2D.Double(); p.moveTo(-48.0,0); p.lineTo(-38.0,-21.0); p.lineTo(38.0,-21.0); p.lineTo(48.0,0);
|
---|
211 | p.lineTo(8.0,0.0); p.curveTo(8.0,-11.0,-8.0,-11.0,-8.0,0.0); p.closePath();
|
---|
212 | colours.add(new Instr(Prim.H2, p));
|
---|
213 | p = new Path2D.Double(); p.moveTo(-41.3,-14.0); p.lineTo(-34.7,-28.0); p.lineTo(34.7,-28.0); p.lineTo(41.3,-14.0); p.closePath();
|
---|
214 | colours.add(new Instr(Prim.H3, p));
|
---|
215 | p = new Path2D.Double(); p.moveTo(-38.0,-21.0); p.lineTo(-33.0,-31.5); p.lineTo(33.0,-31.5); p.lineTo(38.0,-21.0); p.closePath();
|
---|
216 | colours.add(new Instr(Prim.H4, p));
|
---|
217 | p = new Path2D.Double(); p.moveTo(-43.0,-11.5); p.lineTo(-38.0,-21.0); p.lineTo(38.0,-21.0); p.lineTo(43.0,-11.5); p.closePath();
|
---|
218 | colours.add(new Instr(Prim.H5, p));
|
---|
219 | p = new Path2D.Double(); p.moveTo(0.0,-42.0); p.lineTo(28.0,-42.0); p.lineTo(48.0,0.0); p.lineTo(8.0,0.0); p.quadTo(7.7,-7.7,0.0,-8.0); p.closePath();
|
---|
220 | colours.add(new Instr(Prim.V2, p));
|
---|
221 | Super.add(new Instr(Prim.COLR, colours));
|
---|
222 | Super.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
|
---|
223 | Super.add(new Instr(Prim.FILL, Color.black));
|
---|
224 | Super.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
|
---|
225 | Super.add(new Instr(Prim.LINE, new Line2D.Double(-54,0,-10,0)));
|
---|
226 | Super.add(new Instr(Prim.LINE, new Line2D.Double(10,0,54,0)));
|
---|
227 | p = new Path2D.Double(); p.moveTo(-48.0,0); p.lineTo(-28.0,-42.0); p.lineTo(28.0,-42.0); p.lineTo(48.0,0);
|
---|
228 | Super.add(new Instr(Prim.PLIN, p));
|
---|
229 | }
|
---|
230 | }
|
---|