Class ImageUtil


  • public final class ImageUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static org.apache.log4j.Logger logger  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ImageUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.ImageIcon scaleImageIcon​(javax.swing.ImageIcon icon, int size)
      Scales an ImageIcon to the desired size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        static final org.apache.log4j.Logger logger
    • Method Detail

      • scaleImageIcon

        public static javax.swing.ImageIcon scaleImageIcon​(javax.swing.ImageIcon icon,
                                                           int size)
        Scales an ImageIcon to the desired size
        Parameters:
        icon - the icon, which should be resized
        size - 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 contained Image is exchanged.