Class NullTimeEvent
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
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 Summary
ConstructorsConstructorDescriptionNullTimeEvent(ITimeGraphEntry entry, long time, long duration) Standard constructor -
Method Summary
Modifier and TypeMethodDescriptionsplitAfter(long splitTime) Split an event in two at the specified time and keep the part after the split.splitBefore(long splitTime) Split an event in two at the specified time and keep the part before the split.Methods inherited from class org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.TimeEvent
equals, getActiveProperties, getDuration, getEntry, getMetadata, getModel, getTime, getValue, hashCode, hasValue, setActiveProperties, toStringMethods inherited from interface org.eclipse.tracecompass.tmf.core.model.ICorePropertyCollection
isPropertyActive, setPropertyMethods inherited from interface org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeEvent
getLabel
-
Constructor Details
-
NullTimeEvent
Standard constructor- Parameters:
entry- The entry matching this eventtime- The timestamp of this eventduration- The duration of the event
-
-
Method Details
-
splitBefore
Description copied from interface:ITimeEventSplit 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:
splitBeforein interfaceITimeEvent- Overrides:
splitBeforein classTimeEvent- Parameters:
splitTime- the time at which the event is to be split- Returns:
- The part before the split time
-
splitAfter
Description copied from interface:ITimeEventSplit 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:
splitAfterin interfaceITimeEvent- Overrides:
splitAfterin classTimeEvent- Parameters:
splitTime- the time at which the event is to be split- Returns:
- The part after the split time
-