org.gudy.azureus2.ui.swt.components.graphics
Class SpeedGraphic
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.SpeedGraphic
- All Implemented Interfaces:
- ParameterListener, Graphic
public class SpeedGraphic
- extends ScaledGraphic
- implements ParameterListener
- Author:
- Olivier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLOR_AVERAGE
public static final int COLOR_AVERAGE
- See Also:
- Constant Field Values
COLOR_MAINSPEED
public static final int COLOR_MAINSPEED
- See Also:
- Constant Field Values
COLOR_OVERHEAD
public static final int COLOR_OVERHEAD
- See Also:
- Constant Field Values
COLOR_LIMIT
public static final int COLOR_LIMIT
- See Also:
- Constant Field Values
COLOR_OTHERS
public static final int COLOR_OTHERS
- See Also:
- Constant Field Values
COLOR_TRIMMED
public static final int COLOR_TRIMMED
- See Also:
- Constant Field Values
colors
public org.eclipse.swt.graphics.Color[] colors
bufferImage
protected org.eclipse.swt.graphics.Image bufferImage
initialize
public void initialize(org.eclipse.swt.widgets.Canvas canvas)
- Specified by:
initialize
in interface Graphic
- Overrides:
initialize
in class BackGroundGraphic
getInstance
public static SpeedGraphic getInstance()
getInstance
public static SpeedGraphic getInstance(ValueFormater formatter)
getInstance
public static SpeedGraphic getInstance(Scale scale,
ValueFormater formatter)
addIntsValue
public void addIntsValue(int[] new_values)
addIntValue
public void addIntValue(int value)
refresh
public void refresh(boolean force)
- Specified by:
refresh
in interface Graphic
- Overrides:
refresh
in class BackGroundGraphic
drawChart
protected void drawChart(boolean sizeChanged)
computeAverage
protected int computeAverage(int position)
parameterChanged
public void parameterChanged(java.lang.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
setAlpha
public void setAlpha(int alpha)
setLineColors
public void setLineColors(org.eclipse.swt.graphics.Color average,
org.eclipse.swt.graphics.Color speed,
org.eclipse.swt.graphics.Color overhead,
org.eclipse.swt.graphics.Color limit,
org.eclipse.swt.graphics.Color others,
org.eclipse.swt.graphics.Color trimmed)
setLineColors
public void setLineColors(org.eclipse.swt.graphics.Color[] newChangeableColorSet)