Class ImageUtil


  • public class ImageUtil
    extends java.lang.Object
    A class used to get ImageIcon object from classpath. fixed by @author arendd
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageUtil()  
    • Method Summary

      Modifier and Type Method Description
      static java.awt.image.BufferedImage createDropShadow​(java.awt.image.BufferedImage image, int size)  
      static java.awt.image.BufferedImage createDropShadow​(java.awt.image.BufferedImage image, int size, java.awt.Color renderColor)  
      static javax.swing.ImageIcon createImageIcon​(java.lang.String path, java.lang.String description)  
      static java.awt.TexturePaint createTexturePaint​(java.lang.String imgPath)  
      static java.awt.Image createWindowTitleShadowImage​(java.awt.Graphics2D g2d, java.lang.String title, boolean activeWindow)  
      static java.awt.image.ConvolveOp getGaussianBlurFilter​(int radius, boolean horizontal)  
      static java.awt.Image getImage​(java.lang.String imgPath)  
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_TEXT_COLOR

        public static final java.awt.Color DEFAULT_TEXT_COLOR
      • FONT_12_BOLD

        public static final java.awt.Font FONT_12_BOLD
      • FONT_14_BOLD

        public static final java.awt.Font FONT_14_BOLD
    • Constructor Detail

      • ImageUtil

        public ImageUtil()
    • Method Detail

      • createImageIcon

        public static javax.swing.ImageIcon createImageIcon​(java.lang.String path,
                                                            java.lang.String description)
      • getImage

        public static java.awt.Image getImage​(java.lang.String imgPath)
      • createTexturePaint

        public static java.awt.TexturePaint createTexturePaint​(java.lang.String imgPath)
      • createWindowTitleShadowImage

        public static java.awt.Image createWindowTitleShadowImage​(java.awt.Graphics2D g2d,
                                                                  java.lang.String title,
                                                                  boolean activeWindow)
      • createDropShadow

        public static java.awt.image.BufferedImage createDropShadow​(java.awt.image.BufferedImage image,
                                                                    int size)
      • createDropShadow

        public static java.awt.image.BufferedImage createDropShadow​(java.awt.image.BufferedImage image,
                                                                    int size,
                                                                    java.awt.Color renderColor)
      • getGaussianBlurFilter

        public static java.awt.image.ConvolveOp getGaussianBlurFilter​(int radius,
                                                                      boolean horizontal)