Ignore:
Timestamp:
2014-02-09T19:58:46+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/render/Renderer.java

    r30232 r30269  
    8181
    8282        public static void symbol(Feature feature, Symbol symbol) {
    83                 Point2D point = context.getPoint(feature.centre);
     83                Point2D point = context.getPoint(feature.geom.centre);
    8484                Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), null, null);
    8585        }
    8686        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);
    8888                Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), scheme, null);
    8989        }
    9090        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);
    9292                Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), null, delta);
    9393        }
    9494        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);
    9696                Symbols.drawSymbol(g2, symbol, sScale, point.getX(), point.getY(), scheme, delta);
    9797        }
     
    334334                circle.add(new Instr(Form.STRK, new BasicStroke(style.width, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1, style.dash, 0)));
    335335                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);
    337337                Symbols.drawSymbol(g2, circle, 1, point.getX(), point.getY(), null, null);
    338338        }
     
    345345                switch (feature.geom.prim) {
    346346                case POINT:
    347                         point = context.getPoint(feature.centre);
     347                        point = context.getPoint(feature.geom.centre);
    348348                        g2.drawImage(image, new AffineTransformOp(AffineTransform.getScaleInstance(sScale, sScale), AffineTransformOp.TYPE_NEAREST_NEIGHBOR),
    349349                                        (int)(point.getX() - (50 * sScale)), (int)(point.getY() - (50 * sScale)));
     
    478478                }
    479479                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);
    481481                Symbols.drawSymbol(g2, label, sScale, point.getX(), point.getY(), null, delta);
    482482        }
Note: See TracChangeset for help on using the changeset viewer.