KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > gui > LayoutConstants


1 /*
2  * $Id:$
3  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
4  *
5  * http://www.izforge.com/izpack/
6  * http://developer.berlios.de/projects/izpack/
7  *
8  * Copyright 2006 Klaus Bartz
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */

22 package com.izforge.izpack.gui;
23
24 import javax.swing.SwingConstants JavaDoc;
25
26 /**
27  * Interface with some constants used by or for the IzPanelLayout.
28  *
29  * @author Klaus Bartz
30  *
31  */

32 public interface LayoutConstants extends SwingConstants JavaDoc
33 {
34
35     /** Identifier for gaps between labels. */
36     final static int LABEL_GAP = -1;
37
38     /** Identifier for gaps between text fields. */
39     final static int TEXT_GAP = -2;
40
41     /** Identifier for gaps between controls like radio buttons/groups. */
42     final static int CONTROL_GAP = -3;
43
44     /** Identifier for gaps between paragraphs. */
45     final static int PARAGRAPH_GAP = -4;
46
47     /** Identifier for gaps between labels and text fields. */
48     final static int LABEL_TO_TEXT_GAP = -5;
49
50     /** Identifier for gaps between labels and controls like radio buttons/groups. */
51     final static int LABEL_TO_CONTROL_GAP = -6;
52
53     /** Identifier for gaps between text fields and labels. */
54     final static int TEXT_TO_LABEL_GAP = -7;
55
56     /** Identifier for gaps between controls like radio buttons/groups and labels. */
57     final static int CONTROL_TO_LABEL_GAP = -8;
58
59     /** Identifier for gaps between controls like radio buttons/groups and text components. */
60     final static int CONTROL_TO_TEXT_GAP = -9;
61
62     /** Identifier for gaps between text components and controls like radio buttons/groups and labels */
63     final static int TEXT_TO_CONTROL_GAP = -10;
64
65     /** Identifier for gaps between panel top and the first control. */
66     final static int TOP_GAP = -11;
67
68     /** Identifier for all gaps. */
69     final static int ALL_GAP = -12;
70
71     /** Identifier for gaps for filler. */
72     final static int NO_GAP = -13;
73
74     /** Identifier for gaps for filler. */
75     final static int FILLER1_GAP = -14;
76
77     /** Identifier for gaps for filler. */
78     final static int FILLER2_GAP = -15;
79
80     /** Identifier for gaps for filler. */
81     final static int FILLER13_GAP = -16;
82
83     /** Identifier for gaps for filler. */
84     final static int FILLER4_GAP = -17;
85
86     /** Identifier for gaps for filler. */
87     final static int FILLER5_GAP = -18;
88
89     /** Identifier for gaps to be evaluated automatically at a late time. */
90     final static int AUTOMATIC_GAP = -19;
91
92     /** Identifier for gaps load marker. */
93     final static int GAP_LOAD_MARKER = 0;
94
95     /** Identifier for relative row positioning (next). */
96     public static final int NEXT_ROW = -1;
97
98     /** Identifier for relative row positioning (current). */
99     public static final int CURRENT_ROW = -2;
100
101     /** Identifier for relative column positioning (next). */
102     public static final int NEXT_COLUMN = -1;
103
104     /** Identifier for relative column positioning (current). */
105     public static final int CURRENT_COLUMN = -2;
106
107     /**
108      * Identifier for using the default alignment defined for labels. The value will be resolved at
109      * layouting, therefore it is possible to change the default values in </code>IzPanelConstraints</code>.
110      */

111     public static final int DEFAULT_LABEL_ALIGNMENT = -1;
112
113     /**
114      * Identifier for using the default alignment defined for text fields. The value will be
115      * resolved at layouting, therefore it is possible to change the default values in </code>IzPanelConstraints</code>.
116      */

117     public static final int DEFAULT_TEXT_ALIGNMENT = -2;
118
119     /**
120      * Identifier for using the default alignment defined for other controls. The value will be
121      * resolved at layouting, therefore it is possible to change the default values in </code>IzPanelConstraints</code>.
122      */

123     public static final int DEFAULT_CONTROL_ALIGNMENT = -3;
124
125     /** Identifier for the default label constraints. */
126     public static final int LABEL_CONSTRAINT = 0;
127
128     /** Identifier for the default text component constraints. */
129     public static final int TEXT_CONSTRAINT = 1;
130
131     /** Identifier for the default for other control constraints. */
132     public static final int CONTROL_CONSTRAINT = 2;
133
134     /** Identifier for the default multi line label constraints. */
135     public static final int FULL_LINE_COMPONENT_CONSTRAINT = 3;
136
137     /**
138      * Identifier for the default constraints for controls/container which are variable in x and y
139      * dimension.
140      */

141     public static final int XY_VARIABLE_CONSTRAINT = 4;
142
143     /** Identifier for the default constraint used by a filler with x direction. */
144     public static final int XDUMMY_CONSTRAINT = 5;
145
146     /** Identifier for the default constraint used by a filler with y direction. */
147     public static final int YDUMMY_CONSTRAINT = 6;
148
149     /** Identifier for the default constraint used by a filler with y direction. */
150     public static final int FULL_LINE_CONTROL_CONSTRAINT = 7;
151
152     /** Constant used to specify that no action should be done. Useable for X- and Y_STRETCH. */
153     public static final int NO_STRETCH = 0;
154
155     /** X- and Y_STRETCH constant used to specify relative weighting of stretch factors. */
156     public static final int RELATIVE_STRETCH = 1;
157
158     /** X- and Y_STRETCH constant used to specify absolute weighting of stretch factors. */
159     public static final int ABSOLUTE_STRETCH = 2;
160
161     /**
162      * X_STRETCH "symbolic" value to signal that the configurable default stretch value should be
163      * used.
164      */

165     public static final double FULL_LINE_STRETCH = -1.0;
166
167     /**
168      * Y_STRETCH "symbolic" value to signal that the configurable default stretch value should be
169      * used.
170      */

171     public static final double FULL_COLUMN_STRETCH = -2.0;
172
173     /**
174      * Object constant used as "constraint" at add a component to the IzPanel to signal that this
175      * component should be place in the next line.
176      */

177     public static final String JavaDoc NEXT_LINE = "nextLine";
178
179     /**
180      * Flag used in the IzPanelLayout manager to trigger expansion of all components to the netto
181      * width of a column.
182      */

183     public static final int NO_FILL_OUT_COLUMN = 0;
184
185     /**
186      * Flag used in the IzPanelLayout manager to trigger expansion of all components to the netto
187      * width of a column.
188      */

189     public static final int FILL_OUT_COLUMN_WIDTH = 1;
190
191     /**
192      * Flag used in the IzPanelLayout manager to trigger expansion of all components to the netto
193      * width of a column.
194      */

195     public static final int FILL_OUT_COLUMN_HEIGHT = 2;
196
197     /**
198      * Flag used in the IzPanelLayout manager to trigger expansion of all components to the netto
199      * width of a column.
200      */

201     public static final int FILL_OUT_COLUMN_SIZE = 3;
202
203 }
204
Popular Tags