Class JMTImageLoader

java.lang.Object
common.JMTImageLoader

public class JMTImageLoader extends Object

Name: JMTImageLoader

Description: Loads and caches images to create icons. This class is designed to be accessed in a static manner.

Date: 23/gen/07 Time: 16:15:32

Version:
1.2
Author:
Bertoli Marco
  • Field Details

    • imageLoader

      protected static ImageLoader imageLoader
  • Constructor Details

    • JMTImageLoader

      public JMTImageLoader()
  • Method Details

    • loadImage

      public static ImageIcon loadImage(String imageName)
      Loads the image from this directory. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      Returns:
      the icon of the image
    • loadImage

      public static ImageIcon loadImage(String imageName, Dimension size)
      Loads the image from this directory, and applies a specified size. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      size - specific size for the image to be returned
      Returns:
      the icon of the image
    • loadImageAwt

      public static Image loadImageAwt(String imageName)
      Loads the image from this directory. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      Returns:
      the image
    • getImageLoader

      public static ImageLoader getImageLoader()
      Returns:
      encapsulated ImageLoader object
    • loadImage

      public static ImageIcon loadImage(String imageName, String modifier)
      Loads the image from this directory, and applies a known modifier. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      modifier - known modifier method
      Returns:
      the icon of the image
      See Also:
    • loadImage

      public static ImageIcon loadImage(String imageName, String modifier, Double angle)
      Loads the image from this directory, and applies a known modifier. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      modifier - known modifier method
      angle - the rotation angle in degrees
      Returns:
      the icon of the image
      See Also:
    • loadImage

      public static ImageIcon loadImage(String imageName, String modifier, Dimension size)
      Loads the image from this directory, and applies a known modifier and specified size. Please put all images in the class package.
      Parameters:
      imageName - string containing the image name
      modifier - known modifier method
      size - specific size for the image to be returned
      Returns:
      the icon of the image
      See Also: