Ignore:
Timestamp:
2013-12-29T12:52:10+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

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

    r30150 r30157  
    388388        }
    389389
    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) {
    400406                if (delta == null) delta = new Delta(Handle.CC);
    401407                if (bg == null) bg = new Color(0x00000000, true);
     
    491497                        break;
    492498                }
    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)))));
    494500                Point2D point = context.getPoint(feature.centre);
    495501                Symbols.drawSymbol(g2, label, sScale, point.getX(), point.getY(), null, delta);
Note: See TracChangeset for help on using the changeset viewer.