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.Compositeprotected boolean[]private org.eclipse.swt.graphics.Imageprivate booleanprotected booleanprotected PEPeerManagerprivate org.eclipse.swt.widgets.Canvasprotected UISWTView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidabstract voiddataSourceChanged(Object newDataSource) implementors of this method must provide an appropriate peer manager and possibly provide the hasPieces array for pieces the data source hasprotected voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate org.eclipse.swt.widgets.Compositeprivate Stringprivate voidinitialize(org.eclipse.swt.widgets.Composite parent) voidrefresh()private final voidprivate voidprivate voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UISWTViewEventListener
builderNotRequired, 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
protected void delete() -
viewActivated
private void viewActivated() -
viewDeactivated
private void viewDeactivated() -
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
-