Ignore:
Timestamp:
2015-03-03T17:08:26+01:00 (10 years ago)
Author:
malcolmh
Message:

[seachart]update & tidy directories

Location:
applications/editors/josm/plugins/seachart/src/symbols
Files:
3 edited

Legend:

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

    r30894 r31044  
    5353                LaneArrow.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20,-240,40,240)));
    5454                LaneArrow.add(new Instr(Form.STRK, new BasicStroke(10, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));
    55                 LaneArrow.add(new Instr(Form.FILL, new Color(0x80c480ff, true)));
     55                LaneArrow.add(new Instr(Form.FILL, Symbols.Mline));
    5656                Path2D.Double p = new Path2D.Double(); p.moveTo(15,0); p.lineTo(15,-195); p.lineTo(40,-195);
    5757                p.lineTo(0,-240); p.lineTo(-40,-195); p.lineTo(-15,-195); p.lineTo(-15,0); p.closePath();
  • applications/editors/josm/plugins/seachart/src/symbols/Harbours.java

    r30899 r31044  
    1414import java.awt.geom.*;
    1515
    16 import render.Rules;
    1716import symbols.Symbols.*;
    1817
     
    3938        public static final Symbol Anchorage = new Symbol();
    4039        static {
    41                 Anchorage.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 1.0, 0, 0, new Scheme(Rules.Msymb), null)));
     40                Anchorage.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 1.0, 0, 0, new Scheme(Symbols.Msymb), null)));
    4241        }
    4342        public static final Symbol Bollard = new Symbol();
     
    5453                CallPoint1.add(new Instr(Form.BBOX, new Rectangle2D.Double(-50,-50,100,100)));
    5554                CallPoint1.add(new Instr(Form.STRK, new BasicStroke(5, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)));
    56                 CallPoint1.add(new Instr(Form.FILL, Rules.Msymb));
     55                CallPoint1.add(new Instr(Form.FILL, Symbols.Msymb));
    5756                CallPoint1.add(new Instr(Form.ELPS, new Ellipse2D.Double(-25,-25,50,50)));
    5857                Path2D.Double p = new Path2D.Double(); p.moveTo(-16.0,-20.0); p.lineTo(0.0,-50.0); p.lineTo(16.0,-20.0);
     
    9594        static {
    9695                DistanceU.add(new Instr(Form.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    97                 DistanceU.add(new Instr(Form.FILL, Rules.Msymb));
     96                DistanceU.add(new Instr(Form.FILL, Symbols.Msymb));
    9897                DistanceU.add(new Instr(Form.ELPS, new Ellipse2D.Double(-11,-11,22,22)));
    9998        }
     
    121120        static {
    122121                Fishing.add(new Instr(Form.STRK, new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    123                 Fishing.add(new Instr(Form.FILL, Rules.Msymb));
     122                Fishing.add(new Instr(Form.FILL, Symbols.Msymb));
    124123                Fishing.add(new Instr(Form.EARC, new Arc2D.Double(-50,-50,100,100,15,140,Arc2D.OPEN)));
    125124                Fishing.add(new Instr(Form.EARC, new Arc2D.Double(-50,-50,100,100,-15,-140,Arc2D.OPEN)));
     
    133132        static {
    134133                Harbour.add(new Instr(Form.STRK, new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    135                 Harbour.add(new Instr(Form.FILL, Rules.Msymb));
     134                Harbour.add(new Instr(Form.FILL, Symbols.Msymb));
    136135                Harbour.add(new Instr(Form.ELPS, new Ellipse2D.Double(-50,-50,100,100)));
    137                 Harbour.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 0.6, 0, 0, new Scheme(Rules.Msymb), null)));
     136                Harbour.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Anchor, 0.6, 0, 0, new Scheme(Symbols.Msymb), null)));
    138137        }
    139138        public static final Symbol HarbourMaster = new Symbol();
     
    155154        public static final Symbol LandingSteps = new Symbol();
    156155        static {
    157                 LandingSteps.add(new Instr(Form.FILL, Rules.Msymb));
     156                LandingSteps.add(new Instr(Form.FILL, Symbols.Msymb));
    158157                Path2D.Double p = new Path2D.Double(); p.moveTo(-20,-10); p.lineTo(10,20); p.lineTo(20,20); p.lineTo(20,10);
    159158                p.lineTo(10,10); p.lineTo(10,0); p.lineTo(0,0); p.lineTo(0,-10); p.lineTo(-10,-10); p.lineTo(-10,-20); p.lineTo(-20,-20); p.closePath();
     
    165164        static {
    166165                Marina.add(new Instr(Form.STRK, new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER)));
    167                 Marina.add(new Instr(Form.FILL, Rules.Msymb));
     166                Marina.add(new Instr(Form.FILL, Symbols.Msymb));
    168167                Marina.add(new Instr(Form.EARC, new Arc2D.Double(-50.0,-50.0,100.0,100.0,215.0,-250.0,Arc2D.OPEN)));
    169                 Marina.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 0.6, 0, 0, new Scheme(Rules.Msymb), null)));
     168                Marina.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 0.6, 0, 0, new Scheme(Symbols.Msymb), null)));
    170169        }
    171170        public static final Symbol MarinaNF = new Symbol();
    172171        static {
    173                 MarinaNF.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 0.6, 0, 0, new Scheme(Rules.Msymb), null)));
     172                MarinaNF.add(new Instr(Form.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 0.6, 0, 0, new Scheme(Symbols.Msymb), null)));
    174173        }
    175174        public static final Symbol Pilot = new Symbol();
  • applications/editors/josm/plugins/seachart/src/symbols/Symbols.java

    r31014 r31044  
    2020public class Symbols {
    2121
     22        public static final Color Yland = new Color(0xf1c010);
     23        public static final Color Bwater = new Color(0x78acd2);
     24        public static final Color Gdries = new Color(0x689868);
     25        public static final Color Mline = new Color(0x9a6078);
     26        public static final Color Msymb = new Color(0xa30075);
     27       
    2228        public enum Form {
    2329                BBOX, STRK, COLR, FILL, LINE, RECT, RRCT, ELPS, EARC, PLIN, PGON, RSHP, TEXT, SYMB, P1, P2, H2, H3, H4, H5, V2, V3, D2, D3, D4, B1, S2, S3, S4, C2, X2
Note: See TracChangeset for help on using the changeset viewer.