Changeset 30269 in osm for applications/editors/josm/plugins/smed2/src/render/Renderer.java
- Timestamp:
- 2014-02-09T19:58:46+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/render/Renderer.java
r30232 r30269 81 81 82 82 public static void symbol(Feature feature, Symbol symbol) { 83 Point2D point = context.getPoint(feature.centre); 83 Point2D point = context.getPoint(feature.geom.centre); 84 84 Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), null, null); 85 85 } 86 86 public static void symbol(Feature feature, Symbol symbol, Scheme scheme) { 87 Point2D point = context.getPoint(feature.centre); 87 Point2D point = context.getPoint(feature.geom.centre); 88 88 Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), scheme, null); 89 89 } 90 90 public static void symbol(Feature feature, Symbol symbol, Delta delta) { 91 Point2D point = context.getPoint(feature.centre); 91 Point2D point = context.getPoint(feature.geom.centre); 92 92 Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), null, delta); 93 93 } 94 94 public static void symbol(Feature feature, Symbol symbol, Scheme scheme, Delta delta) { 95 Point2D point = context.getPoint(feature.centre); 95 Point2D point = context.getPoint(feature.geom.centre); 96 96 Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), scheme, delta); 97 97 } … … 334 334 circle.add(new Instr(Form.STRK, new BasicStroke(style.width, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1, style.dash, 0))); 335 335 circle.add(new Instr(Form.ELPS, new Ellipse2D.Double(-radius,-radius,radius*2,radius*2))); 336 Point2D point = context.getPoint(feature.centre); 336 Point2D point = context.getPoint(feature.geom.centre); 337 337 Symbols.drawSymbol(g2, circle, 1, point.getX(), point.getY(), null, null); 338 338 } … … 345 345 switch (feature.geom.prim) { 346 346 case POINT: 347 point = context.getPoint(feature.centre); 347 point = context.getPoint(feature.geom.centre); 348 348 g2.drawImage(image, new AffineTransformOp(AffineTransform.getScaleInstance(sScale, sScale), AffineTransformOp.TYPE_NEAREST_NEIGHBOR), 349 349 (int)(point.getX() - (50 * sScale)), (int)(point.getY() - (50 * sScale))); … … 478 478 } 479 479 label.add(new Instr(Form.TEXT, new Caption(str, font, tc, new Delta(Handle.TL, AffineTransform.getTranslateInstance(tx, ty))))); 480 Point2D point = context.getPoint(feature.centre); 480 Point2D point = context.getPoint(feature.geom.centre); 481 481 Symbols.drawSymbol(g2, label, sScale, point.getX(), point.getY(), null, delta); 482 482 }
Note:
See TracChangeset
for help on using the changeset viewer.
