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
public abstract class PieceDistributionView extends java.lang.Object implements UISWTViewCoreEventListener
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Composite
comp
protected boolean[]
hasPieces
private org.eclipse.swt.graphics.Image
imgToPaint
private boolean
initialized
protected boolean
isMe
protected PEPeerManager
pem
private org.eclipse.swt.widgets.Canvas
pieceDistCanvas
protected UISWTView
swtView
-
Constructor Summary
Constructors Constructor Description PieceDistributionView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
createPieceDistPanel()
abstract void
dataSourceChanged(java.lang.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
getComposite()
private java.lang.String
getFullTitle()
private void
initialize(org.eclipse.swt.widgets.Composite parent)
void
refresh()
private void
updateDistribution()
private void
viewActivated()
private void
viewDeactivated()
-
-
-
Field Detail
-
comp
private org.eclipse.swt.widgets.Composite comp
-
pieceDistCanvas
private org.eclipse.swt.widgets.Canvas pieceDistCanvas
-
pem
protected PEPeerManager pem
-
hasPieces
protected boolean[] hasPieces
-
isMe
protected boolean isMe
-
initialized
private boolean initialized
-
imgToPaint
private org.eclipse.swt.graphics.Image imgToPaint
-
swtView
protected UISWTView swtView
-
-
Method Detail
-
dataSourceChanged
public abstract void dataSourceChanged(java.lang.Object newDataSource)
implementors of this method must provide an appropriate peer manager and possibly provide the hasPieces array for pieces the data source has
-
getFullTitle
private java.lang.String 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
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
-
-