Ignore:
Timestamp:
2013-10-26T13:45:17+02:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

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

    r30023 r30029  
    1919        public static final Symbol Plane = new Symbol();
    2020        static {
    21                 Plane.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120)));
     21                Plane.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-60,-60,120,120)));
    2222                Path2D.Double p = new Path2D.Double(); p.moveTo(40,20); p.lineTo(50,10); p.lineTo(27.0,13.3); p.lineTo(23.7,6.8); p.lineTo(40.0,5.0); p.curveTo(55,4,55,-9,40,-10);
    2323                p.quadTo(31,-11,30,-15); p.lineTo(-30,2); p.quadTo(-35,-12,-45,-15); p.quadTo(-56,-3,-50,15); p.lineTo(18.4,7.3); p.lineTo(21.7,14); p.lineTo(-20,20); p.closePath();
     
    2626        public static final Symbol Cable = new Symbol();
    2727        static {
    28                 Cable.add(new Instr(Prim.BBOX, new Rectangle(-30,-60,60,60)));
     28                Cable.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-60,60,60)));
    2929                Cable.add(new Instr(Prim.STRK, new BasicStroke(8, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)));
    3030                Cable.add(new Instr(Prim.FILL, new Color(0xc480ff)));
     
    3434        public static final Symbol LaneArrow = new Symbol();
    3535        static {
    36                 LaneArrow.add(new Instr(Prim.BBOX, new Rectangle(-20,-240,40,240)));
     36                LaneArrow.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-240,40,240)));
    3737                LaneArrow.add(new Instr(Prim.STRK, new BasicStroke(10, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));
    3838                LaneArrow.add(new Instr(Prim.FILL, new Color(0x80c480ff, true)));
     
    4343        public static final Symbol LineAnchor = new Symbol();
    4444        static {
    45                 LineAnchor.add(new Instr(Prim.BBOX, new Rectangle(-30,-60,60,90)));
     45                LineAnchor.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-60,60,90)));
    4646                LineAnchor.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 0.5, 0, 0, new Delta(Handle.CC, AffineTransform.getRotateInstance(Math.toRadians(-90.0))), null)));
    4747        }
     
    7272        public static final Symbol Pipeline = new Symbol();
    7373        static {
    74                 Pipeline.add(new Instr(Prim.BBOX, new Rectangle(-15,-60,30,60)));
     74                Pipeline.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-15,-60,30,60)));
    7575                Pipeline.add(new Instr(Prim.STRK, new BasicStroke(8, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
    7676                Pipeline.add(new Instr(Prim.FILL, new Color(0xc480ff)));
     
    8080        public static final Symbol Restricted = new Symbol();
    8181        static {
    82                 Restricted.add(new Instr(Prim.BBOX, new Rectangle(-15,-30,30,30)));
     82                Restricted.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-15,-30,30,30)));
    8383                Restricted.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND)));
    8484                Restricted.add(new Instr(Prim.LINE, new Line2D.Double(0,0,0,-30)));
     
    125125        public static final Symbol Seaplane = new Symbol();
    126126        static {
    127                 Seaplane.add(new Instr(Prim.BBOX, new Rectangle(-60,-60,120,120)));
     127                Seaplane.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-60,-60,120,120)));
    128128                Seaplane.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    129129                Seaplane.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-58,-58,116,116)));
Note: See TracChangeset for help on using the changeset viewer.