Ignore:
Timestamp:
2013-01-14T19:11:27+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

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

    r29186 r29198  
    2121        static {
    2222                Anchor.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120)));
    23                 Anchor.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     23                Anchor.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    2424                Anchor.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-59,20,20)));
    2525                Path2D.Double p = new Path2D.Double(); p.moveTo(23.0,-40.0); p.lineTo(23.0,-30.0); p.lineTo(6.0,-30.0); p.lineTo(7.0,31.0); p.quadTo(21.0,29.0,31.0,22.0);
     
    3131        public static final Symbol Yacht = new Symbol();
    3232        static {
    33                 Yacht.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     33                Yacht.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    3434                Path2D.Double p = new Path2D.Double(); p.moveTo(-65.0,50.0); p.curveTo(-36.0,97.0,36.0,97.0,65.0,50.0); p.lineTo(3.0,50.0); p.lineTo(3.0,40.0); p.lineTo(55.0,30.0);
    3535                p.curveTo(32.0,4.0,25.0,-15.0,26.0,-52.0); p.lineTo(1.5,-40.0); p.lineTo(1.0,-64.0); p.lineTo(-2.0,-64.0); p.lineTo(-4.0,50.0); p.closePath();
     
    4545        static {
    4646                AnchorBerth.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchorage, 1.0, 0, 0, null, null)));
    47                 AnchorBerth.add(new Instr(Prim.STRK, new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     47                AnchorBerth.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    4848                AnchorBerth.add(new Instr(Prim.FILL, Color.white));
    4949                Ellipse2D.Double s = new Ellipse2D.Double(-25,-25,50,50);
     
    5454        public static final Symbol Bollard = new Symbol();
    5555        static {
    56                 Bollard.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     56                Bollard.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    5757                Bollard.add(new Instr(Prim.FILL, Color.white));
    5858                Ellipse2D.Double s = new Ellipse2D.Double(-10,-10,20,20);
     
    6363        public static final Symbol ClearV = new Symbol();
    6464        static {
    65                 ClearV.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     65                ClearV.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    6666                ClearV.add(new Instr(Prim.FILL, Color.white));
    6767                ClearV.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-30,-30,60,60)));
     
    7272                ClearV.add(new Instr(Prim.LINE, new Line2D.Double(0,25,0,15)));
    7373        }
     74        public static final Symbol CoastGStation = new Symbol();
     75        static{
     76               
     77        }
    7478        public static final Symbol ContainerCrane = new Symbol();
    7579        static {
    76                 ContainerCrane.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     80                ContainerCrane.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    7781                ContainerCrane.add(new Instr(Prim.FILL, Color.black));
    7882                ContainerCrane.add(new Instr(Prim.RSHP, new Rectangle2D.Double(-15,-65,30,100)));
     
    8185        public static final Symbol DeviationDolphin = new Symbol();
    8286        static {
    83                 DeviationDolphin.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     87                DeviationDolphin.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    8488                DeviationDolphin.add(new Instr(Prim.FILL, Color.black));
    8589                Path2D.Double p = new Path2D.Double(); p.moveTo(-30.0,0.0); p.lineTo(30.0,0.0); p.moveTo(0.0,0.0); p.lineTo(0.0,-40.0);
     
    8993        public static final Symbol DistanceI = new Symbol();
    9094        static {
    91                 DistanceI.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     95                DistanceI.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    9296                DistanceI.add(new Instr(Prim.FILL, Color.black));
    9397                DistanceI.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22)));
     
    9599        public static final Symbol DistanceU = new Symbol();
    96100        static {
    97                 DistanceU.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     101                DistanceU.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    98102                DistanceU.add(new Instr(Prim.FILL, new Color(0xa30075)));
    99103                DistanceU.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-11,-11,22,22)));
     
    101105        public static final Symbol Dolphin = new Symbol();
    102106        static {
    103                 Dolphin.add(new Instr(Prim.STRK, new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     107                Dolphin.add(new Instr(Prim.STRK, new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    104108                Dolphin.add(new Instr(Prim.FILL, new Color(0xffd400)));
    105109                Path2D.Double p = new Path2D.Double(); p.moveTo(3.8,-9.2); p.lineTo(9.2,-3.8); p.lineTo(9.2,3.8); p.lineTo(3.8,9.2);
     
    111115        public static final Symbol Harbour = new Symbol();
    112116        static {
    113                 Harbour.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     117                Harbour.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    114118                Harbour.add(new Instr(Prim.FILL, new Color(0xa30075)));
    115119                Harbour.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-75,-75,150,150)));
     
    118122        public static final Symbol HarbourMaster = new Symbol();
    119123        static {
    120                 HarbourMaster.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     124                HarbourMaster.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    121125                HarbourMaster.add(new Instr(Prim.FILL, Color.black));
    122126                HarbourMaster.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-35,-50,70,100)));
     
    134138        public static final Symbol Marina = new Symbol();
    135139        static {
    136                 Marina.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     140                Marina.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    137141                Marina.add(new Instr(Prim.FILL, new Color(0xa30075)));
    138142                Marina.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null)));
     
    141145        public static final Symbol MarinaNF = new Symbol();
    142146        static {
    143                 MarinaNF.add(new Instr(Prim.STRK, new BasicStroke(15.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     147                MarinaNF.add(new Instr(Prim.STRK, new BasicStroke(15, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    144148                MarinaNF.add(new Instr(Prim.FILL, new Color(0xa30075)));
    145149                MarinaNF.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null)));
     
    147151        public static final Symbol PortCrane = new Symbol();
    148152        static {
    149                 PortCrane.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     153                PortCrane.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    150154                PortCrane.add(new Instr(Prim.FILL, Color.black));
    151155                PortCrane.add(new Instr(Prim.EARC, new Arc2D.Double(-36.0,-36.0,72.0,72.0,70.0,-320.0,Arc2D.OPEN)));
     
    157161                Post.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-10,-10,20,20)));
    158162        }
     163        public static final Symbol RescueStation = new Symbol();
     164        static{
     165               
     166        }
    159167        public static final Symbol SignalStation = new Symbol();
    160168        static {
    161                 SignalStation.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     169                SignalStation.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    162170                SignalStation.add(new Instr(Prim.FILL, Color.black));
    163171                SignalStation.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-25,-25,50,50)));
     
    166174        public static final Symbol TideGauge = new Symbol();
    167175        static {
    168                 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(3.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     176                TideGauge.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    169177                TideGauge.add(new Instr(Prim.FILL, Color.black));
    170178                TideGauge.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-10,-10,20,20)));
     
    172180                TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(10,0,30,0)));
    173181                TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(0,-10,0,-80)));
    174                 TideGauge.add(new Instr(Prim.STRK, new BasicStroke(4.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
     182                TideGauge.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    175183                TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(-15,-25,15,-25)));
    176184                TideGauge.add(new Instr(Prim.LINE, new Line2D.Double(-25,-45,25,-45)));
Note: See TracChangeset for help on using the changeset viewer.