|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.util.ImageLoaderUtil
Utility class for simple loading of the images defined in the dmonix package.
Copyright: Copyright (c) 2004
Company: dmonix.org
| Field Summary | |
static java.lang.String |
PATH_IMG_REPOSITORY
The base path to the image repository. |
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_DEVELOPMENT
|
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_GENERAL
|
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_MEDIA
|
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_NAVIGATION
|
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_TABLE
|
static java.lang.String |
PATH_TOOLBARBUTTONGRAPHICS_TEXT
|
| Constructor Summary | |
ImageLoaderUtil()
|
|
| Method Summary | |
static java.awt.image.BufferedImage |
getBufferedImage(java.io.File file)
Gets a BufferedImage from a file. |
static java.awt.image.BufferedImage |
getBufferedImage(java.io.File file,
double sx,
double sy)
Gets a resized BufferedImage from a file. |
static java.awt.image.BufferedImage |
getBufferedImage(java.io.File file,
int width,
int height)
Gets a resized BufferedImage from a file. |
static javax.swing.ImageIcon |
getDmonixLogoBWIcon()
Get the black and white DMoniX logo. |
static java.awt.Image |
getDmonixLogoBWImage()
Get the black and white DMoniX logo. |
static javax.swing.ImageIcon |
getDmonixLogoColorIcon()
Get the color DMoniX logo. |
static java.awt.Image |
getDmonixLogoColorImage()
Get the color DMoniX logo. |
static java.awt.Image |
getImage(java.lang.String path,
java.lang.String imgName)
Get the image at the specified path. |
static javax.swing.ImageIcon |
getImageIcon(java.lang.String path,
java.lang.String imgName)
Get the image icon at the specified path. |
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage source,
double sx,
double sy)
Resizes a BufferedImage to the requested size. |
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage source,
int width,
int height)
Resizes a BufferedImage to the requested size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PATH_IMG_REPOSITORY
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_DEVELOPMENT
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_GENERAL
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_MEDIA
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_NAVIGATION
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_TABLE
public static final java.lang.String PATH_TOOLBARBUTTONGRAPHICS_TEXT
| Constructor Detail |
public ImageLoaderUtil()
| Method Detail |
public static javax.swing.ImageIcon getDmonixLogoColorIcon()
public static java.awt.Image getDmonixLogoColorImage()
public static javax.swing.ImageIcon getDmonixLogoBWIcon()
public static java.awt.Image getDmonixLogoBWImage()
public static java.awt.Image getImage(java.lang.String path,
java.lang.String imgName)
path - The path to the imageimgName - The name of the image
public static javax.swing.ImageIcon getImageIcon(java.lang.String path,
java.lang.String imgName)
path - The path to the imageimgName - The name of the image
public static java.awt.image.BufferedImage getBufferedImage(java.io.File file)
throws java.io.IOException
file - The image file
java.io.IOException
public static java.awt.image.BufferedImage getBufferedImage(java.io.File file,
double sx,
double sy)
throws java.io.IOException
file - The image filesx - Scale widthsy - Scale height
java.io.IOException
public static java.awt.image.BufferedImage getBufferedImage(java.io.File file,
int width,
int height)
throws java.io.IOException
file - The image filewidth - The resulting widthheight - The resulting height
java.io.IOException
public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage source,
double sx,
double sy)
source - The source imagesx - Scale widthsy - Scale height
public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage source,
int width,
int height)
source - The source imagewidth - The resulting widthheight - The resulting height
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||