64 *
65 * <dt> <code>preferred</code>
66 * <dd> The natural width/height of the component
67 * or component group, in pixels.
68 *
69 * <dt> <code>maximum</code>
70 * <dd> The largest reasonable width/height of the component
71 * or component group, in pixels.
72 *
73 * <dt> <code>alignment</code>
74 * <dd> The X/Y alignment of the component
75 * or component group.
76 * </dl>
77 * </blockquote>
78 * <p>
79 * <strong>Warning:</strong>
80 * Serialized objects of this class will not be compatible with
81 * future Swing releases. The current serialization support is
82 * appropriate for short term storage or RMI between applications running
83 * the same version of Swing. As of 1.4, support for long term storage
84 * of all JavaBeans™
85 * has been added to the <code>java.beans</code> package.
86 * Please see {@link java.beans.XMLEncoder}.
87 *
88 * @see Component#getMinimumSize
89 * @see Component#getPreferredSize
90 * @see Component#getMaximumSize
91 * @see Component#getAlignmentX
92 * @see Component#getAlignmentY
93 *
94 * @author Timothy Prinzing
95 * @since 1.2
96 */
97 @SuppressWarnings("serial") // Same-version serialization only
98 public class SizeRequirements implements Serializable {
99
100 /**
101 * The minimum size required.
102 * For a component <code>comp</code>, this should be equal to either
103 * <code>comp.getMinimumSize().width</code> or
104 * <code>comp.getMinimumSize().height</code>.
|
64 *
65 * <dt> <code>preferred</code>
66 * <dd> The natural width/height of the component
67 * or component group, in pixels.
68 *
69 * <dt> <code>maximum</code>
70 * <dd> The largest reasonable width/height of the component
71 * or component group, in pixels.
72 *
73 * <dt> <code>alignment</code>
74 * <dd> The X/Y alignment of the component
75 * or component group.
76 * </dl>
77 * </blockquote>
78 * <p>
79 * <strong>Warning:</strong>
80 * Serialized objects of this class will not be compatible with
81 * future Swing releases. The current serialization support is
82 * appropriate for short term storage or RMI between applications running
83 * the same version of Swing. As of 1.4, support for long term storage
84 * of all JavaBeans
85 * has been added to the <code>java.beans</code> package.
86 * Please see {@link java.beans.XMLEncoder}.
87 *
88 * @see Component#getMinimumSize
89 * @see Component#getPreferredSize
90 * @see Component#getMaximumSize
91 * @see Component#getAlignmentX
92 * @see Component#getAlignmentY
93 *
94 * @author Timothy Prinzing
95 * @since 1.2
96 */
97 @SuppressWarnings("serial") // Same-version serialization only
98 public class SizeRequirements implements Serializable {
99
100 /**
101 * The minimum size required.
102 * For a component <code>comp</code>, this should be equal to either
103 * <code>comp.getMinimumSize().width</code> or
104 * <code>comp.getMinimumSize().height</code>.
|