KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > properties > tabbed > ITabbedPropertyConstants


1 /*******************************************************************************
2  * Copyright (c) 2001, 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  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.views.properties.tabbed;
12
13 /**
14  * Constants used by the implementors of ITabbedPropertySection.
15  *
16  * @author Anthony Hunter
17  */

18 public interface ITabbedPropertyConstants {
19
20     /**
21      * These horizontal margin around the composite.
22      * Each section should use a margin of 0, 0.
23      */

24     public static final int HMARGIN = 6;
25     
26     /**
27      * These horizontal margin around the composite.
28      */

29     public static final int VMARGIN = 6;
30
31     /**
32      * Horizontal space to leave between related widgets.
33      * Each section should use these values for spacing its widgets.
34      * For example, you can use +/- HSPACE as the offset of a left or
35      * right FlatFormAttachment.
36      *
37      * The tabbed property composite also inserts VSPACE pixels between
38      * section composites if more than one section is displayed.
39      */

40     public static final int HSPACE = 5;
41     
42     /**
43      * Horizontal space to leave between related widgets.
44      */

45     public static final int VSPACE = 4;
46
47     /**
48      * Space to leave between the center of the property tab and the closest
49      * widget to the left or right. I.e. for a property tab whose widgets are
50      * logically divided into two halves, the total space between the halves
51      * should be 2*CENTER_SPACE.
52      */

53     public static final int CENTER_SPACE = 10;
54 }
55
Popular Tags