Changeset 29199 in osm for applications/editors/josm/plugins/smed2/src/symbols
- Timestamp:
- 2013-01-15T15:08:25+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src/symbols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Harbours.java
r29198 r29199 71 71 ClearV.add(new Instr(Prim.LINE, new Line2D.Double(-10,25,10,25))); 72 72 ClearV.add(new Instr(Prim.LINE, new Line2D.Double(0,25,0,15))); 73 }74 public static final Symbol CoastGStation = new Symbol();75 static{76 77 73 } 78 74 public static final Symbol ContainerCrane = new Symbol(); … … 149 145 MarinaNF.add(new Instr(Prim.SYMB, new Symbols.SubSymbol(Harbours.Yacht, 1.0, 0, 0, null, null))); 150 146 } 147 public static final Symbol Pilot = new Symbol(); 148 static{ 149 Pilot.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 150 Pilot.add(new Instr(Prim.FILL, new Color(0xd400d4))); 151 Path2D.Double p = new Path2D.Double(); p.moveTo(-15,0); p.lineTo(0,-56); p.lineTo(15,0); p.lineTo(0,56); p.closePath(); 152 Pilot.add(new Instr(Prim.PGON, p)); 153 Pilot.add(new Instr(Prim.ELPS, new Ellipse2D.Double(-58,-58,116,116))); 154 } 151 155 public static final Symbol PortCrane = new Symbol(); 152 156 static { … … 161 165 Post.add(new Instr(Prim.RSHP, new Ellipse2D.Double(-10,-10,20,20))); 162 166 } 163 public static final Symbol Rescue Station= new Symbol();167 public static final Symbol Rescue = new Symbol(); 164 168 static{ 165 169 Rescue.add(new Instr(Prim.STRK, new BasicStroke(4, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 170 Rescue.add(new Instr(Prim.FILL, Color.black)); 171 Path2D.Double p = new Path2D.Double(); p.moveTo(-11,0); p.lineTo(0,-43); p.lineTo(11,0); p.lineTo(0,43); p.closePath(); 172 Rescue.add(new Instr(Prim.PGON, p)); 173 Rescue.add(new Instr(Prim.LINE, new Line2D.Double(-15,0,15,0))); 166 174 } 167 175 public static final Symbol SignalStation = new Symbol(); -
applications/editors/josm/plugins/smed2/src/symbols/Symbols.java
r29198 r29199 108 108 109 109 public static class LineStyle { 110 BasicStroke stroke;111 Color line;112 Color fill;113 114 public LineStyle(BasicStroke istroke, Color iline, Color ifill) { 115 stroke = istroke;110 public Color line; 111 public float width; 112 public float[] dash; 113 public Color fill; 114 115 public LineStyle(Color iline, float iwidth, float[] idash, Color ifill) { 116 116 line = iline; 117 width = iwidth; 118 dash = idash; 117 119 fill = ifill; 118 120 }
Note:
See TracChangeset
for help on using the changeset viewer.