Package com.biglybt.ui.swt.views
Class DownloadActivityView
- java.lang.Object
-
- com.biglybt.ui.swt.views.DownloadActivityView
-
- All Implemented Interfaces:
ParameterListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,MdiSWTMenuHackListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class DownloadActivityView extends java.lang.Object implements UISWTViewCoreEventListener, UIPluginViewToolBarListener, MdiSWTMenuHackListener, ParameterListener
aka "Speed" sub view
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DownloadActivityView.ValueSourceImpl
-
Field Summary
Fields Modifier and Type Field Description private boolean
comp_visible
private MultiPlotGraphic
eta
private static int
ETA_AVERAGE_TICKS
private static org.eclipse.swt.graphics.Color[]
eta_colors
private boolean
legend_at_bottom
private java.util.List<DownloadManager>
managers
private MultiPlotGraphic
mpg
private static org.eclipse.swt.graphics.Color[]
mpg_colors
static java.lang.String
MSGID_PREFIX
private org.eclipse.swt.widgets.Composite
panel
private org.eclipse.swt.widgets.Composite
parent
private boolean
show_time
private UISWTView
swtView
private boolean
viewBuilt
private java.lang.Object
visible_pending_ds
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description DownloadActivityView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
create()
void
dataSourceChanged(java.lang.Object newDataSource)
private void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate void
fillPanel()
org.eclipse.swt.widgets.Composite
getComposite()
private java.lang.String
getFullTitle()
void
initialize(org.eclipse.swt.widgets.Composite parent)
void
menuWillBeShown(MdiEntry entry, org.eclipse.swt.widgets.Menu menu)
void
parameterChanged(java.lang.String parameterName)
Called, when a parameter has changed.private void
rebuild()
private void
refresh(boolean force)
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprivate void
setVisible(boolean vis)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItem-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
MSGID_PREFIX
public static final java.lang.String MSGID_PREFIX
- See Also:
- Constant Field Values
-
mpg_colors
private static org.eclipse.swt.graphics.Color[] mpg_colors
-
ETA_AVERAGE_TICKS
private static final int ETA_AVERAGE_TICKS
- See Also:
- Constant Field Values
-
eta_colors
private static org.eclipse.swt.graphics.Color[] eta_colors
-
swtView
private UISWTView swtView
-
legend_at_bottom
private boolean legend_at_bottom
-
panel
private org.eclipse.swt.widgets.Composite panel
-
viewBuilt
private boolean viewBuilt
-
mpg
private MultiPlotGraphic mpg
-
eta
private MultiPlotGraphic eta
-
managers
private java.util.List<DownloadManager> managers
-
parent
private org.eclipse.swt.widgets.Composite parent
-
show_time
private boolean show_time
-
comp_visible
private boolean comp_visible
-
visible_pending_ds
private java.lang.Object visible_pending_ds
-
-
Method Detail
-
getFullTitle
private java.lang.String getFullTitle()
-
initialize
public void initialize(org.eclipse.swt.widgets.Composite parent)
-
fillPanel
private void fillPanel()
-
refresh
private void refresh(boolean force)
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()
-
setVisible
private void setVisible(boolean vis)
-
dataSourceChanged
public void dataSourceChanged(java.lang.Object newDataSource)
-
rebuild
private void rebuild()
-
menuWillBeShown
public void menuWillBeShown(MdiEntry entry, org.eclipse.swt.widgets.Menu menu)
- Specified by:
menuWillBeShown
in interfaceMdiSWTMenuHackListener
-
parameterChanged
public void parameterChanged(java.lang.String parameterName)
Description copied from interface:ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChanged
in interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
-
create
private void create()
-
delete
private void delete()
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
refreshToolBarItems
public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
-