Class ImageUtil
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.utils.ImageUtil
-
public final class ImageUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.apache.log4j.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description privateImageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.swing.ImageIconscaleImageIcon(javax.swing.ImageIcon icon, int size)Scales anImageIconto the desired size
-
-
-
Field Detail
-
logger
static final org.apache.log4j.Logger logger
-
-
Constructor Detail
-
ImageUtil
private ImageUtil()
-
-
Method Detail
-
scaleImageIcon
public static javax.swing.ImageIcon scaleImageIcon(javax.swing.ImageIcon icon, int size)
Scales anImageIconto the desired size- Parameters:
icon- the icon, which should be resizedsize- the desired length of the longest edge of the icon- Returns:
- the resized
ImageIcon. It is the same object that you put in, only the containedImageis exchanged.
-
-