Ignore:
Timestamp:
2016-03-17T01:50:12+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - Local variable and method parameter names should comply with a naming convention

File:
1 edited

Legend:

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

    r9971 r10001  
    10131013
    10141014        // How many pixels into the 'source' rectangle are we drawing?
    1015         int screen_x_offset = target.x - source.x;
    1016         int screen_y_offset = target.y - source.y;
     1015        int screenXoffset = target.x - source.x;
     1016        int screenYoffset = target.y - source.y;
    10171017        // And how many pixels into the image itself does that correlate to?
    1018         int img_x_offset = (int) (screen_x_offset * imageXScaling + 0.5);
    1019         int img_y_offset = (int) (screen_y_offset * imageYScaling + 0.5);
     1018        int imgXoffset = (int) (screenXoffset * imageXScaling + 0.5);
     1019        int imgYoffset = (int) (screenYoffset * imageYScaling + 0.5);
    10201020        // Now calculate the other corner of the image that we need
    10211021        // by scaling the 'target' rectangle's dimensions.
    1022         int img_x_end = img_x_offset + (int) (target.getWidth() * imageXScaling + 0.5);
    1023         int img_y_end = img_y_offset + (int) (target.getHeight() * imageYScaling + 0.5);
     1022        int imgXend = imgXoffset + (int) (target.getWidth() * imageXScaling + 0.5);
     1023        int imgYend = imgYoffset + (int) (target.getHeight() * imageYScaling + 0.5);
    10241024
    10251025        if (Main.isDebugEnabled()) {
     
    10291029                target.x, target.y,
    10301030                target.x + target.width, target.y + target.height,
    1031                 img_x_offset, img_y_offset,
    1032                 img_x_end, img_y_end,
     1031                imgXoffset, imgYoffset,
     1032                imgXend, imgYend,
    10331033                this);
    10341034        if (PROP_FADE_AMOUNT.get() != 0) {
Note: See TracChangeset for help on using the changeset viewer.