com.aelitis.azureus.ui.swt.views.skin.sidebar
Class SideBarVitalityImageSWT

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.views.skin.sidebar.SideBarVitalityImageSWT
All Implemented Interfaces:
MdiEntryVitalityImage

public class SideBarVitalityImageSWT
extends Object
implements MdiEntryVitalityImage

Author:
TuxPaper

Constructor Summary
SideBarVitalityImageSWT(MdiEntry mdiEntry, String imageID)
           
 
Method Summary
 void addListener(MdiEntryVitalityImageListener l)
           
 int getAlignment()
           
 int getCurrentAnimationIndex(org.eclipse.swt.graphics.Image[] images)
           
 int getDelayTime()
           
 org.eclipse.swt.graphics.Rectangle getHitArea()
           
 org.eclipse.swt.graphics.Image getImage()
           
 String getImageID()
           
 MdiEntry getMdiEntry()
           
 String getToolTip()
           
 boolean isVisible()
           
 void setAlignment(int alignment)
           
 void setDelayTime(int delayTime)
           
 void setHitArea(org.eclipse.swt.graphics.Rectangle hitArea)
           
 void setImageID(String id)
           
 void setToolTip(String tooltip)
           
 void setVisible(boolean visible)
           
 void switchSuffix(String suffix)
           
 void triggerClickedListeners(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SideBarVitalityImageSWT

public SideBarVitalityImageSWT(MdiEntry mdiEntry,
                               String imageID)
Method Detail

getImageID

public String getImageID()
Specified by:
getImageID in interface MdiEntryVitalityImage

getMdiEntry

public MdiEntry getMdiEntry()
Specified by:
getMdiEntry in interface MdiEntryVitalityImage
Returns:
the sideBarEntry

addListener

public void addListener(MdiEntryVitalityImageListener l)
Specified by:
addListener in interface MdiEntryVitalityImage

triggerClickedListeners

public void triggerClickedListeners(int x,
                                    int y)
Specified by:
triggerClickedListeners in interface MdiEntryVitalityImage

setToolTip

public void setToolTip(String tooltip)
Specified by:
setToolTip in interface MdiEntryVitalityImage

getToolTip

public String getToolTip()

setHitArea

public void setHitArea(org.eclipse.swt.graphics.Rectangle hitArea)
Parameters:
bounds - relative to entry
Since:
3.1.1.1

getHitArea

public org.eclipse.swt.graphics.Rectangle getHitArea()

isVisible

public boolean isVisible()
Specified by:
isVisible in interface MdiEntryVitalityImage

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface MdiEntryVitalityImage

getCurrentAnimationIndex

public int getCurrentAnimationIndex(org.eclipse.swt.graphics.Image[] images)
Parameters:
images -
Returns:
the currentAnimationIndex

switchSuffix

public void switchSuffix(String suffix)

setImageID

public void setImageID(String id)
Specified by:
setImageID in interface MdiEntryVitalityImage

getImage

public org.eclipse.swt.graphics.Image getImage()
Returns:
Since:
3.1.1.1

setDelayTime

public void setDelayTime(int delayTime)
Parameters:
delayTime - the delayTime to set

getDelayTime

public int getDelayTime()
Returns:
the delayTime

getAlignment

public int getAlignment()
Specified by:
getAlignment in interface MdiEntryVitalityImage

setAlignment

public void setAlignment(int alignment)
Specified by:
setAlignment in interface MdiEntryVitalityImage