org.gudy.azureus2.ui.swt.components.graphics
Class PingGraphic
java.lang.Object
org.gudy.azureus2.ui.swt.components.graphics.BackGroundGraphic
org.gudy.azureus2.ui.swt.components.graphics.ScaledGraphic
org.gudy.azureus2.ui.swt.components.graphics.PingGraphic
- All Implemented Interfaces:
- ParameterListener, Graphic
public class PingGraphic
- extends ScaledGraphic
- implements ParameterListener
- Author:
- Olivier
Field Summary |
protected org.eclipse.swt.graphics.Image |
bufferImage
|
static org.eclipse.swt.graphics.Color[] |
colors
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
colors
public static org.eclipse.swt.graphics.Color[] colors
bufferImage
protected org.eclipse.swt.graphics.Image bufferImage
getInstance
public static PingGraphic getInstance()
addIntsValue
public void addIntsValue(int[] new_values)
refresh
public void refresh()
drawChart
protected void drawChart(boolean sizeChanged)
computeAverage
protected int computeAverage(int position)
parameterChanged
public void parameterChanged(String parameter)
- Description copied from interface:
ParameterListener
- Called, when a parameter has changed.
The listener could only react if the parameter name is relevant.
Or the listener can just read all parameters again.
- Specified by:
parameterChanged
in interface ParameterListener
- Parameters:
parameter
- the name of the parameter that has changed
dispose
public void dispose()
- Overrides:
dispose
in class ScaledGraphic