org.gudy.azureus2.ui.swt.views
Class PieceDistributionView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.PieceDistributionView
All Implemented Interfaces:
UISWTViewEventListener, UISWTViewCoreEventListener
Direct Known Subclasses:
MyPieceDistributionView, RemotePieceDistributionView

public abstract class PieceDistributionView
extends Object
implements UISWTViewCoreEventListener

Author:
Aaron Grunthal

Field Summary
protected  boolean[] hasPieces
           
protected  boolean isMe
           
protected  PEPeerManager pem
           
 
Constructor Summary
PieceDistributionView()
           
 
Method Summary
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 has
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pem

protected PEPeerManager pem

hasPieces

protected boolean[] hasPieces

isMe

protected boolean isMe
Constructor Detail

PieceDistributionView

public PieceDistributionView()
Method Detail

dataSourceChanged

public 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 has


refresh

public void refresh()

eventOccurred

public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface: UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs

Specified by:
eventOccurred in interface UISWTViewEventListener
Parameters:
event - event that occurred
Returns:
meaning dependent upon event type