Class PingGraphic
java.lang.Object
com.biglybt.ui.swt.components.graphics.BackGroundGraphic
com.biglybt.ui.swt.components.graphics.ScaledGraphic
com.biglybt.ui.swt.components.graphics.PingGraphic
- All Implemented Interfaces:
ParameterListener, Graphic
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[][]protected org.eclipse.swt.graphics.Imageprivate static final intprivate org.eclipse.swt.graphics.Color[]private intstatic org.eclipse.swt.graphics.Color[]private static final intprivate booleanprivate intprivate intprivate intprivate org.eclipse.swt.graphics.PointFields inherited from class ScaledGraphic
bufferScale, formater, scaleFields inherited from class BackGroundGraphic
bufferBackground, colorBlack, colorGrey, colorWhite, drawCanvas, this_mon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIntsValue(int[] new_values) protected voidaddMenuItems(org.eclipse.swt.widgets.Menu menu) protected intcomputeAverage(int position) voiddispose()protected voiddrawChart(boolean sizeChanged) static PingGraphicvoidinitialize(org.eclipse.swt.widgets.Canvas canvas) voidparameterChanged(String parameter) Called, when a parameter has changed.voidrefresh()voidrefresh(boolean force) voidsetColors(org.eclipse.swt.graphics.Color[] _colors) voidsetExternalAverage(boolean b) Methods inherited from class ScaledGraphic
drawScale, setUpdateDividerWidthMethods inherited from class BackGroundGraphic
drawBackGround, setSIIECSensitive
-
Field Details
-
ENTRIES
private static final int ENTRIES- See Also:
-
COLOR_AVERAGE
private static final int COLOR_AVERAGE- See Also:
-
defaultColors
public static org.eclipse.swt.graphics.Color[] defaultColors -
internalLoop
private int internalLoop -
graphicsUpdate
private int graphicsUpdate -
oldSize
private org.eclipse.swt.graphics.Point oldSize -
bufferImage
protected org.eclipse.swt.graphics.Image bufferImage -
nbValues
private int nbValues -
all_values
private int[][] all_values -
currentPosition
private int currentPosition -
externalAverage
private boolean externalAverage -
colors
private org.eclipse.swt.graphics.Color[] colors
-
-
Constructor Details
-
PingGraphic
-
-
Method Details
-
getInstance
-
setColors
public void setColors(org.eclipse.swt.graphics.Color[] _colors) -
setExternalAverage
public void setExternalAverage(boolean b) -
addMenuItems
protected void addMenuItems(org.eclipse.swt.widgets.Menu menu) - Overrides:
addMenuItemsin classBackGroundGraphic
-
addIntsValue
public void addIntsValue(int[] new_values) -
initialize
public void initialize(org.eclipse.swt.widgets.Canvas canvas) - Specified by:
initializein interfaceGraphic- Overrides:
initializein classBackGroundGraphic
-
refresh
public void refresh(boolean force) - Specified by:
refreshin interfaceGraphic- Overrides:
refreshin classBackGroundGraphic
-
refresh
public void refresh() -
drawChart
protected void drawChart(boolean sizeChanged) -
computeAverage
protected int computeAverage(int position) -
parameterChanged
Description copied from interface:ParameterListenerCalled, 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:
parameterChangedin interfaceParameterListener- Parameters:
parameter- the name of the parameter that has changed
-
dispose
public void dispose()- Overrides:
disposein classScaledGraphic
-