Changeset 29128 in osm for applications/editors/josm
- Timestamp:
- 2012-12-27T06:49:42+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Areas.java
r29127 r29128 135 135 } 136 136 public static final ArrayList<Instr> WindFarm = new ArrayList<Instr>(); 137 static { 138 WindFarm.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 139 WindFarm.add(new Instr(Prim.FILL, Color.black)); 140 WindFarm.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-100,-100,200,200))); 141 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(-35,50,35,50))); 142 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(0,50,0,-27.5))); 143 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(0,-27.5,30,-27.5))); 144 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(0,-27.5,-13.8,-3.8))); 145 WindFarm.add(new Instr(Prim.LINE, new Line2D.Double(0,-27.5,-13.8,-53.6))); 146 } 137 147 public static final ArrayList<Instr> WreckD = new ArrayList<Instr>(); 148 static { 149 WreckD.add(new Instr(Prim.FILL, new Color(0x80c0ff))); 150 WreckD.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-50,-40,100,80))); 151 WreckD.add(new Instr(Prim.STRK, new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1, new float[]{5,5}, 0))); 152 WreckD.add(new Instr(Prim.FILL, Color.black)); 153 WreckD.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-50,-40,100,80))); 154 WreckD.add(new Instr(Prim.STRK, new BasicStroke(5.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 155 WreckD.add(new Instr(Prim.LINE, new Line2D.Double(-40,0,40,0))); 156 WreckD.add(new Instr(Prim.LINE, new Line2D.Double(0,-30,0,30))); 157 WreckD.add(new Instr(Prim.LINE, new Line2D.Double(-20,-15,-20,15))); 158 WreckD.add(new Instr(Prim.LINE, new Line2D.Double(20,-15,20,15))); 159 } 138 160 public static final ArrayList<Instr> WreckND = new ArrayList<Instr>(); 161 static { 162 WreckND.add(new Instr(Prim.STRK, new BasicStroke(5.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 163 WreckND.add(new Instr(Prim.FILL, Color.black)); 164 WreckND.add(new Instr(Prim.LINE, new Line2D.Double(-40,0,40,0))); 165 WreckND.add(new Instr(Prim.LINE, new Line2D.Double(0,-30,0,30))); 166 WreckND.add(new Instr(Prim.LINE, new Line2D.Double(-20,-15,-20,15))); 167 WreckND.add(new Instr(Prim.LINE, new Line2D.Double(20,-15,20,15))); 168 } 139 169 public static final ArrayList<Instr> WreckS = new ArrayList<Instr>(); 170 static { 171 WreckS.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 172 WreckS.add(new Instr(Prim.FILL, Color.black)); 173 WreckS.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-6,-6,12,12))); 174 WreckS.add(new Instr(Prim.LINE, new Line2D.Double(-40,0,-6,0))); 175 WreckS.add(new Instr(Prim.LINE, new Line2D.Double(40,0,6,0))); 176 Path2D.Double p = new Path2D.Double(); p.moveTo(-30,0); p.lineTo(-40,-25); p.lineTo(-0.3,-12.6); p.lineTo(13.7,-37.7); p.lineTo(16.3,-36.3); 177 p.lineTo(2.7,-11.6); p.lineTo(37.5,0); p.lineTo(6,0); p.curveTo(5.6,-8,-5.6,-8,-6,0); p.closePath(); 178 WreckS.add(new Instr(Prim.PGON, p)); 179 } 140 180 }
Note:
See TracChangeset
for help on using the changeset viewer.