Changeset 29198 in osm for applications/editors/josm/plugins/smed2/src/symbols/Harbours.java
- Timestamp:
- 2013-01-14T19:11:27+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Harbours.java
r29186 r29198 21 21 static { 22 22 Anchor.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120))); 23 Anchor.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));23 Anchor.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 24 24 Anchor.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-59,20,20))); 25 25 Path2D.Double p = new Path2D.Double(); p.moveTo(23.0,-40.0); p.lineTo(23.0,-30.0); p.lineTo(6.0,-30.0); p.lineTo(7.0,31.0); p.quadTo(21.0,29.0,31.0,22.0); … … 31 31 public static final Symbol Yacht = new Symbol(); 32 32 static { 33 Yacht.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));33 Yacht.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 34 34 Path2D.Double p = new Path2D.Double(); p.moveTo(-65.0,50.0); p.curveTo(-36.0,97.0,36.0,97.0,65.0,50.0); p.lineTo(3.0,50.0); p.lineTo(3.0,40.0); p.lineTo(55.0,30.0); 35 35 p.curveTo(32.0,4.0,25.0,-15.0,26.0,-52.0); p.lineTo(1.5,-40.0); p.lineTo(1.0,-64.0); p.lineTo(-2.0,-64.0); p.lineTo(-4.0,50.0); p.closePath(); … … 45 45 static { 46 46 AnchorBerth.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchorage, 1.0, 0, 0, null, null))); 47 AnchorBerth.add(new Instr(Prim.STRK, new BasicStroke(2 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));47 AnchorBerth.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 48 48 AnchorBerth.add(new Instr(Prim.FILL, Color.white)); 49 49 Ellipse2D.Double s = new Ellipse2D.Double(-25,-25,50,50); … … 54 54 public static final Symbol Bollard = new Symbol(); 55 55 static { 56 Bollard.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));56 Bollard.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 57 57 Bollard.add(new Instr(Prim.FILL, Color.white)); 58 58 Ellipse2D.Double s = new Ellipse2D.Double(-10,-10,20,20); … … 63 63 public static final Symbol ClearV = new Symbol(); 64 64 static { 65 ClearV.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));65 ClearV.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 66 66 ClearV.add(new Instr(Prim.FILL, Color.white)); 67 67 ClearV.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-30,-30,60,60))); … … 72 72 ClearV.add(new Instr(Prim.LINE, new Line2D.Double(0,25,0,15))); 73 73 } 74 public static final Symbol CoastGStation = new Symbol(); 75 static{ 76 77 } 74 78 public static final Symbol ContainerCrane = new Symbol(); 75 79 static { 76 ContainerCrane.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));80 ContainerCrane.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 77 81 ContainerCrane.add(new Instr(Prim.FILL, Color.black)); 78 82 ContainerCrane.add(new Instr(Prim.RSHP, new Rectangle2D.Double(-15,-65,30,100))); … … 81 85 public static final Symbol DeviationDolphin = new Symbol(); 82 86 static { 83 DeviationDolphin.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));87 DeviationDolphin.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 84 88 DeviationDolphin.add(new Instr(Prim.FILL, Color.black)); 85 89 Path2D.Double p = new Path2D.Double(); p.moveTo(-30.0,0.0); p.lineTo(30.0,0.0); p.moveTo(0.0,0.0); p.lineTo(0.0,-40.0); … … 89 93 public static final Symbol DistanceI = new Symbol(); 90 94 static { 91 DistanceI.add(new Instr(Prim.STRK, new BasicStroke(3 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));95 DistanceI.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 92 96 DistanceI.add(new Instr(Prim.FILL, Color.black)); 93 97 DistanceI.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22))); … … 95 99 public static final Symbol DistanceU = new Symbol(); 96 100 static { 97 DistanceU.add(new Instr(Prim.STRK, new BasicStroke(3 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));101 DistanceU.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 98 102 DistanceU.add(new Instr(Prim.FILL, new Color(0xa30075))); 99 103 DistanceU.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22))); … … 101 105 public static final Symbol Dolphin = new Symbol(); 102 106 static { 103 Dolphin.add(new Instr(Prim.STRK, new BasicStroke(2 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));107 Dolphin.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 104 108 Dolphin.add(new Instr(Prim.FILL, new Color(0xffd400))); 105 109 Path2D.Double p = new Path2D.Double(); p.moveTo(3.8,-9.2); p.lineTo(9.2,-3.8); p.lineTo(9.2,3.8); p.lineTo(3.8,9.2); … … 111 115 public static final Symbol Harbour = new Symbol(); 112 116 static { 113 Harbour.add(new Instr(Prim.STRK, new BasicStroke(15 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));117 Harbour.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 114 118 Harbour.add(new Instr(Prim.FILL, new Color(0xa30075))); 115 119 Harbour.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-75,-75,150,150))); … … 118 122 public static final Symbol HarbourMaster = new Symbol(); 119 123 static { 120 HarbourMaster.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));124 HarbourMaster.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 121 125 HarbourMaster.add(new Instr(Prim.FILL, Color.black)); 122 126 HarbourMaster.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-35,-50,70,100))); … … 134 138 public static final Symbol Marina = new Symbol(); 135 139 static { 136 Marina.add(new Instr(Prim.STRK, new BasicStroke(15 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));140 Marina.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 137 141 Marina.add(new Instr(Prim.FILL, new Color(0xa30075))); 138 142 Marina.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null))); … … 141 145 public static final Symbol MarinaNF = new Symbol(); 142 146 static { 143 MarinaNF.add(new Instr(Prim.STRK, new BasicStroke(15 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));147 MarinaNF.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 144 148 MarinaNF.add(new Instr(Prim.FILL, new Color(0xa30075))); 145 149 MarinaNF.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null))); … … 147 151 public static final Symbol PortCrane = new Symbol(); 148 152 static { 149 PortCrane.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));153 PortCrane.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 150 154 PortCrane.add(new Instr(Prim.FILL, Color.black)); 151 155 PortCrane.add(new Instr(Prim.EARC, new Arc2D.Double(-36.0,-36.0,72.0,72.0,70.0,-320.0,Arc2D.OPEN))); … … 157 161 Post.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-10,-10,20,20))); 158 162 } 163 public static final Symbol RescueStation = new Symbol(); 164 static{ 165 166 } 159 167 public static final Symbol SignalStation = new Symbol(); 160 168 static { 161 SignalStation.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));169 SignalStation.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 162 170 SignalStation.add(new Instr(Prim.FILL, Color.black)); 163 171 SignalStation.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-25,-25,50,50))); … … 166 174 public static final Symbol TideGauge = new Symbol(); 167 175 static { 168 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(3 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));176 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 169 177 TideGauge.add(new Instr(Prim.FILL, Color.black)); 170 178 TideGauge.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20))); … … 172 180 TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(10,0,30,0))); 173 181 TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(0,-10,0,-80))); 174 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));182 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 175 183 TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(-15,-25,15,-25))); 176 184 TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(-25,-45,25,-45)));
Note:
See TracChangeset
for help on using the changeset viewer.