Package com.biglybt.ui.swt.mdi
Class MdiEntryVitalityImageSWT
java.lang.Object
com.biglybt.ui.swt.mdi.MdiEntryVitalityImageSWT
- All Implemented Interfaces:
MdiEntryVitalityImage
,TabFolderRenderer.TabbedEntryVitalityImage
public class MdiEntryVitalityImageSWT
extends Object
implements MdiEntryVitalityImage, TabFolderRenderer.TabbedEntryVitalityImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private int
private int
private String
private org.eclipse.swt.graphics.Rectangle
private String
private org.eclipse.swt.graphics.Image[]
private List
<MdiEntryVitalityImageListener> private final MdiEntry
private TimerEventPerformer
private boolean
private boolean
private String
private TimerEventPeriodic
private String
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
dispose()
int
boolean
int
getCurrentAnimationIndex
(org.eclipse.swt.graphics.Image[] images) int
org.eclipse.swt.graphics.Rectangle
org.eclipse.swt.graphics.Image
getImage()
boolean
boolean
Whether the Image is shown outside of the entry.boolean
boolean
void
setAlignment
(int alignment) void
setAlwaysLast
(boolean alwaysLast) void
setDelayTime
(int delayTime) void
setHitArea
(org.eclipse.swt.graphics.Rectangle hitArea) void
setImageID
(String id) void
setShowOnlyOnSelection
(boolean showOnlyOnSelection) void
setShowOutsideOfEntry
(boolean showOutsideOfEntry) Whether the Image is shown outside of the entry.void
setToolTip
(String tooltip) void
setVisible
(boolean visible) void
switchSuffix
(String suffix) void
triggerClickedListeners
(int x, int y)
-
Field Details
-
imageID
-
mdiEntry
-
listeners
-
tooltip
-
hitArea
private org.eclipse.swt.graphics.Rectangle hitArea -
visible
private boolean visible -
currentAnimationIndex
private int currentAnimationIndex -
suffix
-
performer
-
timerEvent
-
images
private org.eclipse.swt.graphics.Image[] images -
delayTime
private int delayTime -
fullImageID
-
alignment
private int alignment -
showOutsideOfEntry
private boolean showOutsideOfEntry -
showOnlyOnSelection
private boolean showOnlyOnSelection -
alwaysLast
private boolean alwaysLast
-
-
Constructor Details
-
MdiEntryVitalityImageSWT
-
-
Method Details
-
getImageID
- Specified by:
getImageID
in interfaceMdiEntryVitalityImage
-
getMdiEntry
- Specified by:
getMdiEntry
in interfaceMdiEntryVitalityImage
- Returns:
- the sideBarEntry
-
addListener
- Specified by:
addListener
in interfaceMdiEntryVitalityImage
-
hasListeners
public boolean hasListeners() -
triggerClickedListeners
public void triggerClickedListeners(int x, int y) - Specified by:
triggerClickedListeners
in interfaceMdiEntryVitalityImage
-
setToolTip
- Specified by:
setToolTip
in interfaceMdiEntryVitalityImage
-
getToolTip
-
setHitArea
public void setHitArea(org.eclipse.swt.graphics.Rectangle hitArea) - Specified by:
setHitArea
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
- 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
- Specified by:
isVisible
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
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
- Specified by:
switchSuffix
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
setImageID
- Specified by:
setImageID
in interfaceMdiEntryVitalityImage
-
getImage
public org.eclipse.swt.graphics.Image getImage()- Specified by:
getImage
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
- 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
- Specified by:
getAlignment
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
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
- Specified by:
getShowOutsideOfEntry
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
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()- Specified by:
getShowOnlyOnSelection
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
setAlwaysLast
public void setAlwaysLast(boolean alwaysLast) -
getAlwaysLast
public boolean getAlwaysLast()- Specified by:
getAlwaysLast
in interfaceTabFolderRenderer.TabbedEntryVitalityImage
-
dispose
public void dispose()
-