|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpackages.jtray.ImageFileType
public abstract class ImageFileType
This abstract class defines all supported image file types.
If loading an icon from a DLL or EXE, set the file type to ICO.
Example:
JTrayIcon jTrayIcon1 = new JTrayIcon("icon.gif", ImageFileType.JAVA_SUPPORTED);
JTrayIcon jTrayIcon2 = new JTrayIcon("icon.jpg", ImageFileType.JAVA_SUPPORTED);
JTrayIcon jTrayIcon3 = new JTrayIcon("icon.ico", ImageFileType.ICO);
// gets the first icon in the icon.dll
JTrayIcon jTrayIcon4 = new JTrayIcon("icon.dll", ImageFileType.ICO, 0);
Copyright (c) 2001-2008
| Field Summary | |
|---|---|
static int |
ICO
ICO includes ico files, exe files, and dll files. |
static int |
JAVA_SUPPORTED
Java Supported images include gif, png, and jpeg. |
| Constructor Summary | |
|---|---|
ImageFileType()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int JAVA_SUPPORTED
Java Supported images include gif, png, and jpeg.
public static final int ICO
ICO includes ico files, exe files, and dll files.
| Constructor Detail |
|---|
public ImageFileType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||