ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / model / ITimeEvent2.java
1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model;
14
15 import org.eclipse.linuxtools.tmf.core.util.Pair;
16
17 /**
18 * Extend ITimeEvent interface
19 *
20 * @author Patrick Tasse
21 * @since 2.1
22 */
23 public interface ITimeEvent2 extends ITimeEvent {
24
25 /**
26 * Split an event in two at the specified time. If the time is smaller or
27 * equal to the event's start, the first split event is null. If the time is
28 * greater or equal to the event's end, the second split event is null.
29 *
30 * @param time
31 * the time at which the event is to be split
32 * @return a pair of time events
33 */
34 Pair<ITimeEvent, ITimeEvent> split(long time);
35 }
This page took 0.043644 seconds and 5 git commands to generate.