Package com.biglybt.ui.swt.mdi
Class MdiEntryVitalityImageSWT
- java.lang.Object
-
- com.biglybt.ui.swt.mdi.MdiEntryVitalityImageSWT
-
- All Implemented Interfaces:
MdiEntryVitalityImage
public class MdiEntryVitalityImageSWT extends java.lang.Object implements MdiEntryVitalityImage
-
-
Field Summary
Fields Modifier and Type Field Description private int
alignment
private boolean
alwaysLast
private int
currentAnimationIndex
private int
delayTime
private java.lang.String
fullImageID
private org.eclipse.swt.graphics.Rectangle
hitArea
private java.lang.String
imageID
private org.eclipse.swt.graphics.Image[]
images
private java.util.List<MdiEntryVitalityImageListener>
listeners
private MdiEntry
mdiEntry
private TimerEventPerformer
performer
private boolean
showOnlyOnSelection
private boolean
showOutsideOfEntry
private java.lang.String
suffix
private TimerEventPeriodic
timerEvent
private java.lang.String
tooltip
private boolean
visible
-
Constructor Summary
Constructors Constructor Description MdiEntryVitalityImageSWT(MdiEntry mdiEntry, java.lang.String imageID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(MdiEntryVitalityImageListener l)
private void
createTimerEvent()
void
dispose()
int
getAlignment()
boolean
getAlwaysLast()
int
getCurrentAnimationIndex(org.eclipse.swt.graphics.Image[] images)
int
getDelayTime()
org.eclipse.swt.graphics.Rectangle
getHitArea()
org.eclipse.swt.graphics.Image
getImage()
java.lang.String
getImageID()
MdiEntry
getMdiEntry()
boolean
getShowOnlyOnSelection()
boolean
getShowOutsideOfEntry()
Whether the Image is shown outside of the entry.java.lang.String
getToolTip()
boolean
hasListeners()
boolean
isVisible()
void
setAlignment(int alignment)
void
setAlwaysLast(boolean alwaysLast)
void
setDelayTime(int delayTime)
void
setHitArea(org.eclipse.swt.graphics.Rectangle hitArea)
void
setImageID(java.lang.String id)
void
setShowOnlyOnSelection(boolean showOnlyOnSelection)
void
setShowOutsideOfEntry(boolean showOutsideOfEntry)
Whether the Image is shown outside of the entry.void
setToolTip(java.lang.String tooltip)
void
setVisible(boolean visible)
void
switchSuffix(java.lang.String suffix)
void
triggerClickedListeners(int x, int y)
-
-
-
Field Detail
-
imageID
private java.lang.String imageID
-
mdiEntry
private final MdiEntry mdiEntry
-
listeners
private java.util.List<MdiEntryVitalityImageListener> listeners
-
tooltip
private java.lang.String tooltip
-
hitArea
private org.eclipse.swt.graphics.Rectangle hitArea
-
visible
private boolean visible
-
currentAnimationIndex
private int currentAnimationIndex
-
suffix
private java.lang.String suffix
-
performer
private TimerEventPerformer performer
-
timerEvent
private TimerEventPeriodic timerEvent
-
images
private org.eclipse.swt.graphics.Image[] images
-
delayTime
private int delayTime
-
fullImageID
private java.lang.String fullImageID
-
alignment
private int alignment
-
showOutsideOfEntry
private boolean showOutsideOfEntry
-
showOnlyOnSelection
private boolean showOnlyOnSelection
-
alwaysLast
private boolean alwaysLast
-
-
Constructor Detail
-
MdiEntryVitalityImageSWT
public MdiEntryVitalityImageSWT(MdiEntry mdiEntry, java.lang.String imageID)
-
-
Method Detail
-
getImageID
public java.lang.String getImageID()
- Specified by:
getImageID
in interfaceMdiEntryVitalityImage
-
getMdiEntry
public MdiEntry getMdiEntry()
- Specified by:
getMdiEntry
in interfaceMdiEntryVitalityImage
- Returns:
- the sideBarEntry
-
addListener
public void addListener(MdiEntryVitalityImageListener l)
- Specified by:
addListener
in interfaceMdiEntryVitalityImage
-
hasListeners
public boolean hasListeners()
-
triggerClickedListeners
public void triggerClickedListeners(int x, int y)
- Specified by:
triggerClickedListeners
in interfaceMdiEntryVitalityImage
-
setToolTip
public void setToolTip(java.lang.String tooltip)
- Specified by:
setToolTip
in interfaceMdiEntryVitalityImage
-
getToolTip
public java.lang.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 interfaceMdiEntryVitalityImage
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interfaceMdiEntryVitalityImage
-
createTimerEvent
private void createTimerEvent()
- Since:
- 3.1.1.1
-
getCurrentAnimationIndex
public int getCurrentAnimationIndex(org.eclipse.swt.graphics.Image[] images)
- Parameters:
images
-- Returns:
- the currentAnimationIndex
-
switchSuffix
public void switchSuffix(java.lang.String suffix)
-
setImageID
public void setImageID(java.lang.String id)
- Specified by:
setImageID
in interfaceMdiEntryVitalityImage
-
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 interfaceMdiEntryVitalityImage
-
setAlignment
public void setAlignment(int alignment)
- Specified by:
setAlignment
in interfaceMdiEntryVitalityImage
-
getShowOutsideOfEntry
public boolean getShowOutsideOfEntry()
Description copied from interface:MdiEntryVitalityImage
Whether the Image is shown outside of the entry. ie. TabbedMDI has a section to the right of all tabs that can display actions.- Specified by:
getShowOutsideOfEntry
in interfaceMdiEntryVitalityImage
-
setShowOutsideOfEntry
public void setShowOutsideOfEntry(boolean showOutsideOfEntry)
Description copied from interface:MdiEntryVitalityImage
Whether the Image is shown outside of the entry. ie. TabbedMDI has a section to the right of all tabs that can display actions.- Specified by:
setShowOutsideOfEntry
in interfaceMdiEntryVitalityImage
-
setShowOnlyOnSelection
public void setShowOnlyOnSelection(boolean showOnlyOnSelection)
-
getShowOnlyOnSelection
public boolean getShowOnlyOnSelection()
-
setAlwaysLast
public void setAlwaysLast(boolean alwaysLast)
-
getAlwaysLast
public boolean getAlwaysLast()
-
dispose
public void dispose()
-
-