Ignore:
Timestamp:
2012-12-23T22:30:33+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/symbols/Landmarks.java

    r29112 r29113  
    1212import java.awt.BasicStroke;
    1313import java.awt.Color;
     14import java.awt.geom.Arc2D;
    1415import java.awt.geom.Ellipse2D;
    1516import java.awt.geom.Line2D;
     
    5051                ChurchTower.add(new Instr(Prim.FILL, Color.black));
    5152                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)));
    5254        }
    5355        public static final ArrayList<Instr> Cross = new ArrayList<Instr>();
    5456        public static final ArrayList<Instr> DishAerial = new ArrayList<Instr>();
    5557        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        }
    5664        public static final ArrayList<Instr> Flagstaff = new ArrayList<Instr>();
    5765        public static final ArrayList<Instr> FlareStack = new ArrayList<Instr>();
    5866        public static final ArrayList<Instr> LandTower = new ArrayList<Instr>();
    5967        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        }
    6077        public static final ArrayList<Instr> Minaret = new ArrayList<Instr>();
    6178        public static final ArrayList<Instr> Monument = new ArrayList<Instr>();
    6279        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        }
    6394        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        }
    64101        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        }
    65108        public static final ArrayList<Instr> Temple = new ArrayList<Instr>();
    66109        public static final ArrayList<Instr> WaterTower = new ArrayList<Instr>();
Note: See TracChangeset for help on using the changeset viewer.