org.game.Juzzle.images
Class JuzzleImages

java.lang.Object
  |
  +--org.game.Juzzle.images.JuzzleImages

public final class JuzzleImages
extends java.lang.Object

static class for loading of the images


Constructor Summary
JuzzleImages()
           
 
Method Summary
static javax.swing.ImageIcon getIcon(java.lang.String name)
          load a image as ImageIcon
static java.util.Vector getImages()
          load all game images.
static java.awt.Image loadImage(java.lang.String name)
          load a game image
static javax.swing.ImageIcon scaleIcon(javax.swing.ImageIcon ii, int imageSize)
          scale the image to the scaled version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JuzzleImages

public JuzzleImages()
Method Detail

loadImage

public static java.awt.Image loadImage(java.lang.String name)
load a game image
Parameters:
name - name of the image
Returns:
the image

getImages

public static java.util.Vector getImages()
load all game images.
Returns:
the array with images

scaleIcon

public static javax.swing.ImageIcon scaleIcon(javax.swing.ImageIcon ii,
                                              int imageSize)
scale the image to the scaled version
Parameters:
ii - original image
imageSize - the scaled image must fit into the (imageSize x imageSize) rectangle
Returns:
the scaled image

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String name)
load a image as ImageIcon
Parameters:
name - name of the image
Returns:
the image as ImageIcon