Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/ITimeRangeComponent.java')
-rw-r--r--lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/ITimeRangeComponent.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/ITimeRangeComponent.java b/lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/ITimeRangeComponent.java
new file mode 100644
index 0000000000..9cb42a5978
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/model/trange/ITimeRangeComponent.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.linuxtools.lttng.ui.model.trange;
+
+/**
+ * The common component of the Composite related to time-range events its
+ * components or containers
+ *
+ * @author alvaro
+ *
+ */
+public interface ITimeRangeComponent {
+
+ public long getStartTime();
+
+ public void setStartTime(long startTime);
+
+ public long getStopTime();
+
+ public void setStopTime(long endTime);
+
+ public ITimeRangeComponent getEventParent();
+
+ public String getName();
+
+ /**
+ * Flag to indicate if this Time Range is visible within the GUI, May not be
+ * visible if the duration can not be represented in one pixel
+ *
+ * @return true if visible i.e. represented at least in one pixel
+ */
+ public boolean isVisible();
+
+}

Back to the top