Changeset 13984 in josm for trunk/src


Ignore:
Timestamp:
2018-06-29T21:37:38+02:00 (13 months ago)
Author:
Don-vip
Message:

see #16047 - move method to ImageProvider

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

Legend:

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

    r13849 r13984  
    1313import java.awt.event.KeyEvent;
    1414import java.awt.event.MouseEvent;
    15 import java.awt.image.BufferedImage;
    1615import java.beans.PropertyChangeEvent;
    1716import java.beans.PropertyChangeListener;
     
    395394
    396395    static ImageIcon createBlankIcon() {
    397         return new ImageIcon(new BufferedImage(
    398                 ImageSizes.LAYER.getAdjustedWidth(), ImageSizes.LAYER.getAdjustedHeight(), BufferedImage.TYPE_INT_ARGB));
     396        return ImageProvider.createBlankIcon(ImageSizes.LAYER);
    399397    }
    400398
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r13901 r13984  
    20272027    }
    20282028
     2029    /**
     2030     * Creates a blank icon of the given size.
     2031     * @param size image size
     2032     * @return a blank icon of the given size
     2033     * @since 13984
     2034     */
     2035    public static ImageIcon createBlankIcon(ImageSizes size) {
     2036        return new ImageIcon(new BufferedImage(size.getAdjustedWidth(), size.getAdjustedHeight(), BufferedImage.TYPE_INT_ARGB));
     2037    }
     2038
    20292039    @Override
    20302040    public String toString() {
Note: See TracChangeset for help on using the changeset viewer.