Class MultiPlotGraphic

All Implemented Interfaces:
ParameterListener, Graphic

public class MultiPlotGraphic extends ScaledGraphic implements ParameterListener
  • Field Details

    • DEFAULT_ENTRIES

      private static final int DEFAULT_ENTRIES
      See Also:
    • value_sources

      private ValueSource[] value_sources
    • internalLoop

      private int internalLoop
    • graphicsUpdate

      private int graphicsUpdate
    • oldSize

      private org.eclipse.swt.graphics.Point oldSize
    • bufferImage

      private org.eclipse.swt.graphics.Image bufferImage
    • nbValues

      private int nbValues
    • maxEntries

      private int maxEntries
    • all_values

      private int[][] all_values
    • currentPosition

      private int currentPosition
    • update_outstanding

      private boolean update_outstanding
    • update_period_millis

      private int update_period_millis
    • update_event

      private TimerEventPeriodic update_event
    • maintain_history

      private boolean maintain_history
    • timeFormatter

      private SimpleDateFormat timeFormatter
    • explicitTimes

      private long[] explicitTimes
  • Constructor Details

  • Method Details

    • getInstance

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

      public static MultiPlotGraphic getInstance(int num_entries, ValueSource[] sources, ValueFormater formatter)
    • init

      private void init(int[][] history, long[] times)
    • getHistory

      public int[][] getHistory()
    • 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)
    • addMenuItems

      protected void addMenuItems(org.eclipse.swt.widgets.Menu menu)
      Overrides:
      addMenuItems in class BackGroundGraphic
    • setActive

      public void setActive(boolean active)
    • setActive

      public void setActive(boolean active, int period_millis)
    • reset

      public void reset(int[][] history)
    • reset

      public void reset(int[][] history, long[] times)
    • getAverage

      public int[] getAverage(int num_entries)
    • addIntsValue

      private void addIntsValue(int[] new_values)
    • refresh

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

      public int getVisibleEntryCount()
    • drawChart

      protected void drawChart(boolean sizeChanged)
    • computeAverage

      private int computeAverage(int line_index, 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
    • dispose

      public void dispose(boolean _maintain_history)