Changeset 29112 in osm for applications/editors
- Timestamp:
- 2012-12-23T20:13:18+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Landmarks.java
r29109 r29112 10 10 package symbols; 11 11 12 import java.awt.BasicStroke; 13 import java.awt.Color; 14 import java.awt.geom.Ellipse2D; 15 import java.awt.geom.Line2D; 16 import java.awt.geom.Path2D; 17 import java.awt.geom.Rectangle2D; 12 18 import java.util.ArrayList; 13 19 14 20 import symbols.Symbols.Instr; 21 import symbols.Symbols.Prim; 15 22 16 23 public class Landmarks { 17 24 public static final ArrayList<Instr> Chimney = new ArrayList<Instr>(); 25 static { 26 Chimney.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 27 Chimney.add(new Instr(Prim.FILL, Color.black)); 28 Chimney.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20))); 29 Chimney.add(new Instr(Prim.LINE, new Line2D.Double(-35,0,-10,0))); 30 Chimney.add(new Instr(Prim.LINE, new Line2D.Double(10,0,35,0))); 31 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); 32 p.moveTo(-10.0,-128.0); p.curveTo(-13.0,-147.0,15.0,-159.0,20.0,-148.0); 33 p.moveTo(16.0,-152.3); p.curveTo(58.0,-194.0,98.0,-87.0,16.0,-132.0); 34 p.moveTo(11.0,-128.0); p.curveTo(13.4,-132.0,20.0,-132.0,20.0,-136.0); 35 Chimney.add(new Instr(Prim.PLIN, p)); 36 } 18 37 public static final ArrayList<Instr> Church = new ArrayList<Instr>(); 38 static { 39 Church.add(new Instr(Prim.FILL, Color.black)); 40 Path2D.Double p = new Path2D.Double(); p.moveTo(10.0,-10.0); p.lineTo(37.0,-10.0); p.quadTo(48.0,-10.0,48.0,-21.0); p.lineTo(50.0,-21.0); p.lineTo(50.0,21.0); 41 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); p.quadTo(10.0,48.0,21.0,48.0); p.lineTo(21.0,50.0); 42 p.lineTo(-21.0,50.0); p.lineTo(-21.0,48.0); p.quadTo(-10.0,48.0,-10.0,37.0); p.lineTo(-10.0,10.0); p.lineTo(-37.0,10.0); p.quadTo(-48.0,10.0,-48.0,21.0); 43 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); 44 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(); 45 Church.add(new Instr(Prim.PGON, p)); 46 } 19 47 public static final ArrayList<Instr> ChurchTower = new ArrayList<Instr>(); 48 static { 49 ChurchTower.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 50 ChurchTower.add(new Instr(Prim.FILL, Color.black)); 51 ChurchTower.add(new Instr(Prim.RECT, new Rectangle2D.Double(-36,-36,72,72))); 52 } 20 53 public static final ArrayList<Instr> Cross = new ArrayList<Instr>(); 21 54 public static final ArrayList<Instr> DishAerial = new ArrayList<Instr>();
Note:
See TracChangeset
for help on using the changeset viewer.