Changeset 29206 in osm for applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
- Timestamp:
- 2013-01-20T11:51:05+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
r29205 r29206 100 100 ArrayList<Long> way; 101 101 if (map.mpolys.containsKey(feature.refs)) { 102 way = map.ways.get(map.mpolys.get(feature.refs)); 102 way = map.ways.get(map.mpolys.get(feature.refs).get(0)); 103 103 } else { 104 104 way = map.ways.get(feature.refs); … … 107 107 case NODE: 108 108 return map.nodes.get(feature.refs); 109 case WAY:109 case LINE: 110 110 coord = map.nodes.get(way.get(1)); 111 111 break; … … 152 152 } 153 153 if (item.type == Prim.SYMB) { 154 ssymb = ( Symbol)item.params;154 ssymb = ((SubSymbol)item.params).instr; 155 155 break; 156 156 } … … 293 293 public static void labelText (Feature feature, String str, Font font, Color colour, Delta delta) { 294 294 Symbol label = new Symbol(); 295 label.add(new Instr(Prim.TEXT, new Caption(str, font, colour 296 , delta))); 295 label.add(new Instr(Prim.TEXT, new Caption(str, font, colour, (delta == null) ? new Delta(Handle.CC, null) : delta))); 297 296 Point2D point = helper.getPoint(findCentroid(feature)); 298 Symbols.drawSymbol(g2, label, tScale, point.getX(), point.getY(), delta, null);297 Symbols.drawSymbol(g2, label, tScale, point.getX(), point.getY(), null, null); 299 298 } 300 299
Note:
See TracChangeset
for help on using the changeset viewer.
