Changeset 29204 in osm for applications/editors/josm/plugins/smed2/src/symbols
- Timestamp:
- 2013-01-19T15:50:02+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src/symbols
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/symbols/Areas.java
r29198 r29204 35 35 public static final Symbol LaneArrow = new Symbol(); 36 36 static { 37 LaneArrow.add(new Instr(Prim.BBOX, new Rectangle(-20,-240,40,240))); 37 38 LaneArrow.add(new Instr(Prim.STRK, new BasicStroke(10, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER))); 38 39 LaneArrow.add(new Instr(Prim.FILL, new Color(0x80c480ff, true))); -
applications/editors/josm/plugins/smed2/src/symbols/Notices.java
r29202 r29204 51 51 private static final Symbol Sport = new Symbol(); 52 52 static { 53 Sport.add(new Instr(Prim.TEXT, new Caption("SPORT", new Font("Arial", Font.BOLD, 15), new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0)))));53 Sport.add(new Instr(Prim.TEXT, new Caption("SPORT", new Font("Arial", Font.BOLD, 15), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0))))); 54 54 } 55 55 private static final Symbol Turn = new Symbol(); … … 65 65 private static final Symbol VHF = new Symbol(); 66 66 static { 67 VHF.add(new Instr(Prim.TEXT, new Caption("VHF", new Font("Arial", Font.BOLD, 20), new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0)))));67 VHF.add(new Instr(Prim.TEXT, new Caption("VHF", new Font("Arial", Font.BOLD, 20), Color.black, new Delta(Handle.BC, AffineTransform.getTranslateInstance(0, 0))))); 68 68 } 69 69 private static final Symbol Waterbike = new Symbol(); -
applications/editors/josm/plugins/smed2/src/symbols/Symbols.java
r29202 r29204 57 57 58 58 public static class Instr { 59 Prim type;60 Object params;59 public Prim type; 60 public Object params; 61 61 62 62 public Instr(Prim itype, Object iparams) { … … 67 67 68 68 public static class Delta { 69 Handle h;70 AffineTransform t;69 public Handle h; 70 public AffineTransform t; 71 71 72 72 public Delta(Handle ih, AffineTransform it) { … … 77 77 78 78 public static class Scheme { 79 ArrayList<ColPAT> pat;80 ArrayList<ColCOL> col;79 public ArrayList<ColPAT> pat; 80 public ArrayList<ColCOL> col; 81 81 82 82 public Scheme(ArrayList<ColPAT> ipat, ArrayList<ColCOL> icol) { … … 87 87 88 88 public static class Caption { 89 String str; 90 Font font; 91 Delta dd; 92 93 public Caption(String istr, Font ifont, Delta idd) { 94 str = istr; 89 public String string; 90 public Font font; 91 public Color colour; 92 public Delta dd; 93 94 public Caption(String istr, Font ifont, Color icolour, Delta idd) { 95 string = istr; 95 96 font = ifont; 97 colour = icolour; 96 98 dd = idd; 97 99 } … … 287 289 case TEXT: 288 290 Caption c = (Caption) item.params; 289 TextLayout layout = new TextLayout(c.str, c.font, g2.getFontRenderContext()); 291 g2.setPaint(c.colour); 292 TextLayout layout = new TextLayout(c.string, c.font, g2.getFontRenderContext()); 290 293 Rectangle2D bb = layout.getBounds(); 291 294 dx = 0;
Note:
See TracChangeset
for help on using the changeset viewer.