Class PingGraphic

All Implemented Interfaces:
ParameterListener, Graphic

public class PingGraphic extends ScaledGraphic implements ParameterListener
  • 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

  • Method Details

    • getInstance

      public static PingGraphic 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:
      addMenuItems in class BackGroundGraphic
    • addIntsValue

      public void addIntsValue(int[] new_values)
    • initialize

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

      public void refresh(boolean force)
      Specified by:
      refresh in interface Graphic
      Overrides:
      refresh in class BackGroundGraphic
    • 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