Changeset 29186 in osm for applications/editors/josm/plugins/smed2/src/symbols/Areas.java
- Timestamp:
- 2013-01-10T17:31:17+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Areas.java
r29128 r29186 14 14 import java.awt.Rectangle; 15 15 import java.awt.geom.*; 16 import java.util.ArrayList;17 16 18 17 import symbols.Symbols.*; 19 18 20 19 public class Areas { 21 public static final ArrayList<Instr>Plane = newArrayList<Instr>();20 public static final Symbol Plane = new Symbol(); 22 21 static { 23 22 Plane.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120))); … … 26 25 Plane.add(new Instr(Prim.PGON, p)); 27 26 } 28 public static final ArrayList<Instr>Cable = newArrayList<Instr>();27 public static final Symbol Cable = new Symbol(); 29 28 static { 30 29 Cable.add(new Instr(Prim.BBOX, new Rectangle(-30,-60,60,60))); … … 34 33 Cable.add(new Instr(Prim.PLIN, p)); 35 34 } 36 public static final ArrayList<Instr>LaneArrow = newArrayList<Instr>();35 public static final Symbol LaneArrow = new Symbol(); 37 36 static { 38 37 LaneArrow.add(new Instr(Prim.STRK, new BasicStroke(10.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); … … 42 41 LaneArrow.add(new Instr(Prim.PLIN, p)); 43 42 } 44 public static final ArrayList<Instr>LineAnchor = newArrayList<Instr>();43 public static final Symbol LineAnchor = new Symbol(); 45 44 static { 46 45 LineAnchor.add(new Instr(Prim.FILL, new Color(0xc480ff))); 47 LineAnchor.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 0.5, 0, 0, new Delta(Handle.CC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null))); 46 LineAnchor.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 0.5, 0, 0, new Delta(Handle.CC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null))); 48 47 } 49 public static final ArrayList<Instr>LinePlane = newArrayList<Instr>();48 public static final Symbol LinePlane = new Symbol(); 50 49 static { 51 50 LinePlane.add(new Instr(Prim.FILL, new Color(0xc480ff))); 52 LinePlane.add(new Instr(Prim.SYMB, new Symbols.Symbol(Areas.Plane, 0.5, 0, 0, new Delta(Handle.CC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null))); 51 LinePlane.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Areas.Plane, 0.5, 0, 0, new Delta(Handle.CC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null))); 53 52 } 54 public static final ArrayList<Instr>MarineFarm = newArrayList<Instr>();53 public static final Symbol MarineFarm = new Symbol(); 55 54 static { 56 55 MarineFarm.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND))); … … 62 61 MarineFarm.add(new Instr(Prim.RSHP, new Ellipse2D.Double(9,-2,4,4))); 63 62 } 64 public static final ArrayList<Instr>NoWake = newArrayList<Instr>();63 public static final Symbol NoWake = new Symbol(); 65 64 static { 66 65 NoWake.add(new Instr(Prim.STRK, new BasicStroke(12.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 72 71 NoWake.add(new Instr(Prim.LINE, new Line2D.Double(-60,-60,60,60))); 73 72 } 74 public static final ArrayList<Instr>Pipeline = newArrayList<Instr>();73 public static final Symbol Pipeline = new Symbol(); 75 74 static { 76 75 Pipeline.add(new Instr(Prim.BBOX, new Rectangle(-15,-60,30,60))); … … 80 79 Pipeline.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-10,-60,20,20))); 81 80 } 82 public static final ArrayList<Instr>Restricted = newArrayList<Instr>();81 public static final Symbol Restricted = new Symbol(); 83 82 static { 84 83 Restricted.add(new Instr(Prim.BBOX, new Rectangle(-15,-30,30,30))); … … 88 87 Restricted.add(new Instr(Prim.LINE, new Line2D.Double(0,-15,17,-15))); 89 88 } 90 public static final ArrayList<Instr>Rock = newArrayList<Instr>();89 public static final Symbol Rock = new Symbol(); 91 90 static { 92 91 Rock.add(new Instr(Prim.FILL, new Color(0x80c0ff))); … … 99 98 Rock.add(new Instr(Prim.LINE, new Line2D.Double(0,-20,0,20))); 100 99 } 101 public static final ArrayList<Instr>RockA = newArrayList<Instr>();100 public static final Symbol RockA = new Symbol(); 102 101 static { 103 102 RockA.add(new Instr(Prim.FILL, new Color(0x80c0ff))); … … 114 113 RockA.add(new Instr(Prim.RSHP, new Ellipse2D.Double(9,9,8,8))); 115 114 } 116 public static final ArrayList<Instr>RockC = newArrayList<Instr>();115 public static final Symbol RockC = new Symbol(); 117 116 static { 118 117 RockC.add(new Instr(Prim.FILL, new Color(0x80c0ff))); … … 126 125 RockC.add(new Instr(Prim.LINE, new Line2D.Double(10,17.3,-10,-17.3))); 127 126 } 128 public static final ArrayList<Instr>Sandwaves = newArrayList<Instr>();129 public static final ArrayList<Instr>Seaplane = newArrayList<Instr>();127 public static final Symbol Sandwaves = new Symbol(); 128 public static final Symbol Seaplane = new Symbol(); 130 129 static { 131 130 Seaplane.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 132 131 Seaplane.add(new Instr(Prim.FILL, new Color(0xa30075))); 133 132 Seaplane.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-60,-60,120,120))); 134 Seaplane.add(new Instr(Prim.SYMB, new Symbols.Symbol(Areas.Plane, 1.0, 0, 0, null, null))); 133 Seaplane.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Areas.Plane, 1.0, 0, 0, null, null))); 135 134 } 136 public static final ArrayList<Instr>WindFarm = newArrayList<Instr>();135 public static final Symbol WindFarm = new Symbol(); 137 136 static { 138 137 WindFarm.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 145 144 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(0,-27.5,-13.8,-53.6))); 146 145 } 147 public static final ArrayList<Instr>WreckD = newArrayList<Instr>();146 public static final Symbol WreckD = new Symbol(); 148 147 static { 149 148 WreckD.add(new Instr(Prim.FILL, new Color(0x80c0ff))); … … 158 157 WreckD.add(new Instr(Prim.LINE, new Line2D.Double(20,-15,20,15))); 159 158 } 160 public static final ArrayList<Instr>WreckND = newArrayList<Instr>();159 public static final Symbol WreckND = new Symbol(); 161 160 static { 162 161 WreckND.add(new Instr(Prim.STRK, new BasicStroke(5.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 167 166 WreckND.add(new Instr(Prim.LINE, new Line2D.Double(20,-15,20,15))); 168 167 } 169 public static final ArrayList<Instr>WreckS = newArrayList<Instr>();168 public static final Symbol WreckS = new Symbol(); 170 169 static { 171 170 WreckS.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
Note:
See TracChangeset
for help on using the changeset viewer.