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 Object implements UISWTViewCoreEventListener
  • Field Details

    • 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
  • Constructor Details

    • PieceDistributionView

      public PieceDistributionView()
  • Method Details

    • 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
    • getFullTitle

      private 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 interface UISWTViewEventListener
      Parameters:
      event - event that occurred
      Returns:
      meaning dependent upon event type