Changeset 11842 in josm


Ignore:
Timestamp:
2017-04-05T11:53:38+02:00 (2 years ago)
Author:
bastiK
Message:

see #7427 - clean up private method parameter list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r11841 r11842  
    11901190    }
    11911191
    1192     private void paintTileText(TileSet ts, Tile tile, Graphics g, MapView mv, int zoom, Tile t) {
     1192    private void paintTileText(Tile tile, Graphics g, MapView mv) {
    11931193        if (tile == null) {
    11941194            return;
    11951195        }
    1196         Point2D p = coordinateConverter.getPixelForTile(t);
     1196        Point2D p = coordinateConverter.getPixelForTile(tile);
    11971197        int fontHeight = g.getFontMetrics().getHeight();
    11981198        int x = (int) p.getX();
     
    12231223        int yCursor = -1;
    12241224        if (Main.isDebugEnabled()) {
    1225             if (yCursor < t.getYtile()) {
    1226                 if (Math.abs(t.getYtile() % 32) == 31) {
     1225            if (yCursor < tile.getYtile()) {
     1226                if (Math.abs(tile.getYtile() % 32) == 31) {
    12271227                    g.fillRect(0, y - 1, mv.getWidth(), 3);
    12281228                } else {
     
    12321232            }
    12331233            // This draws the vertical lines for the entire column. Only draw them for the top tile in the column.
    1234             if (xCursor < t.getXtile()) {
    1235                 if (t.getXtile() % 32 == 0) {
     1234            if (xCursor < tile.getXtile()) {
     1235                if (tile.getXtile() % 32 == 0) {
    12361236                    // level 7 tile boundary
    12371237                    g.fillRect(x - 1, 0, 3, mv.getHeight());
     
    16101610        // The current zoom tileset should have all of its tiles due to the loadAllTiles(), unless it to tooLarge()
    16111611        for (Tile t : ts.allExistingTiles()) {
    1612             this.paintTileText(ts, t, g, mv, displayZoomLevel, t);
     1612            this.paintTileText(t, g, mv);
    16131613        }
    16141614
Note: See TracChangeset for help on using the changeset viewer.