|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.votech.ds6.imageutils.ImageHelper
public class ImageHelper
| Constructor Summary | |
|---|---|
ImageHelper(java.lang.Class base)
Construct an ImageHelper. |
|
| Method Summary | |
|---|---|
java.net.URL |
copyImageToTempFile(java.lang.String image,
java.lang.String type)
Copy an image from the classpath (relative to the base class) to a temporary file. |
void |
copyTo(java.lang.String location,
java.io.File file,
java.lang.String format)
Copy an image that's on the classpath relative to the base class out to a given file |
static void |
copyTo(java.net.URL original,
java.io.File file,
java.lang.String format)
Copy an image out to a given file. |
ResizableImageIcon |
getIcon(java.lang.String name)
Get a resizable icon with the given name, stored on the classpath relative to the supplied base class. |
static ResizableImageIcon |
getIcon(java.net.URL url)
Get a resizable Icon from the supplied URL. |
java.awt.Image |
getImage(java.lang.String name)
Get an image with the given name, stored on the classpath relative to the supplied base class. |
static java.awt.Image |
getImage(java.net.URL url)
Get an image from the supplied URL |
java.net.URL |
getImageUrl(java.lang.String image)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageHelper(java.lang.Class base)
base - | Method Detail |
|---|
public static ResizableImageIcon getIcon(java.net.URL url)
url -
public static java.awt.Image getImage(java.net.URL url)
url -
public ResizableImageIcon getIcon(java.lang.String name)
name -
public java.awt.Image getImage(java.lang.String name)
public static void copyTo(java.net.URL original,
java.io.File file,
java.lang.String format)
throws java.io.IOException
original - original imagefile - location to copy tofile - format
java.io.IOException
public void copyTo(java.lang.String location,
java.io.File file,
java.lang.String format)
throws java.io.IOException
location - location of the file relative to the base classfile - format -
java.io.IOException
public java.net.URL copyImageToTempFile(java.lang.String image,
java.lang.String type)
image - image nametype - jpg or gif etc
public java.net.URL getImageUrl(java.lang.String image)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||