Changeset 30215 in osm for applications/editors/josm/plugins/smed2/src/symbols/Landmarks.java
- Timestamp:
- 2014-01-19T14:52:39+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Landmarks.java
r30033 r30215 21 21 private static final Symbol Base = new Symbol(); 22 22 static { 23 Base.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));24 Base.add(new Instr( Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));25 Base.add(new Instr( Prim.LINE, new Line2D.Double(-35,0,-10,0)));26 Base.add(new Instr( Prim.LINE, new Line2D.Double(10,0,35,0)));23 Base.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 24 Base.add(new Instr(Form.ELPS, new Ellipse2D.Double(-10,-10,20,20))); 25 Base.add(new Instr(Form.LINE, new Line2D.Double(-35,0,-10,0))); 26 Base.add(new Instr(Form.LINE, new Line2D.Double(10,0,35,0))); 27 27 } 28 28 29 29 public static final Symbol Chimney = new Symbol(); 30 30 static { 31 Chimney.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));32 Chimney.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));31 Chimney.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 32 Chimney.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 33 33 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); 34 34 p.moveTo(-10.0,-128.0); p.curveTo(-13.0,-147.0,15.0,-159.0,20.0,-148.0); 35 35 p.moveTo(16.0,-152.3); p.curveTo(58.0,-194.0,98.0,-87.0,16.0,-132.0); 36 36 p.moveTo(11.0,-128.0); p.curveTo(13.4,-132.0,20.0,-132.0,20.0,-136.0); 37 Chimney.add(new Instr( Prim.PLIN, p));37 Chimney.add(new Instr(Form.PLIN, p)); 38 38 } 39 39 public static final Symbol Church = new Symbol(); … … 44 44 p.lineTo(-50.0,21.0); p.lineTo(-50.0,-21.0); p.lineTo(-48.0,-21.0); p.quadTo(-48.0,-10.0,-37.0,-10.0); p.lineTo(-10.0,-10.0); p.lineTo(-10.0,-37.0); 45 45 p.quadTo(-10.0,-48.0,-21.0,-48.0); p.lineTo(-21.0,-50.0); p.lineTo(21.0,-50.0); p.lineTo(21.0,-48.0); p.quadTo(10.0,-48.0,10.0,-37.0); p.closePath(); 46 Church.add(new Instr( Prim.PGON, p));46 Church.add(new Instr(Form.PGON, p)); 47 47 } 48 48 public static final Symbol ChurchTower = new Symbol(); 49 49 static { 50 ChurchTower.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));51 ChurchTower.add(new Instr( Prim.RECT, new Rectangle2D.Double(-36,-36,72,72)));52 ChurchTower.add(new Instr( Prim.ELPS, new Ellipse2D.Double(-2,-2,4,4)));50 ChurchTower.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 51 ChurchTower.add(new Instr(Form.RECT, new Rectangle2D.Double(-36,-36,72,72))); 52 ChurchTower.add(new Instr(Form.ELPS, new Ellipse2D.Double(-2,-2,4,4))); 53 53 } 54 54 public static final Symbol Cross = new Symbol(); 55 55 static { 56 Cross.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));57 Cross.add(new Instr( Prim.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));58 Cross.add(new Instr( Prim.LINE, new Line2D.Double(0,-10,0,-150)));59 Cross.add(new Instr( Prim.LINE, new Line2D.Double(-30,-115,30,-115)));56 Cross.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 57 Cross.add(new Instr(Form.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 58 Cross.add(new Instr(Form.LINE, new Line2D.Double(0,-10,0,-150))); 59 Cross.add(new Instr(Form.LINE, new Line2D.Double(-30,-115,30,-115))); 60 60 } 61 61 public static final Symbol DishAerial = new Symbol(); 62 62 static { 63 DishAerial.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));64 DishAerial.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)));63 DishAerial.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 64 DishAerial.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 65 65 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); 66 66 p.moveTo(-9.5,-157.0); p.curveTo(-60.7,-125.5,-16.5,-33.9,44.9,-61.7); p.closePath(); 67 DishAerial.add(new Instr( Prim.PLIN, p));67 DishAerial.add(new Instr(Form.PLIN, p)); 68 68 } 69 69 public static final Symbol Dome = new Symbol(); 70 70 static { 71 Dome.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));72 Dome.add(new Instr( Prim.ELPS, new Ellipse2D.Double(-36,-36,72,72)));73 Dome.add(new Instr( Prim.RSHP, new Ellipse2D.Double(-4,-4,8,8)));71 Dome.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 72 Dome.add(new Instr(Form.ELPS, new Ellipse2D.Double(-36,-36,72,72))); 73 Dome.add(new Instr(Form.RSHP, new Ellipse2D.Double(-4,-4,8,8))); 74 74 } 75 75 public static final Symbol Flagstaff = new Symbol(); 76 76 static { 77 Flagstaff.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));78 Flagstaff.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));77 Flagstaff.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 78 Flagstaff.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 79 79 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); 80 Flagstaff.add(new Instr( Prim.PLIN, p));80 Flagstaff.add(new Instr(Form.PLIN, p)); 81 81 } 82 82 public static final Symbol FlareStack = new Symbol(); 83 83 static { 84 FlareStack.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));85 FlareStack.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));84 FlareStack.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 85 FlareStack.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 86 86 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); 87 FlareStack.add(new Instr( Prim.PLIN, p));88 FlareStack.add(new Instr( Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));87 FlareStack.add(new Instr(Form.PLIN, p)); 88 FlareStack.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND))); 89 89 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); 90 FlareStack.add(new Instr( Prim.PLIN, p));90 FlareStack.add(new Instr(Form.PLIN, p)); 91 91 } 92 92 public static final Symbol LandTower = new Symbol(); 93 93 static { 94 LandTower.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));95 LandTower.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));96 LandTower.add(new Instr( Prim.LINE, new Line2D.Double(-25,0,-15,-120)));97 LandTower.add(new Instr( Prim.LINE, new Line2D.Double(25,0,15,-120)));98 LandTower.add(new Instr( Prim.RECT, new Rectangle2D.Double(-15,-150,30,30)));94 LandTower.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 95 LandTower.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 96 LandTower.add(new Instr(Form.LINE, new Line2D.Double(-25,0,-15,-120))); 97 LandTower.add(new Instr(Form.LINE, new Line2D.Double(25,0,15,-120))); 98 LandTower.add(new Instr(Form.RECT, new Rectangle2D.Double(-15,-150,30,30))); 99 99 } 100 100 public static final Symbol Mast = new Symbol(); 101 101 static { 102 Mast.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));103 Mast.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)));102 Mast.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 103 Mast.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 104 104 Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0.0); p.lineTo(0.0,-150.0); p.lineTo(25.0,0.0); 105 Mast.add(new Instr( Prim.PLIN, p));105 Mast.add(new Instr(Form.PLIN, p)); 106 106 } 107 107 public static final Symbol Monument = new Symbol(); 108 108 static { 109 Monument.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));110 Monument.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));111 Monument.add(new Instr( Prim.LINE, new Line2D.Double(-25,0,-15,-105)));112 Monument.add(new Instr( Prim.LINE, new Line2D.Double(25,0,15,-105)));113 Monument.add(new Instr( Prim.EARC, new Arc2D.Double(-25.0,-150.0,50.0,50.0,233.0,-285.0,Arc2D.OPEN)));109 Monument.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 110 Monument.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 111 Monument.add(new Instr(Form.LINE, new Line2D.Double(-25,0,-15,-105))); 112 Monument.add(new Instr(Form.LINE, new Line2D.Double(25,0,15,-105))); 113 Monument.add(new Instr(Form.EARC, new Arc2D.Double(-25.0,-150.0,50.0,50.0,233.0,-285.0,Arc2D.OPEN))); 114 114 } 115 115 public static final Symbol Platform = new Symbol(); 116 116 static { 117 Platform.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));118 Platform.add(new Instr( Prim.RECT, new Rectangle2D.Double(-48,-48,96,96)));119 Platform.add(new Instr( Prim.RSHP, new Ellipse2D.Double(-4,-4,8,8)));117 Platform.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 118 Platform.add(new Instr(Form.RECT, new Rectangle2D.Double(-48,-48,96,96))); 119 Platform.add(new Instr(Form.RSHP, new Ellipse2D.Double(-4,-4,8,8))); 120 120 } 121 121 public static final Symbol RadioTV = new Symbol(); 122 122 static { 123 RadioTV.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL)));124 RadioTV.add(new Instr( Prim.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,45.0,-90.0,Arc2D.OPEN)));125 RadioTV.add(new Instr( Prim.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,45.0,-90.0,Arc2D.OPEN)));126 RadioTV.add(new Instr( Prim.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,225.0,-90.0,Arc2D.OPEN)));127 RadioTV.add(new Instr( Prim.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,225.0,-90.0,Arc2D.OPEN)));123 RadioTV.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL))); 124 RadioTV.add(new Instr(Form.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,45.0,-90.0,Arc2D.OPEN))); 125 RadioTV.add(new Instr(Form.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,45.0,-90.0,Arc2D.OPEN))); 126 RadioTV.add(new Instr(Form.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,225.0,-90.0,Arc2D.OPEN))); 127 RadioTV.add(new Instr(Form.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,225.0,-90.0,Arc2D.OPEN))); 128 128 } 129 129 public static final Symbol Spire = new Symbol(); 130 130 static { 131 Spire.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));132 Spire.add(new Instr( Prim.ELPS, new Ellipse2D.Double(-25,-25,50,50)));133 Spire.add(new Instr( Prim.RSHP, new Ellipse2D.Double(-4,-4,8,8)));131 Spire.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 132 Spire.add(new Instr(Form.ELPS, new Ellipse2D.Double(-25,-25,50,50))); 133 Spire.add(new Instr(Form.RSHP, new Ellipse2D.Double(-4,-4,8,8))); 134 134 } 135 135 public static final Symbol Minaret = new Symbol(); 136 136 static { 137 Minaret.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Spire, 1.0, 0, 0, null, null)));138 Minaret.add(new Instr( Prim.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));139 Minaret.add(new Instr( Prim.LINE, new Line2D.Double(0,-25,0,-50)));140 Minaret.add(new Instr( Prim.STRK, new BasicStroke(6, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));141 Minaret.add(new Instr( Prim.EARC, new Arc2D.Double(-40.0,-110.0,80.0,60.0,180.0,180.0,Arc2D.OPEN)));137 Minaret.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Spire, 1.0, 0, 0, null, null))); 138 Minaret.add(new Instr(Form.STRK, new BasicStroke(6, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 139 Minaret.add(new Instr(Form.LINE, new Line2D.Double(0,-25,0,-50))); 140 Minaret.add(new Instr(Form.STRK, new BasicStroke(6, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 141 Minaret.add(new Instr(Form.EARC, new Arc2D.Double(-40.0,-110.0,80.0,60.0,180.0,180.0,Arc2D.OPEN))); 142 142 } 143 143 public static final Symbol Temple = new Symbol(); 144 144 static { 145 Temple.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));146 Temple.add(new Instr( Prim.RECT, new Rectangle2D.Double(-25,-15,50,30)));147 Temple.add(new Instr( Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));148 Temple.add(new Instr( Prim.LINE, new Line2D.Double(-35,-21,35,21)));149 Temple.add(new Instr( Prim.LINE, new Line2D.Double(-35,21,35,-21)));145 Temple.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 146 Temple.add(new Instr(Form.RECT, new Rectangle2D.Double(-25,-15,50,30))); 147 Temple.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 148 Temple.add(new Instr(Form.LINE, new Line2D.Double(-35,-21,35,21))); 149 Temple.add(new Instr(Form.LINE, new Line2D.Double(-35,21,35,-21))); 150 150 } 151 151 public static final Symbol WaterTower = new Symbol(); 152 152 static { 153 WaterTower.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));154 WaterTower.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));155 WaterTower.add(new Instr( Prim.LINE, new Line2D.Double(-25,0,-15,-120)));156 WaterTower.add(new Instr( Prim.LINE, new Line2D.Double(25,0,15,-120)));157 WaterTower.add(new Instr( Prim.RECT, new Rectangle2D.Double(-25,-150,50,30)));153 WaterTower.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 154 WaterTower.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 155 WaterTower.add(new Instr(Form.LINE, new Line2D.Double(-25,0,-15,-120))); 156 WaterTower.add(new Instr(Form.LINE, new Line2D.Double(25,0,15,-120))); 157 WaterTower.add(new Instr(Form.RECT, new Rectangle2D.Double(-25,-150,50,30))); 158 158 } 159 159 public static final Symbol WindMotor = new Symbol(); 160 160 static { 161 WindMotor.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));162 WindMotor.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));163 WindMotor.add(new Instr( Prim.LINE, new Line2D.Double(0,-10,0,-90)));164 WindMotor.add(new Instr( Prim.LINE, new Line2D.Double(0,-90,30,-90)));165 WindMotor.add(new Instr( Prim.LINE, new Line2D.Double(0,-90,-14,-116.6)));166 WindMotor.add(new Instr( Prim.LINE, new Line2D.Double(0,-90,-14.3,-66.7)));161 WindMotor.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 162 WindMotor.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 163 WindMotor.add(new Instr(Form.LINE, new Line2D.Double(0,-10,0,-90))); 164 WindMotor.add(new Instr(Form.LINE, new Line2D.Double(0,-90,30,-90))); 165 WindMotor.add(new Instr(Form.LINE, new Line2D.Double(0,-90,-14,-116.6))); 166 WindMotor.add(new Instr(Form.LINE, new Line2D.Double(0,-90,-14.3,-66.7))); 167 167 } 168 168 public static final Symbol Windmill = new Symbol(); 169 169 static { 170 Windmill.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));171 Windmill.add(new Instr( Prim.ELPS, new Ellipse2D.Double(-12,-12,24,24)));172 Windmill.add(new Instr( Prim.LINE, new Line2D.Double(-30,-42,30,10)));173 Windmill.add(new Instr( Prim.LINE, new Line2D.Double(-30,10,30,-42)));170 Windmill.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 171 Windmill.add(new Instr(Form.ELPS, new Ellipse2D.Double(-12,-12,24,24))); 172 Windmill.add(new Instr(Form.LINE, new Line2D.Double(-30,-42,30,10))); 173 Windmill.add(new Instr(Form.LINE, new Line2D.Double(-30,10,30,-42))); 174 174 } 175 175 public static final Symbol Windsock = new Symbol(); 176 176 static { 177 Windsock.add(new Instr( Prim.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null)));178 Windsock.add(new Instr( Prim.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));179 Windsock.add(new Instr( Prim.LINE, new Line2D.Double(0,-10,0,-100)));180 Windsock.add(new Instr( Prim.STRK, new BasicStroke(8, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));181 Windsock.add(new Instr( Prim.LINE, new Line2D.Double(0,-100,0,-150)));182 Windsock.add(new Instr( Prim.STRK, new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)));177 Windsock.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Landmarks.Base, 1.0, 0, 0, null, null))); 178 Windsock.add(new Instr(Form.STRK, new BasicStroke(4, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 179 Windsock.add(new Instr(Form.LINE, new Line2D.Double(0,-10,0,-100))); 180 Windsock.add(new Instr(Form.STRK, new BasicStroke(8, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 181 Windsock.add(new Instr(Form.LINE, new Line2D.Double(0,-100,0,-150))); 182 Windsock.add(new Instr(Form.STRK, new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND))); 183 183 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); 184 184 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); 185 185 p.lineTo(55,-95); p.lineTo(40,-102); p.lineTo(10,-100); p.moveTo(40,-102); p.lineTo(50,-120); p.moveTo(55,-95); p.lineTo(75,-97); 186 Windsock.add(new Instr( Prim.PLIN, p));186 Windsock.add(new Instr(Form.PLIN, p)); 187 187 } 188 188
Note:
See TracChangeset
for help on using the changeset viewer.