Changeset 29198 in osm for applications/editors/josm/plugins/smed2/src/symbols/Landmarks.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/Landmarks.java
r29186 r29198 26 26 private static final Symbol Base = new Symbol(); 27 27 static { 28 Base.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));28 Base.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 29 29 Base.add(new Instr(Prim.FILL, Color.black)); 30 30 Base.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20))); … … 36 36 static { 37 37 Chimney.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 38 Chimney.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));38 Chimney.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 39 39 Chimney.add(new Instr(Prim.FILL, Color.black)); 40 40 Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0.0); p.lineTo(-10.0,-120.0); p.lineTo(10.0,-120.0); p.lineTo(25.0,0.0); … … 56 56 public static final Symbol ChurchTower = new Symbol(); 57 57 static { 58 ChurchTower.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));58 ChurchTower.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 59 59 ChurchTower.add(new Instr(Prim.FILL, Color.black)); 60 60 ChurchTower.add(new Instr(Prim.RECT, new Rectangle2D.Double(-36,-36,72,72))); … … 64 64 static { 65 65 Cross.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 66 Cross.add(new Instr(Prim.STRK, new BasicStroke(6 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));66 Cross.add(new Instr(Prim.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 67 67 Cross.add(new Instr(Prim.FILL, Color.black)); 68 68 Cross.add(new Instr(Prim.LINE, new Line2D.Double(0,-10,0,-150))); … … 72 72 static { 73 73 DishAerial.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 74 DishAerial.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)));74 DishAerial.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 75 75 DishAerial.add(new Instr(Prim.FILL, Color.black)); 76 76 Path2D.Double p = new Path2D.Double(); p.moveTo(-7.8,-6.0); p.lineTo(0.0,-62.0); p.lineTo(7.8,-6.0); p.moveTo(18.0,-109.0); p.lineTo(25.0,-113.0); … … 80 80 public static final Symbol Dome = new Symbol(); 81 81 static { 82 Dome.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));82 Dome.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 83 83 Dome.add(new Instr(Prim.FILL, Color.black)); 84 84 Dome.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-36,-36,72,72))); … … 88 88 static { 89 89 Flagstaff.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 90 Flagstaff.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));90 Flagstaff.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 91 91 Flagstaff.add(new Instr(Prim.FILL, Color.black)); 92 92 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0,-10.0); p.lineTo(0.0,-150.0); p.moveTo(0.0,-140.0); p.lineTo(40.0,-140.0); p.lineTo(40.0,-100.0); p.lineTo(0.0,-100.0); … … 96 96 static { 97 97 FlareStack.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 98 FlareStack.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));98 FlareStack.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 99 99 FlareStack.add(new Instr(Prim.FILL, Color.black)); 100 100 Path2D.Double p = new Path2D.Double(); p.moveTo(-7.8,-6.0); p.lineTo(-7.8,-100.0); p.lineTo(7.8,-100.0); p.lineTo(7.8,-6.0); 101 101 FlareStack.add(new Instr(Prim.PLIN, p)); 102 FlareStack.add(new Instr(Prim.STRK, new BasicStroke(2 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));102 FlareStack.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND))); 103 103 p = new Path2D.Double(); p.moveTo(21.6,-169.6); p.curveTo(-22.0,-132.4,-27.4,-103.5,3.0,-100.0); p.curveTo(39.0,-118.0,-4.0,-141.0,21.6,-169.6); 104 104 FlareStack.add(new Instr(Prim.PLIN, p)); … … 107 107 static { 108 108 LandTower.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 109 LandTower.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));109 LandTower.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 110 110 LandTower.add(new Instr(Prim.FILL, Color.black)); 111 111 LandTower.add(new Instr(Prim.LINE, new Line2D.Double(-25,0,-15,-120))); … … 116 116 static { 117 117 Mast.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 118 Mast.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)));118 Mast.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 119 119 Mast.add(new Instr(Prim.FILL, Color.black)); 120 120 Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0.0); p.lineTo(0.0,-150.0); p.lineTo(25.0,0.0); … … 124 124 static { 125 125 Monument.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 126 Monument.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));126 Monument.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 127 127 Monument.add(new Instr(Prim.FILL, Color.black)); 128 128 Monument.add(new Instr(Prim.LINE, new Line2D.Double(-25,0,-15,-105))); … … 132 132 public static final Symbol Platform = new Symbol(); 133 133 static { 134 Platform.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));134 Platform.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 135 135 Platform.add(new Instr(Prim.FILL, Color.black)); 136 136 Platform.add(new Instr(Prim.RECT, new Rectangle2D.Double(-48,-48,96,96))); … … 139 139 public static final Symbol RadioTV = new Symbol(); 140 140 static { 141 RadioTV.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)));141 RadioTV.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL))); 142 142 RadioTV.add(new Instr(Prim.FILL, Color.black)); 143 143 RadioTV.add(new Instr(Prim.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,45.0,-90.0,Arc2D.OPEN))); … … 148 148 public static final Symbol Spire = new Symbol(); 149 149 static { 150 Spire.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));150 Spire.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 151 151 Spire.add(new Instr(Prim.FILL, Color.black)); 152 152 Spire.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-25,-25,50,50))); … … 156 156 static { 157 157 Minaret.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Spire, 1.0, 0, 0, null, null))); 158 Minaret.add(new Instr(Prim.STRK, new BasicStroke(6 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));158 Minaret.add(new Instr(Prim.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 159 159 Minaret.add(new Instr(Prim.LINE, new Line2D.Double(0,-25,0,-50))); 160 Minaret.add(new Instr(Prim.STRK, new BasicStroke(6 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));160 Minaret.add(new Instr(Prim.STRK, new BasicStroke(6, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 161 161 Minaret.add(new Instr(Prim.EARC, new Arc2D.Double(-40.0,-110.0,80.0,60.0,180.0,180.0,Arc2D.OPEN))); 162 162 } 163 163 public static final Symbol Temple = new Symbol(); 164 164 static { 165 Temple.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));165 Temple.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 166 166 Temple.add(new Instr(Prim.RECT, new Rectangle2D.Double(-25,-15,50,30))); 167 Temple.add(new Instr(Prim.STRK, new BasicStroke(2 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));167 Temple.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 168 168 Temple.add(new Instr(Prim.LINE, new Line2D.Double(-35,-21,35,21))); 169 169 Temple.add(new Instr(Prim.LINE, new Line2D.Double(-35,21,35,-21))); … … 172 172 static { 173 173 WaterTower.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 174 WaterTower.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));174 WaterTower.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 175 175 WaterTower.add(new Instr(Prim.FILL, Color.black)); 176 176 WaterTower.add(new Instr(Prim.LINE, new Line2D.Double(-25,0,-15,-120))); … … 181 181 static { 182 182 WindMotor.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 183 WindMotor.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));183 WindMotor.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 184 184 WindMotor.add(new Instr(Prim.FILL, Color.black)); 185 185 WindMotor.add(new Instr(Prim.LINE, new Line2D.Double(0,-10,0,-90))); … … 190 190 public static final Symbol Windmill = new Symbol(); 191 191 static { 192 Windmill.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));192 Windmill.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 193 193 Windmill.add(new Instr(Prim.FILL, Color.black)); 194 194 Windmill.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-12,-12,24,24))); … … 199 199 static { 200 200 Windsock.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 201 Windsock.add(new Instr(Prim.STRK, new BasicStroke(4 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));201 Windsock.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 202 202 Windsock.add(new Instr(Prim.FILL, Color.black)); 203 203 Windsock.add(new Instr(Prim.LINE, new Line2D.Double(0,-10,0,-100))); 204 Windsock.add(new Instr(Prim.STRK, new BasicStroke(8 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));204 Windsock.add(new Instr(Prim.STRK, new BasicStroke(8, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 205 205 Windsock.add(new Instr(Prim.LINE, new Line2D.Double(0,-100,0,-150))); 206 Windsock.add(new Instr(Prim.STRK, new BasicStroke(2 .0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)));206 Windsock.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND))); 207 207 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0,-100.0); p.lineTo(10.0,-100.0); p.lineTo(10.0,-150.0); p.lineTo(0.0,-150.0); 208 208 p.moveTo(10.0,-150.0); p.lineTo(50.0,-145.0); p.lineTo(120.0,-70.0); p.quadTo(120.0,-55.0,105.0,-55.0);
Note:
See TracChangeset
for help on using the changeset viewer.