Package com.biglybt.ui.swt.views
Class PieceDistributionView
java.lang.Object
com.biglybt.ui.swt.views.PieceDistributionView
- All Implemented Interfaces:
UISWTViewEventListener
,UISWTViewCoreEventListener
- Direct Known Subclasses:
MyPieceDistributionView
,RemotePieceDistributionView
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Composite
protected boolean[]
private org.eclipse.swt.graphics.Image
private boolean
protected boolean
protected PEPeerManager
private org.eclipse.swt.widgets.Canvas
protected UISWTView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
abstract void
dataSourceChanged
(Object newDataSource) implementors of this method must provide an appropriate peer manager and possibly provide the hasPieces array for pieces the data source hasprivate void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate org.eclipse.swt.widgets.Composite
private String
private void
initialize
(org.eclipse.swt.widgets.Composite parent) void
refresh()
private final void
private void
private 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.ui.swt.pif.UISWTViewEventListener
informOfDuplicates
-
Field Details
-
comp
private org.eclipse.swt.widgets.Composite comp -
pieceDistCanvas
private org.eclipse.swt.widgets.Canvas pieceDistCanvas -
pem
-
hasPieces
protected boolean[] hasPieces -
isMe
protected boolean isMe -
initialized
private boolean initialized -
imgToPaint
private org.eclipse.swt.graphics.Image imgToPaint -
swtView
-
-
Constructor Details
-
PieceDistributionView
public PieceDistributionView()
-
-
Method Details
-
dataSourceChanged
implementors of this method must provide an appropriate peer manager and possibly provide the hasPieces array for pieces the data source has -
getFullTitle
-
initialize
private void initialize(org.eclipse.swt.widgets.Composite parent) -
createPieceDistPanel
private void createPieceDistPanel() -
updateDistribution
private final void updateDistribution() -
refresh
public void refresh() -
getComposite
private org.eclipse.swt.widgets.Composite getComposite() -
delete
private void delete() -
viewActivated
private void viewActivated() -
viewDeactivated
private void viewDeactivated() -
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
-