Ignore:
Timestamp:
2008-10-09T20:25:26+02:00 (16 years ago)
Author:
stotz
Message:

tool tips for zoom controls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java

    r11103 r11104  
    485485         */
    486486        protected void zoomChanged(int oldZoom) {
     487                zoomSlider.setToolTipText("Zoom level " + zoom);
     488                zoomInButton.setToolTipText("Zoom to level " + (zoom + 1));
     489                zoomOutButton.setToolTipText("Zoom to level " + (zoom - 1));
     490                zoomOutButton.setEnabled(zoom > 0);
     491                zoomInButton.setEnabled(zoom < tileSource.getMaxZoom());
    487492        }
    488493
Note: See TracChangeset for help on using the changeset viewer.