tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / internal / lttng / ui / viewers / timeAnalysis / GridUtil.java
1 /**********************************************************************
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 * $Id: GridUtil.java,v 1.3 2006/09/20 19:49:13 ewchan Exp $
8 *
9 * Contributors:
10 * IBM - Initial API and implementation
11 **********************************************************************/
12
13 package org.eclipse.linuxtools.internal.lttng.ui.viewers.timeAnalysis;
14
15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.layout.GridData;
17
18 /**
19 * A utility class to create convenient grid data objects.
20 */
21 public class GridUtil
22 {
23 /**
24 * Creates a grid data object that occupies vertical and horizontal
25 * space.
26 */
27 static public GridData createFill()
28 {
29 return new GridData(SWT.FILL, SWT.FILL, true, true);
30 }
31 /**
32 * Creates a grid data object that occupies horizontal space.
33 */
34 static public GridData createHorizontalFill()
35 {
36 return new GridData(SWT.FILL, SWT.DEFAULT, true, false);
37 }
38 /**
39 * Creates a grid data object that occupies vertical space.
40 */
41 static public GridData createVerticalFill()
42 {
43 return new GridData(SWT.DEFAULT, SWT.FILL, false, true);
44 }
45 }
This page took 0.031522 seconds and 5 git commands to generate.