Commit | Line | Data |
---|---|---|
6e512b93 ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 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 | * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation | |
11 | *******************************************************************************/ | |
638eac44 | 12 | package org.eclipse.linuxtools.internal.lttng.ui.model.trange; |
6e512b93 ASL |
13 | |
14 | /** | |
15 | * The common component of the Composite related to time-range events its | |
16 | * components or containers | |
17 | * | |
18 | * @author alvaro | |
19 | * | |
20 | */ | |
21 | public interface ITimeRangeComponent { | |
22 | ||
23 | public long getStartTime(); | |
24 | ||
25 | public void setStartTime(long startTime); | |
26 | ||
27 | public long getStopTime(); | |
28 | ||
29 | public void setStopTime(long endTime); | |
30 | ||
31 | public ITimeRangeComponent getEventParent(); | |
32 | ||
33 | public String getName(); | |
34 | ||
35 | /** | |
36 | * Flag to indicate if this Time Range is visible within the GUI, May not be | |
37 | * visible if the duration can not be represented in one pixel | |
38 | * | |
39 | * @return true if visible i.e. represented at least in one pixel | |
40 | */ | |
41 | public boolean isVisible(); | |
42 | ||
43 | } |