|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.yaac.gui.IconLoader
public class IconLoader
This class provides static methods for loading icon images from the distro's JAR file.
| Field Summary | |
|---|---|
static java.lang.String |
SOURCEFILE
Property name for path to source file for the loaded image. |
| Constructor Summary | |
|---|---|
IconLoader()
|
|
| Method Summary | |
|---|---|
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. |
| 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 SOURCEFILE
| Constructor Detail |
|---|
public IconLoader()
| Method Detail |
|---|
public static java.awt.image.BufferedImage loadImage(java.lang.String filename)
filename - String pathname relative to root of YAAC distribution
public static void setBaseDir(java.io.File dir)
dir - File specifying the base directory of the YAAC installation.public static java.io.File getBaseDir()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||