Class PieceBlocksView
java.lang.Object
com.biglybt.ui.swt.views.PieceBlocksView
- All Implemented Interfaces:
ParameterListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener
public class PieceBlocksView
extends Object
implements UIPluginViewToolBarListener, UISWTViewCoreEventListener, ParameterListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<DownloadManager> private booleanprivate static final org.eclipse.swt.graphics.Color[]private TimerEventPeriodicprivate org.eclipse.swt.widgets.Canvasprivate booleanprivate PieceBlocksView.ManagerData[]private Objectprivate Objectprivate org.eclipse.swt.graphics.Imageprivate intprivate booleanprivate static final String[]private intstatic Stringprivate UISWTViewFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddataSourceChanged(Object newDataSource) protected voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprotected org.eclipse.swt.widgets.Compositeprivate StringgetData()protected voidinitialize(org.eclipse.swt.widgets.Composite parent) voidparameterChanged(String parameterName) Called, when a parameter has changed.protected voidrefresh()voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprotected voidsetFocused(boolean foc) booleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemprivate voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UIPluginViewToolBarListener
isActiveMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
Field Details
-
MSGID_PREFIX
-
block_colours
private static final org.eclipse.swt.graphics.Color[] block_colours -
legend_keys
-
MAX_ACTIVE_BLOCKS
private int MAX_ACTIVE_BLOCKS -
canvas
private org.eclipse.swt.widgets.Canvas canvas -
img
private org.eclipse.swt.graphics.Image img -
block_refresher
-
dm_data_lock
-
dm_data
-
all_blocks_view
private volatile boolean all_blocks_view -
comp_focused
private boolean comp_focused -
focus_pending_ds
-
abv_last_active
-
swtView
-
last_left_to_right
private boolean last_left_to_right -
last_alpha
private int last_alpha
-
-
Constructor Details
-
PieceBlocksView
public PieceBlocksView()
-
-
Method Details
-
parameterChanged
Description copied from interface:ParameterListenerCalled, 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:
parameterChangedin interfaceParameterListener- Parameters:
parameterName- the name of the parameter that has changed
-
setFocused
protected void setFocused(boolean foc) -
dataSourceChanged
-
delete
protected void delete() -
getComposite
protected org.eclipse.swt.widgets.Composite getComposite() -
getData
-
initialize
protected void initialize(org.eclipse.swt.widgets.Composite parent) -
refresh
protected void refresh() -
updateImage
private void updateImage() -
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-