Methods Summary |
---|
public void | delete()
Utils.disposeComposite(upSpeedCanvas);
upSpeedGraphic.dispose();
|
public org.eclipse.swt.widgets.Composite | getComposite()
return upSpeedCanvas;
|
public java.lang.String | getData()
return "SpeedView.title.full";
|
public java.lang.String | getFullTitle()
return "UL Speed";
|
public void | initialize(org.eclipse.swt.widgets.Composite composite)
GridData gridData;
upSpeedCanvas = new Canvas(composite, SWT.NULL);
gridData = new GridData(GridData.FILL_BOTH);
upSpeedCanvas.setLayoutData(gridData);
upSpeedGraphic = SpeedGraphic.getInstance();
upSpeedGraphic.initialize(upSpeedCanvas);
//upSpeedGraphic.setAutoAlpha(true);
|
public void | periodicUpdate()
int swarms_peer_speed = (int) stats.getTotalSwarmsPeerRate(true, false);
upSpeedGraphic.addIntsValue(new int[] {
stats.getDataSendRate() + stats.getProtocolSendRate(),
COConfigurationManager.getIntParameter(TransferSpeedValidator.getActiveUploadParameter(manager)) * 1024,
swarms_peer_speed
});
|
public void | refresh()
upSpeedGraphic.refresh();
|