Changeset 24537 in osm for applications/editors
- Timestamp:
- 2010-12-02T20:56:43+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery/src/org/openstreetmap/josm/plugins/imagery/tms/TMSLayer.java
r24530 r24537 1009 1009 if (tileSource.requiresAttribution()) { 1010 1010 // Draw attribution 1011 g.setColor(Color.black);1012 1011 Font font = g.getFont(); 1013 1012 g.setFont(ATTR_LINK_FONT); … … 1022 1021 int y = mv.getHeight() - textHeight; 1023 1022 attrToUBounds = new Rectangle(x, y, textWidth, textHeight); 1023 g.setColor(Color.black); 1024 g.drawString("Background Terms of Use", x+1, y+1); 1025 g.setColor(Color.white); 1024 1026 g.drawString("Background Terms of Use", x, y); 1025 1027 } … … 1039 1041 Main.proj.eastNorth2latlon(topLeft), Main.proj.eastNorth2latlon(botRight)); 1040 1042 Rectangle2D stringBounds = g.getFontMetrics().getStringBounds(attributionText, g); 1041 g.drawString(attributionText, mv.getWidth() - (int) stringBounds.getWidth(), mv.getHeight() - textHeight); 1043 { 1044 int x = mv.getWidth() - (int) stringBounds.getWidth(); 1045 int y = mv.getHeight() - textHeight; 1046 g.setColor(Color.black); 1047 g.drawString(attributionText, x+1, y+1); 1048 g.setColor(Color.white); 1049 g.drawString(attributionText, x, y); 1050 } 1042 1051 1043 1052 g.setFont(font);
Note:
See TracChangeset
for help on using the changeset viewer.