Changeset 30029 in osm for applications/editors/josm/plugins/smed2/src/symbols/Topmarks.java
- Timestamp:
- 2013-10-26T13:45:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Topmarks.java
r29198 r30029 12 12 import java.awt.BasicStroke; 13 13 import java.awt.Color; 14 import java.awt.Rectangle; 15 import java.awt.geom.AffineTransform; 16 import java.awt.geom.Ellipse2D; 17 import java.awt.geom.Line2D; 18 import java.awt.geom.Path2D; 14 import java.awt.geom.*; 19 15 import java.util.EnumMap; 20 16 … … 26 22 public static final Symbol TopBoard = new Symbol(); 27 23 static { 28 TopBoard.add(new Instr(Prim.BBOX, new Rectangle (-20,-80,40,80)));24 TopBoard.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-80,40,80))); 29 25 Symbol colours = new Symbol(); 30 26 Path2D.Double p = new Path2D.Double(); p.moveTo(-19.0,-2.0); p.lineTo(-19.0,-39.0); p.lineTo(19.0,-39.0); p.lineTo(19.0,-2.0); p.closePath(); … … 38 34 public static final Symbol TopCan = new Symbol(); 39 35 static { 40 TopCan.add(new Instr(Prim.BBOX, new Rectangle (-20,-80,40,80)));36 TopCan.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-80,40,80))); 41 37 Symbol colours = new Symbol(); 42 38 Path2D.Double p = new Path2D.Double(); p.moveTo(-12.0,-15.0); p.lineTo(-12.0,-48.0); p.lineTo(12.0,-48.0); p.lineTo(12.0,-15.0); p.closePath(); … … 51 47 public static final Symbol TopCone = new Symbol(); 52 48 static { 53 TopCone.add(new Instr(Prim.BBOX, new Rectangle (-20,-80,40,80)));49 TopCone.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-80,40,80))); 54 50 Symbol colours = new Symbol(); 55 51 Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0,-15.0); p.lineTo(0.0,-45.0); p.lineTo(15.0,-15.0); p.closePath(); … … 64 60 public static final Symbol TopCross = new Symbol(); 65 61 static { 66 TopCross.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));62 TopCross.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 67 63 Symbol colours = new Symbol(); 68 64 Path2D.Double p = new Path2D.Double(); p.moveTo(-5.0,-15.0); p.lineTo(-5.0,-32.5); p.lineTo(-22.5,-32.5); p.lineTo(-22.5,-42.5); p.lineTo(-5.0,-42.5); … … 80 76 public static final Symbol TopEast = new Symbol(); 81 77 static { 82 TopEast.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));78 TopEast.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 83 79 Symbol colours = new Symbol(); 84 80 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0,-80.0); p.lineTo(-15.0,-47.0); p.lineTo(15.0,-47.0); p.closePath(); … … 98 94 public static final Symbol TopIsol = new Symbol(); 99 95 static { 100 TopIsol.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));96 TopIsol.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 101 97 Symbol colours = new Symbol(); 102 98 Path2D.Double p = new Path2D.Double(); p.moveTo(-13.0,-55.0); p.curveTo(-13.0, -72.3, 13.0, -72.3, 13.0,-55.0); p.curveTo(13.0, -37.7, -13.0, -37.7, -13.0,-55.0); p.closePath(); … … 114 110 public static final Symbol TopMooring = new Symbol(); 115 111 static { 116 TopMooring.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));112 TopMooring.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 117 113 TopMooring.add(new Instr(Prim.STRK, new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER))); 118 114 TopMooring.add(new Instr(Prim.FILL, Color.black)); … … 122 118 public static final Symbol TopNorth = new Symbol(); 123 119 static { 124 TopNorth.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));120 TopNorth.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 125 121 Symbol colours = new Symbol(); 126 122 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0,-78.0); p.lineTo(-15.0,-45.0); p.lineTo(15.0,-45.0); p.closePath(); … … 139 135 public static final Symbol TopSouth = new Symbol(); 140 136 static { 141 TopSouth.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));137 TopSouth.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 142 138 Symbol colours = new Symbol(); 143 139 Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0,-78.0); p.lineTo(0.0,-45.0); p.lineTo(15.0,-78.0); p.closePath(); … … 156 152 public static final Symbol TopSphere = new Symbol(); 157 153 static { 158 TopSphere.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));154 TopSphere.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 159 155 Symbol colours = new Symbol(); 160 156 Path2D.Double p = new Path2D.Double(); p.moveTo(-14.0,-28.0); p.curveTo(-14.0,-46.7,14.0,-46.7,14.0,-28.0); p.curveTo(14.0,-9.3,-14.0,-9.3,-14.0,-28.0); p.closePath(); … … 169 165 public static final Symbol TopSquare = new Symbol(); 170 166 static { 171 TopSquare.add(new Instr(Prim.BBOX, new Rectangle (-20,-80,40,80)));167 TopSquare.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-80,40,80))); 172 168 Symbol colours = new Symbol(); 173 169 Path2D.Double p = new Path2D.Double(); p.moveTo(-13.0,-1.0); p.lineTo(-13.0,-27.0); p.lineTo(13.0,-27.0); p.lineTo(13.0,-1.0); p.closePath(); … … 181 177 public static final Symbol TopTriangle = new Symbol(); 182 178 static { 183 TopTriangle.add(new Instr(Prim.BBOX, new Rectangle (-20,-80,40,80)));179 TopTriangle.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-20,-80,40,80))); 184 180 Symbol colours = new Symbol(); 185 181 Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0,-1.0); p.lineTo(0.0,-29.0); p.lineTo(15.0,-1.0); p.closePath(); … … 193 189 public static final Symbol TopWest = new Symbol(); 194 190 static { 195 TopWest.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));191 TopWest.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 196 192 Symbol colours = new Symbol(); 197 193 Path2D.Double p = new Path2D.Double(); p.moveTo(-15.0,-78.0); p.lineTo(0.0,-45.0); p.lineTo(15.0,-78.0); p.closePath(); … … 210 206 public static final Symbol TopX = new Symbol(); 211 207 static { 212 TopX.add(new Instr(Prim.BBOX, new Rectangle (-30,-80,60,80)));208 TopX.add(new Instr(Prim.BBOX, new Rectangle2D.Double(-30,-80,60,80))); 213 209 Symbol colours = new Symbol(); 214 210 Path2D.Double p = new Path2D.Double(); p.moveTo(0.0,-27.7); p.lineTo(-12.4,-15.7); p.lineTo(-19.3,-22.6); p.lineTo(-7.3,-35.0); p.lineTo(-19.3,-47.3);
Note:
See TracChangeset
for help on using the changeset viewer.