|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.maxistech.desktopex.SystemTray
A platform independent system tray icon. Image formats supported are GIF, JPG, and PNG, Windows Bitmap (BMP), and Windows Icon (ICO).
| Method Summary | |
void |
add()
Adds this system tray. |
void |
addSystemTrayListener(SystemTrayListener l)
Adds a listener to system tray notification events. |
String[] |
getIconAsFileName()
Gets the registered icon(s) as file names. |
long |
getIconRotationInterval()
Gets the time interval (in milliseconds) between icon rotation. |
String |
getToolTipText()
Gets the registered tool tip. |
Rectangle |
getWorkAreaBounds(Rectangle rect)
Gets the bounds of work area. |
boolean |
isAdded()
Indicates if this system tray is added. |
boolean |
isIconRotationWrapped()
Indicates if icon rotation will wrap around. |
static SystemTray |
newInstance(String tooltip)
Creates a new platform-specific instance of system tray. |
static SystemTray |
newInstance(String tooltip,
String iconFileName)
Creates a new platform-specific instance of system tray. |
void |
remove()
Removes this system tray. |
void |
removeSystemTrayListener(SystemTrayListener l)
Removes a registered listener to system tray notification events. |
void |
setIconAsFileName(String iconFileName)
Registers a single icon to display that is obtained from a file of the specified name |
void |
setIconAsFileName(String[] iconFileNames)
Registers a list of icons to display that are obtained from files of the specified names. |
void |
setIconAsResourceName(String resourceName)
Registers a single icon to display that is obtained from a resource of the specified name from the search path used to load classes. |
void |
setIconAsResourceName(String[] resourceNames)
Registers a list of icons to display that are obtained from resources of the specified names from the search path used to load classes. |
void |
setIconRotationInterval(long interval)
Sets the time interval (in milliseconds) between icon rotation. |
void |
setIconRotationWrapped(boolean wrapped)
Sets if icon rotation will wrap around. |
void |
setToolTipText(String tooltip)
Registers the text to display in a tool tip. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SystemTray newInstance(String tooltip)
tooltip - text of tool tip of this system tray.
public static SystemTray newInstance(String tooltip,
String iconFileName)
tooltip - text of tool tip of this system tray.iconFileName - file name of the icon of this system tray.public void setIconRotationWrapped(boolean wrapped)
public boolean isIconRotationWrapped()
public void setIconRotationInterval(long interval)
public long getIconRotationInterval()
public void setToolTipText(String tooltip)
public String getToolTipText()
public final void setIconAsResourceName(String resourceName)
resourceName - resource nameClassLoader.getSystemResource(java.lang.String)public final void setIconAsFileName(String iconFileName)
iconFileName - name of the file that contains the icon.public final void setIconAsResourceName(String[] resourceNames)
resourceNames - a list of resource names that contains iconspublic final void setIconAsFileName(String[] iconFileNames)
public String[] getIconAsFileName()
public void add()
public void remove()
public boolean isAdded()
public Rectangle getWorkAreaBounds(Rectangle rect)
rect - rectangle that holds the bounds of the work area.
If provided, it is the rectangle being returned.
public void addSystemTrayListener(SystemTrayListener l)
public void removeSystemTrayListener(SystemTrayListener l)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||