com.jpackages.jtray
Class ImageFileType

java.lang.Object
  extended by com.jpackages.jtray.ImageFileType

public abstract class ImageFileType
extends java.lang.Object

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

Author:
JPackages.com

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

JAVA_SUPPORTED

public static final int JAVA_SUPPORTED

Java Supported images include gif, png, and jpeg.

See Also:
Constant Field Values

ICO

public static final int ICO

ICO includes ico files, exe files, and dll files.

See Also:
Constant Field Values
Constructor Detail

ImageFileType

public ImageFileType()