Changeset 29186 in osm for applications/editors/josm/plugins/smed2/src/symbols/Harbours.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/Harbours.java
r29132 r29186 14 14 import java.awt.Rectangle; 15 15 import java.awt.geom.*; 16 import java.util.ArrayList;17 16 18 import symbols.Symbols.Instr; 19 import symbols.Symbols.Prim; 17 import symbols.Symbols.*; 20 18 21 19 public class Harbours { 22 public static final ArrayList<Instr>Anchor = newArrayList<Instr>();20 public static final Symbol Anchor = new Symbol(); 23 21 static { 24 22 Anchor.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120))); … … 31 29 Anchor.add(new Instr(Prim.PGON, p)); 32 30 } 33 public static final ArrayList<Instr>Yacht = newArrayList<Instr>();31 public static final Symbol Yacht = new Symbol(); 34 32 static { 35 33 Yacht.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 39 37 Yacht.add(new Instr(Prim.PGON, p)); 40 38 } 41 public static final ArrayList<Instr>Anchorage = newArrayList<Instr>();39 public static final Symbol Anchorage = new Symbol(); 42 40 static { 43 41 Anchorage.add(new Instr(Prim.FILL, new Color(0xa30075))); 44 Anchorage.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 1.0, 0, 0, null, null))); 42 Anchorage.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 1.0, 0, 0, null, null))); 45 43 } 46 public static final ArrayList<Instr>AnchorBerth = newArrayList<Instr>();44 public static final Symbol AnchorBerth = new Symbol(); 47 45 static { 48 AnchorBerth.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchorage, 1.0, 0, 0, null, null))); 46 AnchorBerth.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchorage, 1.0, 0, 0, null, null))); 49 47 AnchorBerth.add(new Instr(Prim.STRK, new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 50 48 AnchorBerth.add(new Instr(Prim.FILL, Color.white)); … … 54 52 AnchorBerth.add(new Instr(Prim.ELPS, s)); 55 53 } 56 public static final ArrayList<Instr>Bollard = newArrayList<Instr>();54 public static final Symbol Bollard = new Symbol(); 57 55 static { 58 56 Bollard.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 63 61 Bollard.add(new Instr(Prim.ELPS, s)); 64 62 } 65 public static final ArrayList<Instr>ClearV = newArrayList<Instr>();63 public static final Symbol ClearV = new Symbol(); 66 64 static { 67 65 ClearV.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 74 72 ClearV.add(new Instr(Prim.LINE, new Line2D.Double(0,25,0,15))); 75 73 } 76 public static final ArrayList<Instr>ContainerCrane = newArrayList<Instr>();74 public static final Symbol ContainerCrane = new Symbol(); 77 75 static { 78 76 ContainerCrane.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 81 79 ContainerCrane.add(new Instr(Prim.RECT, new Rectangle2D.Double(-40,-12.5,80,25))); 82 80 } 83 public static final ArrayList<Instr>DeviationDolphin = newArrayList<Instr>();81 public static final Symbol DeviationDolphin = new Symbol(); 84 82 static { 85 83 DeviationDolphin.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 89 87 DeviationDolphin.add(new Instr(Prim.PLIN, p)); 90 88 } 91 public static final ArrayList<Instr>DistanceI = newArrayList<Instr>();89 public static final Symbol DistanceI = new Symbol(); 92 90 static { 93 91 DistanceI.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 95 93 DistanceI.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22))); 96 94 } 97 public static final ArrayList<Instr>DistanceU = newArrayList<Instr>();95 public static final Symbol DistanceU = new Symbol(); 98 96 static { 99 97 DistanceU.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 101 99 DistanceU.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22))); 102 100 } 103 public static final ArrayList<Instr>Dolphin = newArrayList<Instr>();101 public static final Symbol Dolphin = new Symbol(); 104 102 static { 105 103 Dolphin.add(new Instr(Prim.STRK, new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 111 109 Dolphin.add(new Instr(Prim.PLIN, p)); 112 110 } 113 public static final ArrayList<Instr>Harbour = newArrayList<Instr>();111 public static final Symbol Harbour = new Symbol(); 114 112 static { 115 113 Harbour.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 116 114 Harbour.add(new Instr(Prim.FILL, new Color(0xa30075))); 117 115 Harbour.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-75,-75,150,150))); 118 Harbour.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 1.0, 0, 0, null, null))); 116 Harbour.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 1.0, 0, 0, null, null))); 119 117 } 120 public static final ArrayList<Instr>HarbourMaster = newArrayList<Instr>();118 public static final Symbol HarbourMaster = new Symbol(); 121 119 static { 122 120 HarbourMaster.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 123 121 HarbourMaster.add(new Instr(Prim.FILL, Color.black)); 124 122 HarbourMaster.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-35,-50,70,100))); 125 HarbourMaster.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Anchor, 0.6, 0, 0, null, null))); 123 HarbourMaster.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 0.6, 0, 0, null, null))); 126 124 } 127 public static final ArrayList<Instr>LandingSteps = newArrayList<Instr>();125 public static final Symbol LandingSteps = new Symbol(); 128 126 static { 129 127 LandingSteps.add(new Instr(Prim.FILL, new Color(0xa30075))); … … 132 130 LandingSteps.add(new Instr(Prim.PGON, p)); 133 131 } 134 public static final ArrayList<Instr>Lock_Gate = newArrayList<Instr>();135 public static final ArrayList<Instr>Lock = newArrayList<Instr>();136 public static final ArrayList<Instr>Marina = newArrayList<Instr>();132 public static final Symbol Lock_Gate = new Symbol(); 133 public static final Symbol Lock = new Symbol(); 134 public static final Symbol Marina = new Symbol(); 137 135 static { 138 136 Marina.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 139 137 Marina.add(new Instr(Prim.FILL, new Color(0xa30075))); 140 Marina.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Yacht, 1.0, 0, 0, null, null))); 138 Marina.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null))); 141 139 Marina.add(new Instr(Prim.EARC, new Arc2D.Double(-80.0,-80.0,160.0,160.0,215.0,-250.0,Arc2D.OPEN))); 142 140 } 143 public static final ArrayList<Instr>MarinaNF = newArrayList<Instr>();141 public static final Symbol MarinaNF = new Symbol(); 144 142 static { 145 143 MarinaNF.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 146 144 MarinaNF.add(new Instr(Prim.FILL, new Color(0xa30075))); 147 MarinaNF.add(new Instr(Prim.SYMB, new Symbols.Symbol(Harbours.Yacht, 1.0, 0, 0, null, null))); 145 MarinaNF.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null))); 148 146 } 149 public static final ArrayList<Instr>PortCrane = newArrayList<Instr>();147 public static final Symbol PortCrane = new Symbol(); 150 148 static { 151 149 PortCrane.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 154 152 PortCrane.add(new Instr(Prim.LINE, new Line2D.Double(0,0,0,-60))); 155 153 } 156 public static final ArrayList<Instr>Post = newArrayList<Instr>();154 public static final Symbol Post = new Symbol(); 157 155 static { 158 156 Post.add(new Instr(Prim.FILL, Color.black)); 159 157 Post.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-10,-10,20,20))); 160 158 } 161 public static final ArrayList<Instr>SignalStation = newArrayList<Instr>();159 public static final Symbol SignalStation = new Symbol(); 162 160 static { 163 161 SignalStation.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); … … 166 164 SignalStation.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-4,-4,8,8))); 167 165 } 168 public static final ArrayList<Instr>TideGauge = newArrayList<Instr>();166 public static final Symbol TideGauge = new Symbol(); 169 167 static { 170 168 TideGauge.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.