Changeset 30157 in osm for applications/editors/josm/plugins/smed2/src/render/Renderer.java
- Timestamp:
- 2013-12-29T12:52:10+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/smed2/src/render/Renderer.java ¶
r30150 r30157 388 388 } 389 389 390 public static void labelText(Feature feature, String str, Font font, LabelStyle style, Color fg) { 391 labelText(feature, str, font, style, fg, null, null); 392 } 393 public static void labelText(Feature feature, String str, Font font, LabelStyle style, Color fg, Color bg) { 394 labelText(feature, str, font, style, fg, bg, null); 395 } 396 public static void labelText(Feature feature, String str, Font font, LabelStyle style, Color fg, Delta delta) { 397 labelText(feature, str, font, style, fg, null, delta); 398 } 399 public static void labelText(Feature feature, String str, Font font, LabelStyle style, Color fg, Color bg, Delta delta) { 390 public static void labelText(Feature feature, String str, Font font, Color tc) { 391 labelText(feature, str, font, tc, LabelStyle.NONE, null, null, null); 392 } 393 public static void labelText(Feature feature, String str, Font font, Color tc, Delta delta) { 394 labelText(feature, str, font, tc, LabelStyle.NONE, null, null, delta); 395 } 396 public static void labelText(Feature feature, String str, Font font, Color tc, LabelStyle style, Color fg) { 397 labelText(feature, str, font, tc, style, fg, null, null); 398 } 399 public static void labelText(Feature feature, String str, Font font, Color tc, LabelStyle style, Color fg, Color bg) { 400 labelText(feature, str, font, tc, style, fg, bg, null); 401 } 402 public static void labelText(Feature feature, String str, Font font, Color tc, LabelStyle style, Color fg, Delta delta) { 403 labelText(feature, str, font, tc, style, fg, null, delta); 404 } 405 public static void labelText(Feature feature, String str, Font font, Color tc, LabelStyle style, Color fg, Color bg, Delta delta) { 400 406 if (delta == null) delta = new Delta(Handle.CC); 401 407 if (bg == null) bg = new Color(0x00000000, true); … … 491 497 break; 492 498 } 493 label.add(new Instr(Prim.TEXT, new Caption(str, font, fg, new Delta(Handle.TL, AffineTransform.getTranslateInstance(tx, ty)))));499 label.add(new Instr(Prim.TEXT, new Caption(str, font, tc, new Delta(Handle.TL, AffineTransform.getTranslateInstance(tx, ty))))); 494 500 Point2D point = context.getPoint(feature.centre); 495 501 Symbols.drawSymbol(g2, label, sScale, point.getX(), point.getY(), null, delta);
Note:
See TracChangeset
for help on using the changeset viewer.
