Import views plugins
[deliverable/tracecompass.git] / tmf / org.lttng.scope.tmf2.views.ui / src / org / lttng / scope / tmf2 / views / ui / timeline / ITimelineWidget.java
1 /*
2 * Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
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
10 package org.lttng.scope.tmf2.views.ui.timeline;
11
12 import org.eclipse.jdt.annotation.Nullable;
13
14 import javafx.scene.Parent;
15 import javafx.scene.control.ScrollPane;
16 import javafx.scene.control.SplitPane;
17 import javafx.scene.shape.Rectangle;
18
19 public interface ITimelineWidget {
20
21 String getName();
22
23 Parent getRootNode();
24
25 void dispose();
26
27 /**
28 * Many widgets will use a SplitPane to separate a tree or info pane on the
29 * left, and a time-based pane on the right. This method is used to return
30 * this pane so the manager can apply common operations on them.
31 *
32 * @return The horizontal split pane, or 'null' if the widget doesn't use
33 * one and uses the full horizontal width of the view.
34 */
35 @Nullable SplitPane getSplitPane();
36
37 @Nullable ScrollPane getTimeBasedScrollPane();
38
39 @Nullable Rectangle getSelectionRectangle();
40
41 @Nullable Rectangle getOngoingSelectionRectangle();
42 }
This page took 0.047552 seconds and 5 git commands to generate.