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 $
10 * IBM - Initial API and implementation
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
;
15 import org
.eclipse
.swt
.SWT
;
16 import org
.eclipse
.swt
.layout
.GridData
;
19 * A utility class to create convenient grid data objects.
24 * Creates a grid data object that occupies vertical and horizontal
27 static public GridData
createFill()
29 return new GridData(SWT
.FILL
, SWT
.FILL
, true, true);
32 * Creates a grid data object that occupies horizontal space.
34 static public GridData
createHorizontalFill()
36 return new GridData(SWT
.FILL
, SWT
.DEFAULT
, true, false);
39 * Creates a grid data object that occupies vertical space.
41 static public GridData
createVerticalFill()
43 return new GridData(SWT
.DEFAULT
, SWT
.FILL
, false, true);
This page took 0.030086 seconds and 5 git commands to generate.