source: osm/applications/editors/josm/plugins/smed2/src/symbols/Areas.java@ 29126

Last change on this file since 29126 was 29126, checked in by malcolmh, 12 years ago

save

File size: 2.7 KB
Line 
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
10package symbols;
11
12import java.awt.BasicStroke;
13import java.awt.Color;
14import java.awt.Rectangle;
15import java.awt.geom.*;
16import java.util.ArrayList;
17
18import symbols.Symbols.*;
19
20public class Areas {
21 public static final ArrayList<Instr> Cable = new ArrayList<Instr>();
22 static {
23 Cable.add(new Instr(Prim.STRK, new BasicStroke(8.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)));
24 Cable.add(new Instr(Prim.FILL, new Color(0xc480ff)));
25 Path2D.Double p = new Path2D.Double(); p.moveTo(0,0); p.curveTo(-13,-13,-13,-17,0,-30); p.curveTo(13,-43,13,-47,0,-60);
26 Cable.add(new Instr(Prim.PLIN, p));
27 }
28 public static final ArrayList<Instr> LaneArrow = new ArrayList<Instr>();
29 static {
30 LaneArrow.add(new Instr(Prim.STRK, new BasicStroke(10.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));
31 LaneArrow.add(new Instr(Prim.FILL, new Color(0x80c480ff, true)));
32 Path2D.Double p = new Path2D.Double(); p.moveTo(15,0); p.lineTo(15,-195); p.lineTo(40,-195);
33 p.lineTo(0,-240); p.lineTo(-40,-195); p.lineTo(-15,-195); p.lineTo(-15,0); p.closePath();
34 LaneArrow.add(new Instr(Prim.PLIN, p));
35 }
36 public static final ArrayList<Instr> LineAnchor = new ArrayList<Instr>();
37 static {
38 LineAnchor.add(new Instr(Prim.FILL, new Color(0xc480ff)));
39 LineAnchor.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 0.5, 0, 0, new Delta(Handle.TC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null)));
40 }
41 public static final ArrayList<Instr> LinePlane = new ArrayList<Instr>();
42 public static final ArrayList<Instr> MarineFarm = new ArrayList<Instr>();
43 public static final ArrayList<Instr> NoWake = new ArrayList<Instr>();
44 public static final ArrayList<Instr> Pipeline = new ArrayList<Instr>();
45 public static final ArrayList<Instr> Restricted = new ArrayList<Instr>();
46 public static final ArrayList<Instr> Rock = new ArrayList<Instr>();
47 public static final ArrayList<Instr> RockA = new ArrayList<Instr>();
48 public static final ArrayList<Instr> RockC = new ArrayList<Instr>();
49 public static final ArrayList<Instr> Sandwaves = new ArrayList<Instr>();
50 public static final ArrayList<Instr> Seaplane = new ArrayList<Instr>();
51 public static final ArrayList<Instr> WindFarm = new ArrayList<Instr>();
52 public static final ArrayList<Instr> WreckD = new ArrayList<Instr>();
53 public static final ArrayList<Instr> WreckND = new ArrayList<Instr>();
54 public static final ArrayList<Instr> WreckS = new ArrayList<Instr>();
55}
Note: See TracBrowser for help on using the repository browser.