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

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.PeersGraphicView
All Implemented Interfaces:
DownloadManagerPeerListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener

public class PeersGraphicView
extends Object
implements DownloadManagerPeerListener, UISWTViewCoreEventListener, UIPluginViewToolBarListener

This is the "Swarm" View

Author:
Olivier Chalouhi

Field Summary
static String MSGID_PREFIX
           
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Constructor Summary
PeersGraphicView()
           
 
Method Summary
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 void peerAdded(PEPeer peer)
           
 void peerManagerAdded(PEPeerManager manager)
           
 void peerManagerRemoved(PEPeerManager manager)
           
 void peerManagerWillBeAdded(PEPeerManager peer_manager)
          Called when a peer manager is created but not yet started
 void peerRemoved(PEPeer peer)
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSGID_PREFIX

public static String MSGID_PREFIX
Constructor Detail

PeersGraphicView

public PeersGraphicView()
Method Detail

peerManagerWillBeAdded

public void peerManagerWillBeAdded(PEPeerManager peer_manager)
Description copied from interface: DownloadManagerPeerListener
Called when a peer manager is created but not yet started

Specified by:
peerManagerWillBeAdded in interface DownloadManagerPeerListener

peerManagerAdded

public void peerManagerAdded(PEPeerManager manager)
Specified by:
peerManagerAdded in interface DownloadManagerPeerListener

peerManagerRemoved

public void peerManagerRemoved(PEPeerManager manager)
Specified by:
peerManagerRemoved in interface DownloadManagerPeerListener

peerAdded

public void peerAdded(PEPeer peer)
Specified by:
peerAdded in interface DownloadManagerPeerListener

peerRemoved

public void peerRemoved(PEPeer peer)
Specified by:
peerRemoved in interface DownloadManagerPeerListener

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

toolBarItemActivated

public boolean toolBarItemActivated(ToolBarItem item,
                                    long activationType,
                                    Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

refreshToolBarItems

public void refreshToolBarItems(Map<String,Long> list)
Description copied from interface: UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set

Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener