FileDocCategorySizeDatePackage
AverageBytesOutItem.javaAPI DocAzureus 3.0.3.41857Thu Feb 09 19:42:50 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.mytracker

AverageBytesOutItem

public class AverageBytesOutItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
TuxPaper
since
2.0.8.5

Fields Summary
Constructors Summary
public AverageBytesOutItem()
Default Constructor

    super("bytesoutave", ALIGN_TRAIL, POSITION_LAST, 50, TableManager.TABLE_MYTRACKER);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
    long value = (item == null) ? 0 : item.getAverageBytesOut();

    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
    cell.setText(DisplayFormatters.formatByteCountToKiBEtcPerSec(value));