com.melloware.jukes.tray
Class JukesTrayIcon

java.lang.Object
  extended by com.melloware.jukes.tray.JukesTrayIcon
All Implemented Interfaces:
ITrayIcon

public class JukesTrayIcon
extends java.lang.Object
implements ITrayIcon

Tray icon using JDK 6 SystemTray class.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III

Constructor Summary
JukesTrayIcon(javax.swing.JFrame aParentWindow)
          Default Constructor.
 
Method Summary
 void changeImage(java.awt.Image aImage)
           
 void cleanUp()
           
 void hideWindow()
           
 boolean isAvailable()
           
 void leftClicked()
          When the icon is single clicked in the tray.
 void middleClicked()
          When the icon is middle button clicked.
 void setToolTip(java.lang.String aTip)
           
 void showWindow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JukesTrayIcon

public JukesTrayIcon(javax.swing.JFrame aParentWindow)
              throws java.awt.AWTException
Default Constructor.

Parameters:
aParentWindow - the JFrame to control this tray icon
Throws:
java.awt.AWTException - if any error occurs initializing
Method Detail

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface ITrayIcon

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface ITrayIcon

hideWindow

public void hideWindow()
Specified by:
hideWindow in interface ITrayIcon

leftClicked

public void leftClicked()
When the icon is single clicked in the tray. For now it will call pause and play of the player.


middleClicked

public void middleClicked()
When the icon is middle button clicked. For now advance to next song when this button is pressed.


showWindow

public void showWindow()
Specified by:
showWindow in interface ITrayIcon

changeImage

public void changeImage(java.awt.Image aImage)
Specified by:
changeImage in interface ITrayIcon

setToolTip

public void setToolTip(java.lang.String aTip)
Specified by:
setToolTip in interface ITrayIcon


Copyright © 1999-2008 Melloware Inc. All Rights Reserved.