Changeset 5963 in josm for trunk/src/org
- Timestamp:
- 2013-05-14T23:55:50+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r5808 r5963 10 10 import java.awt.Font; 11 11 import java.awt.Graphics; 12 import java.awt.GridBagLayout; 12 13 import java.awt.Toolkit; 13 14 import java.awt.event.ActionEvent; … … 22 23 import javax.swing.JCheckBoxMenuItem; 23 24 import javax.swing.JComponent; 25 import javax.swing.JLabel; 24 26 import javax.swing.JMenu; 25 27 import javax.swing.JMenuItem; 28 import javax.swing.JPanel; 26 29 import javax.swing.JPopupMenu; 27 30 import javax.swing.JSeparator; … … 36 39 import org.openstreetmap.josm.data.preferences.IntegerProperty; 37 40 import org.openstreetmap.josm.gui.MenuScroller; 41 import org.openstreetmap.josm.tools.GBC; 38 42 import org.openstreetmap.josm.tools.ImageProvider; 43 import org.openstreetmap.josm.tools.UrlLabel; 39 44 40 45 public abstract class ImageryLayer extends Layer { … … 120 125 @Override 121 126 public Object getInfoComponent() { 122 return getToolTipText(); 127 JPanel panel = new JPanel(new GridBagLayout()); 128 panel.add(new JLabel(getToolTipText()), GBC.eol()); 129 if (info != null) { 130 String url = info.getUrl(); 131 if (url != null) { 132 panel.add(new JLabel(tr("URL: ")), GBC.std().insets(0, 5, 2, 0)); 133 panel.add(new UrlLabel(url), GBC.eol().insets(2, 5, 10, 0)); 134 } 135 if (dx != 0.0 || dy != 0.0) { 136 panel.add(new JLabel(tr("Offset: ") + dx + ";" + dy), GBC.eol().insets(0, 5, 10, 0)); 137 } 138 } 139 return panel; 123 140 } 124 141 -
trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
r5898 r5963 1487 1487 @Override 1488 1488 public String getToolTipText() { 1489 return null;1489 return tr("TMS layer ({0}), downloading in zoom {1}", getName(), currentZoomLevel); 1490 1490 } 1491 1491
Note:
See TracChangeset
for help on using the changeset viewer.