KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > form > layoutdesign > LayoutConstants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.form.layoutdesign;
21
22 /**
23  * @author Tomas Pavek
24  */

25
26 public interface LayoutConstants {
27
28     // size constants
29

30     /**
31      * Indicates a size or position not defined in the layout model; it must
32      * be obtained elsewhere (e.g. from a real component).
33      */

34     int NOT_EXPLICITLY_DEFINED = -1;
35
36     /**
37      * Specifies that a min or max size value should be the same as
38      * the preferred size value.
39      */

40     int USE_PREFERRED_SIZE = -2;
41
42     // structure type constants
43

44     /**
45      * Indicates a single layout interval without internal structure.
46      */

47     int SINGLE = 101;
48
49     /**
50      * Indicates a layout interval containing a sequence of sub-intervals
51      * (placed one after anoother).
52      */

53     int SEQUENTIAL = 102;
54
55     /**
56      * Indicates a layout interval containing sub-intervals arranged parallely.
57      */

58     int PARALLEL = 103;
59
60     // alignment constants (independent on orientation/axis)
61
// also serves the role of index to array of positions
62

63     int DEFAULT = -1;
64     int LEADING = 0;
65     int TRAILING = 1;
66     int CENTER = 2;
67     int BASELINE = 3;
68
69     // orientation constants (dimensions)
70

71     /**
72      * Constant/index of the horizontal orientation (X axis).
73      */

74     int HORIZONTAL = 0;
75
76     /**
77      * Constant/index of the vertical orientation (Y axis).
78      */

79     int VERTICAL = 1;
80
81     /**
82      * The number of dimensions. Obviously 2 ;)
83      */

84     int DIM_COUNT = 2;
85
86     // other constants
87

88 // int MAX_OUT = Short.MAX_VALUE;
89
// int MIN_OUT = Short.MIN_VALUE;
90
String JavaDoc PROP_HORIZONTAL_MIN_SIZE = "horizontalMinSize"; // NOI18N
91
String JavaDoc PROP_HORIZONTAL_PREF_SIZE = "horizontalPrefSize"; // NOI18N
92
String JavaDoc PROP_HORIZONTAL_MAX_SIZE = "horizontalMaxSize"; // NOI18N
93
String JavaDoc PROP_VERTICAL_MIN_SIZE = "verticalMinSize"; // NOI18N
94
String JavaDoc PROP_VERTICAL_PREF_SIZE = "verticalPrefSize"; // NOI18N
95
String JavaDoc PROP_VERTICAL_MAX_SIZE = "verticalMaxSize"; // NOI18N
96

97     // are components in same linksizegroup?
98
int INVALID = -1;
99     int FALSE = 0;
100     int TRUE = 1;
101 }
102
Popular Tags