Changeset 10362 in josm


Ignore:
Timestamp:
2016-06-12T14:24:28+02:00 (8 years ago)
Author:
stoecker
Message:

javadoc and style fixes

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

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

    r10358 r10362  
    7777    }
    7878
     79    /**
     80     * Fix icon size
     81     * @param action the action
     82     * @deprecated
     83     */
    7984    @Deprecated
    8085    private void fixIcon(Action action) {
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java

    r10358 r10362  
    77import java.awt.Font;
    88import java.awt.GridBagLayout;
    9 import java.awt.Image;
    109import java.awt.event.MouseWheelEvent;
    1110import java.awt.event.MouseWheelListener;
     
    512511                    ImageIcon icon = null;
    513512
    514                     if(iconName != null && !iconName.isEmpty()) {
     513                    if (iconName != null && !iconName.isEmpty()) {
    515514                        icon = new ImageProvider("preferences", iconName).setSize(ImageProvider.ImageSizes.SETTINGS_TAB).get();
    516515                    }
  • trunk/src/org/openstreetmap/josm/gui/util/GuiSizesHelper.java

    r10360 r10362  
     1// License: GPL. For details, see LICENSE file.
    12package org.openstreetmap.josm.gui.util;
    23
     
    1213 */
    1314public class GuiSizesHelper {
     15
     16    private GuiSizesHelper() {
     17        // Hide default constructor for utils classes
     18    }
     19
     20
    1421    /** cache value for screen resolution */
    1522    private static int screenDPI = -1;
     
    5461    /**
    5562     * Returns a resolution adapted size
    56      * @param dim Size value to adapt (base size is a low DPI screen)
     63     * @param size Size value to adapt (base size is a low DPI screen)
    5764     * @return adapted size (may be unmodified)
    5865     */
     
    6572    /**
    6673     * Returns a resolution adapted size
    67      * @param dim Size value to adapt (base size is a low DPI screen)
     74     * @param size Size value to adapt (base size is a low DPI screen)
    6875     * @return adapted size (may be unmodified)
    6976     */
     
    7683    /**
    7784     * Returns a resolution adapted size
    78      * @param dim Size value to adapt (base size is a low DPI screen)
     85     * @param size Size value to adapt (base size is a low DPI screen)
    7986     * @return adapted size (may be unmodified)
    8087     */
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10359 r10362  
    14751475            scaleX = scaleY = (double) realHeight / sourceHeight;
    14761476            realWidth = (int) Math.round(sourceWidth * scaleX);
    1477         }
    1478         else {
     1477        } else {
    14791478            scaleX = scaleY = (double) realHeight / sourceHeight;
    14801479        }
Note: See TracChangeset for help on using the changeset viewer.