org.gudy.azureus2.ui.swt.components.graphics
Class MultiPlotGraphic

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.components.graphics.BackGroundGraphic
      extended by org.gudy.azureus2.ui.swt.components.graphics.ScaledGraphic
          extended by org.gudy.azureus2.ui.swt.components.graphics.MultiPlotGraphic
All Implemented Interfaces:
ParameterListener, Graphic

public class MultiPlotGraphic
extends ScaledGraphic
implements ParameterListener

Author:
Olivier

Field Summary
 
Fields inherited from class org.gudy.azureus2.ui.swt.components.graphics.ScaledGraphic
bufferScale, formater, scale
 
Fields inherited from class org.gudy.azureus2.ui.swt.components.graphics.BackGroundGraphic
bufferBackground, colorWhite, drawCanvas, lightGrey, lightGrey2, this_mon
 
Method Summary
 void dispose()
           
protected  void drawChart(boolean sizeChanged)
           
static MultiPlotGraphic getInstance(ValueSource[] sources, ValueFormater formatter)
           
 void initialize(org.eclipse.swt.widgets.Canvas canvas)
           
 void initialize(org.eclipse.swt.widgets.Canvas canvas, boolean is_active)
           
 void parameterChanged(String parameter)
          Called, when a parameter has changed.
 void refresh(boolean force)
           
 void reset(int[][] history)
           
 void setActive(boolean active)
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.components.graphics.ScaledGraphic
drawScale, setUpdateDividerWidth
 
Methods inherited from class org.gudy.azureus2.ui.swt.components.graphics.BackGroundGraphic
drawBackGround, setColors, setSIIECSensitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MultiPlotGraphic getInstance(ValueSource[] sources,
                                           ValueFormater formatter)

initialize

public void initialize(org.eclipse.swt.widgets.Canvas canvas)
Specified by:
initialize in interface Graphic
Overrides:
initialize in class BackGroundGraphic

initialize

public void initialize(org.eclipse.swt.widgets.Canvas canvas,
                       boolean is_active)

setActive

public void setActive(boolean active)

reset

public void reset(int[][] history)

refresh

public void refresh(boolean force)
Specified by:
refresh in interface Graphic
Overrides:
refresh in class BackGroundGraphic

drawChart

protected void drawChart(boolean sizeChanged)

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