java.lang.Object
org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.TimeEvent
org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.NullTimeEvent
All Implemented Interfaces:
ICoreElementResolver, ICorePropertyCollection, ITimeEvent

public class NullTimeEvent extends TimeEvent
A null time event. Used to represent an event that should not be drawn, for example as a zoomed event that overshadows an underlying event.
  • Constructor Details

    • NullTimeEvent

      public NullTimeEvent(ITimeGraphEntry entry, long time, long duration)
      Standard constructor
      Parameters:
      entry - The entry matching this event
      time - The timestamp of this event
      duration - The duration of the event
  • Method Details

    • splitBefore

      public ITimeEvent splitBefore(long splitTime)
      Description copied from interface: ITimeEvent
      Split an event in two at the specified time and keep the part before the split. If the time is smaller or equal to the event's start, the returned event is null.
      Specified by:
      splitBefore in interface ITimeEvent
      Overrides:
      splitBefore in class TimeEvent
      Parameters:
      splitTime - the time at which the event is to be split
      Returns:
      The part before the split time
    • splitAfter

      public ITimeEvent splitAfter(long splitTime)
      Description copied from interface: ITimeEvent
      Split an event in two at the specified time and keep the part after the split. If the time is greater or equal to the event's end, the returned event is null.
      Specified by:
      splitAfter in interface ITimeEvent
      Overrides:
      splitAfter in class TimeEvent
      Parameters:
      splitTime - the time at which the event is to be split
      Returns:
      The part after the split time