Package com.biglybt.ui.swt.views
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 class
private class
private class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<DownloadManager> private boolean
private static final org.eclipse.swt.graphics.Color[]
private TimerEventPeriodic
private org.eclipse.swt.widgets.Canvas
private boolean
private PieceBlocksView.ManagerData[]
private Object
private Object
private org.eclipse.swt.graphics.Image
private int
private boolean
private static final String[]
private int
static String
private UISWTView
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dataSourceChanged
(Object newDataSource) protected void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprotected org.eclipse.swt.widgets.Composite
private String
getData()
protected void
initialize
(org.eclipse.swt.widgets.Composite parent) void
parameterChanged
(String parameterName) Called, when a parameter has changed.protected void
refresh()
void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprotected void
setFocused
(boolean foc) boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemprivate void
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
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
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: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
-
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: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
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
- Parameters:
list
-
-