jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.simplecontroller.image
Class ImageHook

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.simplecontroller.image.ImageHook

public class ImageHook
extends Object

An image loader for jar files

Copyright 2005 Stefan Sechelmann TU-Berlin

Author:
Stefan Sechelmann

Constructor Summary
ImageHook()
           
 
Method Summary
static Icon getIcon(String filename)
           
static Icon getIcon(String filename, int width, int height)
           
static Image getImage(String filename)
           
static Image getImage(String filename, int width, int height)
           
static Image renderIcon(Icon icon)
           
static Icon scaleIcon(Icon icon, int width, int height)
           
static Image scaleImage(Image image, int width, int height)
           
static void setIconImage(Dialog dialog, Image image)
          Java 5 safe method to set the icon image of a dialog
static void setIconImage(Frame dialog, Image image)
          Java 5 safe method to set the icon image of a frame
static Image toImage(Icon icon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHook

public ImageHook()
Method Detail

getIcon

public static Icon getIcon(String filename)

getIcon

public static Icon getIcon(String filename,
                           int width,
                           int height)

getImage

public static Image getImage(String filename)

getImage

public static Image getImage(String filename,
                             int width,
                             int height)

renderIcon

public static Image renderIcon(Icon icon)

scaleIcon

public static Icon scaleIcon(Icon icon,
                             int width,
                             int height)

scaleImage

public static Image scaleImage(Image image,
                               int width,
                               int height)

setIconImage

public static void setIconImage(Dialog dialog,
                                Image image)
Java 5 safe method to set the icon image of a dialog

Parameters:
dialog -
image -

setIconImage

public static void setIconImage(Frame dialog,
                                Image image)
Java 5 safe method to set the icon image of a frame

Parameters:
dialog -
image -

toImage

public static Image toImage(Icon icon)

jrworkspace by
jTEM

jTEM