Changeset 29385 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui
- Timestamp:
- 2013-03-23T07:12:15+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java
r29244 r29385 55 55 56 56 public void paintAttribution(Graphics g, int width, int height, Coordinate topLeft, Coordinate bottomRight, int zoom, ImageObserver observer) { 57 if (source == null || !source.requiresAttribution()) 58 return; 57 if (source == null || !source.requiresAttribution()) { 58 attrToUBounds = null; 59 attrImageBounds = null; 60 attrTextBounds = null; 61 return; 62 } 63 59 64 // Draw attribution 60 65 Font font = g.getFont(); … … 78 83 g.setColor(Color.white); 79 84 g.drawString(attrTermsText, x, y); 85 } else { 86 attrToUBounds = null; 80 87 } 81 88 … … 88 95 attrImageBounds = new Rectangle(x, y, imgWidth, imgHeight); 89 96 g.drawImage(attrImage, x, y, null); 97 } else { 98 attrImageBounds = null; 90 99 } 91 100 … … 102 111 g.drawString(attributionText, x, y); 103 112 attrTextBounds = new Rectangle(x, y-textHeight, (int) stringBounds.getWidth(), (int) stringBounds.getHeight()); 113 } else { 114 attrTextBounds = null; 104 115 } 105 116
Note:
See TracChangeset
for help on using the changeset viewer.