Class PingGraphic

    • Field Detail

      • 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
    • Method Detail

      • getInstance

        public static PingGraphic getInstance()
      • setColors

        public void setColors​(org.eclipse.swt.graphics.Color[] _colors)
      • setExternalAverage

        public void setExternalAverage​(boolean b)
      • 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​(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