org.gudy.azureus2.ui.swt.views.piece
Class PieceInfoView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.piece.PieceInfoView
All Implemented Interfaces:
DownloadManagerPieceListener, UISWTViewEventListener, UISWTViewCoreEventListener, UISWTViewCoreEventListenerEx

public class PieceInfoView
extends Object
implements DownloadManagerPieceListener, UISWTViewCoreEventListenerEx

Piece Map View.

This view is placed within the PiecesView even though it relies on a DownloadManager datasource instead of a PEPiece

Also placed in Library views

Author:
TuxPaper

Field Summary
static String MSGID_PREFIX
           
protected  org.eclipse.swt.widgets.Canvas pieceInfoCanvas
           
 
Constructor Summary
PieceInfoView()
          Initialize
 
Method Summary
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 UISWTViewCoreEventListener getClone()
           
 boolean isCloneable()
           
 void pieceAdded(PEPiece piece)
           
 void pieceRemoved(PEPiece piece)
           
protected  void refreshInfoCanvas()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSGID_PREFIX

public static final String MSGID_PREFIX
See Also:
Constant Field Values

pieceInfoCanvas

protected org.eclipse.swt.widgets.Canvas pieceInfoCanvas
Constructor Detail

PieceInfoView

public PieceInfoView()
Initialize

Method Detail

isCloneable

public boolean isCloneable()
Specified by:
isCloneable in interface UISWTViewCoreEventListenerEx

getClone

public UISWTViewCoreEventListener getClone()
Specified by:
getClone in interface UISWTViewCoreEventListenerEx

refreshInfoCanvas

protected void refreshInfoCanvas()

pieceAdded

public void pieceAdded(PEPiece piece)
Specified by:
pieceAdded in interface DownloadManagerPieceListener

pieceRemoved

public void pieceRemoved(PEPiece piece)
Specified by:
pieceRemoved in interface DownloadManagerPieceListener

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