net.sourceforge.mewt.utils
Class Utils

java.lang.Object
  extended by net.sourceforge.mewt.utils.Utils

public class Utils
extends java.lang.Object

The Class Utils.


Constructor Summary
Utils()
           
 
Method Summary
static javax.microedition.lcdui.Image load(java.lang.String imagePath)
          Load.
static javax.microedition.lcdui.Image loadImage(java.lang.String imageName)
          Load image.
static javax.microedition.lcdui.Image scale(javax.microedition.lcdui.Image temp, int maxX, int maxY)
          Scale.
static javax.microedition.lcdui.Image scale(java.lang.String imagePath, int maxX, int maxY)
          Scale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

loadImage

public static javax.microedition.lcdui.Image loadImage(java.lang.String imageName)
Load image.

Parameters:
imageName - the image name
Returns:
the image

scale

public static javax.microedition.lcdui.Image scale(javax.microedition.lcdui.Image temp,
                                                   int maxX,
                                                   int maxY)
Scale.

Parameters:
temp - the temp
maxX - the max x
maxY - the max y
Returns:
the image

scale

public static javax.microedition.lcdui.Image scale(java.lang.String imagePath,
                                                   int maxX,
                                                   int maxY)
                                            throws java.io.IOException
Scale.

Parameters:
imagePath - the image path
maxX - the max x
maxY - the max y
Returns:
the image
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

load

public static javax.microedition.lcdui.Image load(java.lang.String imagePath)
Load.

Parameters:
imagePath - the image path
Returns:
the image