View Javadoc

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