Changeset 29113 in osm for applications/editors/josm/plugins/smed2/src
- Timestamp:
- 2012-12-23T22:30:33+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Landmarks.java
r29112 r29113 12 12 import java.awt.BasicStroke; 13 13 import java.awt.Color; 14 import java.awt.geom.Arc2D; 14 15 import java.awt.geom.Ellipse2D; 15 16 import java.awt.geom.Line2D; … … 50 51 ChurchTower.add(new Instr(Prim.FILL, Color.black)); 51 52 ChurchTower.add(new Instr(Prim.RECT, new Rectangle2D.Double(-36,-36,72,72))); 53 ChurchTower.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-2,-2,4,4))); 52 54 } 53 55 public static final ArrayList<Instr> Cross = new ArrayList<Instr>(); 54 56 public static final ArrayList<Instr> DishAerial = new ArrayList<Instr>(); 55 57 public static final ArrayList<Instr> Dome = new ArrayList<Instr>(); 58 static { 59 Dome.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 60 Dome.add(new Instr(Prim.FILL, Color.black)); 61 Dome.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-36,-36,72,72))); 62 Dome.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-2,-2,4,4))); 63 } 56 64 public static final ArrayList<Instr> Flagstaff = new ArrayList<Instr>(); 57 65 public static final ArrayList<Instr> FlareStack = new ArrayList<Instr>(); 58 66 public static final ArrayList<Instr> LandTower = new ArrayList<Instr>(); 59 67 public static final ArrayList<Instr> Mast = new ArrayList<Instr>(); 68 static { 69 Mast.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 70 Mast.add(new Instr(Prim.FILL, Color.black)); 71 Mast.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20))); 72 Mast.add(new Instr(Prim.LINE, new Line2D.Double(-35,0,-10,0))); 73 Mast.add(new Instr(Prim.LINE, new Line2D.Double(10,0,35,0))); 74 Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0.0); p.lineTo(0.0,-150.0); p.lineTo(25.0,0.0); 75 Mast.add(new Instr(Prim.PLIN, p)); 76 } 60 77 public static final ArrayList<Instr> Minaret = new ArrayList<Instr>(); 61 78 public static final ArrayList<Instr> Monument = new ArrayList<Instr>(); 62 79 public static final ArrayList<Instr> RadioMast = new ArrayList<Instr>(); 80 static { 81 RadioMast.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL))); 82 RadioMast.add(new Instr(Prim.FILL, Color.black)); 83 RadioMast.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20))); 84 RadioMast.add(new Instr(Prim.LINE, new Line2D.Double(-35,0,-10,0))); 85 RadioMast.add(new Instr(Prim.LINE, new Line2D.Double(10,0,35,0))); 86 Path2D.Double p = new Path2D.Double(); p.moveTo(-25.0,0.0); p.lineTo(0.0,-150.0); p.lineTo(25.0,0.0); 87 RadioMast.add(new Instr(Prim.PLIN, p)); 88 RadioMast.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_BEVEL))); 89 RadioMast.add(new Instr(Prim.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,45.0,-90.0,Arc2D.OPEN))); 90 RadioMast.add(new Instr(Prim.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,45.0,-90.0,Arc2D.OPEN))); 91 RadioMast.add(new Instr(Prim.EARC, new Arc2D.Double(-30.0,-180.0,60.0,60.0,225.0,-90.0,Arc2D.OPEN))); 92 RadioMast.add(new Instr(Prim.EARC, new Arc2D.Double(-45.0,-195.0,90.0,90.0,225.0,-90.0,Arc2D.OPEN))); 93 } 63 94 public static final ArrayList<Instr> Platform = new ArrayList<Instr>(); 95 static { 96 Platform.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 97 Platform.add(new Instr(Prim.FILL, Color.black)); 98 Platform.add(new Instr(Prim.RECT, new Rectangle2D.Double(-48,-48,96,96))); 99 Platform.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-2,-2,4,4))); 100 } 64 101 public static final ArrayList<Instr> Spire = new ArrayList<Instr>(); 102 static { 103 Spire.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 104 Spire.add(new Instr(Prim.FILL, Color.black)); 105 Spire.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-25,-25,50,50))); 106 Spire.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-2,-2,4,4))); 107 } 65 108 public static final ArrayList<Instr> Temple = new ArrayList<Instr>(); 66 109 public static final ArrayList<Instr> WaterTower = new ArrayList<Instr>();
Note:
See TracChangeset
for help on using the changeset viewer.