public class IconLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getBaseDir()
Get the root directory that relative-path image files will be located relative to.
|
static java.awt.image.BufferedImage |
loadImage(java.lang.String filename)
Read an image file into an Image object.
|
static void |
setBaseDir(java.io.File dir)
Set the root directory that image files will be located relative to.
|
public static java.awt.image.BufferedImage loadImage(java.lang.String filename)
filename
- String pathname relative to root of YAAC distributionpublic static void setBaseDir(java.io.File dir)
dir
- File specifying the base directory of the YAAC installation.public static java.io.File getBaseDir()