Changeset 29204 in osm for applications/editors/josm/plugins/smed2/src/symbols/Symbols.java
- Timestamp:
- 2013-01-19T15:50:02+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.