Class TmfSelectionRangeUpdatedSignal

java.lang.Object
org.eclipse.tracecompass.tmf.core.signal.TmfSignal
org.eclipse.tracecompass.tmf.core.signal.TmfSelectionRangeUpdatedSignal

@NonNullByDefault public class TmfSelectionRangeUpdatedSignal extends TmfSignal
A new time range selection has been made. This is the selected time or time range. A single-timestamp selection is represented by a range where the start time is equal to the end time. To update the visible (zoom) range instead, use TmfWindowRangeUpdatedSignal.
Since:
1.0
Author:
Francois Chouinard
  • Constructor Details

    • TmfSelectionRangeUpdatedSignal

      public TmfSelectionRangeUpdatedSignal(@Nullable Object source, ITmfTimestamp ts)
      Constructor for a single timestamp selection (start and end times will be the same).
      Parameters:
      source - Object sending this signal
      ts - Timestamp of selection
    • TmfSelectionRangeUpdatedSignal

      public TmfSelectionRangeUpdatedSignal(@Nullable Object source, ITmfTimestamp begin, ITmfTimestamp end)
      Constructor for a time range selection.
      Parameters:
      source - Object sending this signal
      begin - Timestamp of begin of selection range
      end - Timestamp of end of selection range
    • TmfSelectionRangeUpdatedSignal

      public TmfSelectionRangeUpdatedSignal(@Nullable Object source, ITmfTimestamp begin, ITmfTimestamp end, @Nullable ITmfTrace trace)
      Constructor for a time range selection.
      Parameters:
      source - Object sending this signal
      begin - Timestamp of begin of selection range
      end - Timestamp of end of selection range
      trace - The trace that triggered the selection, or null
      Since:
      3.2
  • Method Details

    • getBeginTime

      public ITmfTimestamp getBeginTime()
      Returns:
      The begin timestamp of selection
    • getEndTime

      public ITmfTimestamp getEndTime()
      Returns:
      The end timestamp of selection
    • getTrace

      public @Nullable ITmfTrace getTrace()
      Gets the trace that triggered the selection
      Returns:
      The trace, or null
      Since:
      3.2
    • toString

      public String toString()
      Overrides:
      toString in class Object