jrworkspace by
jTEM

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

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.sidecontainer.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 Icon scaleIcon(Icon icon, int width, int height)
           
static Image scaleImage(Image image, int width, int height)
           
static void setDialogIconImage(JDialog dialog, Image image)
          Java 5 safe method to set the icon image of a dialog
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)

scaleIcon

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

scaleImage

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

setDialogIconImage

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

Parameters:
dialog -
image -

toImage

public static Image toImage(Icon icon)

jrworkspace by
jTEM

jTEM