01: /*
02: * June 2006: This is the original file except of this paragraph and
03: * for consistency, the original package name info.clearthought
04: * was renamed.
05: */
06: package org.gui4j.core.swing;
07:
08: /*
09: * ====================================================================
10: *
11: * The Clearthought Software License, Version 1.0
12: *
13: * Copyright (c) 2001 Daniel Barbalace. All rights reserved.
14: *
15: * Redistribution and use in source and binary forms, with or without
16: * modification, are permitted provided that the following conditions
17: * are met:
18: *
19: * 1. Redistributions of source code must retain the above copyright
20: * notice, this list of conditions and the following disclaimer.
21: *
22: * 2. The original software may not be altered. However, the classes
23: * provided may be subclasses as long as the subclasses are not
24: * packaged in the info.clearthought package or any subpackage of
25: * info.clearthought.
26: *
27: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
28: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30: * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR, AFFILATED BUSINESSES,
31: * OR ANYONE ELSE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
34: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
35: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
37: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38: * SUCH DAMAGE.
39: * ====================================================================
40: */
41:
42: /**
43: * TableLayoutConstants define the constants used by all the TableLayout
44: * classes.
45: *
46: * @version 1.1 4/4/02
47: * @author Daniel E. Barbalace
48: */
49:
50: public interface TableLayoutConstants {
51:
52: /** Indicates that the component is left justified in its cell */
53: public static final int LEFT = 0;
54:
55: /** Indicates that the component is top justified in its cell */
56: public static final int TOP = 0;
57:
58: /** Indicates that the component is centered in its cell */
59: public static final int CENTER = 1;
60:
61: /** Indicates that the component is full justified in its cell */
62: public static final int FULL = 2;
63:
64: /** Indicates that the component is bottom justified in its cell */
65: public static final int BOTTOM = 3;
66:
67: /** Indicates that the component is right justified in its cell */
68: public static final int RIGHT = 3;
69:
70: /** Indicates that the row/column should fill the available space */
71: public static final double FILL = -1.0;
72:
73: /** Indicates that the row/column should be allocated just enough space to
74: accomidate the preferred size of all components contained completely within
75: this row/column. */
76: public static final double PREFERRED = -2.0;
77:
78: /** Indicates that the row/column should be allocated just enough space to
79: accomidate the minimum size of all components contained completely within
80: this row/column. */
81: public static final double MINIMUM = -3.0;
82:
83: /** Minimum value for an alignment */
84: public static final int MIN_ALIGN = 0;
85:
86: /** Maximum value for an alignment */
87: public static final int MAX_ALIGN = 3;
88:
89: }
|