Changeset 31044 in osm for applications/editors/josm/plugins/seachart/src/symbols
- Timestamp:
- 2015-03-03T17:08:26+01:00 (10 years ago)
- 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 53 53 LaneArrow.add(new Instr(Form.BBOX, new Rectangle2D.Double(-20,-240,40,240))); 54 54 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)); 56 56 Path2D.Double p = new Path2D.Double(); p.moveTo(15,0); p.lineTo(15,-195); p.lineTo(40,-195); 57 57 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 14 14 import java.awt.geom.*; 15 15 16 import render.Rules;17 16 import symbols.Symbols.*; 18 17 … … 39 38 public static final Symbol Anchorage = new Symbol(); 40 39 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))); 42 41 } 43 42 public static final Symbol Bollard = new Symbol(); … … 54 53 CallPoint1.add(new Instr(Form.BBOX, new Rectangle2D.Double(-50,-50,100,100))); 55 54 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)); 57 56 CallPoint1.add(new Instr(Form.ELPS, new Ellipse2D.Double(-25,-25,50,50))); 58 57 Path2D.Double p = new Path2D.Double(); p.moveTo(-16.0,-20.0); p.lineTo(0.0,-50.0); p.lineTo(16.0,-20.0); … … 95 94 static { 96 95 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)); 98 97 DistanceU.add(new Instr(Form.ELPS, new Ellipse2D.Double(-11,-11,22,22))); 99 98 } … … 121 120 static { 122 121 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)); 124 123 Fishing.add(new Instr(Form.EARC, new Arc2D.Double(-50,-50,100,100,15,140,Arc2D.OPEN))); 125 124 Fishing.add(new Instr(Form.EARC, new Arc2D.Double(-50,-50,100,100,-15,-140,Arc2D.OPEN))); … … 133 132 static { 134 133 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)); 136 135 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))); 138 137 } 139 138 public static final Symbol HarbourMaster = new Symbol(); … … 155 154 public static final Symbol LandingSteps = new Symbol(); 156 155 static { 157 LandingSteps.add(new Instr(Form.FILL, Rules.Msymb));156 LandingSteps.add(new Instr(Form.FILL, Symbols.Msymb)); 158 157 Path2D.Double p = new Path2D.Double(); p.moveTo(-20,-10); p.lineTo(10,20); p.lineTo(20,20); p.lineTo(20,10); 159 158 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(); … … 165 164 static { 166 165 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)); 168 167 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))); 170 169 } 171 170 public static final Symbol MarinaNF = new Symbol(); 172 171 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))); 174 173 } 175 174 public static final Symbol Pilot = new Symbol(); -
applications/editors/josm/plugins/seachart/src/symbols/Symbols.java
r31014 r31044 20 20 public class Symbols { 21 21 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 22 28 public enum Form { 23 29 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.