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 */
96 @SuppressWarnings("serial") // Same-version serialization only
97 public class SizeRequirements implements Serializable {
98
99 /**
100 * The minimum size required.
101 * For a component <code>comp</code>, this should be equal to either
102 * <code>comp.getMinimumSize().width</code> or
103 * <code>comp.getMinimumSize().height</code>.
104 */
105 public int minimum;
106
107 /**
108 * The preferred (natural) size.
109 * For a component <code>comp</code>, this should be equal to either
110 * <code>comp.getPreferredSize().width</code> or
111 * <code>comp.getPreferredSize().height</code>.
112 */
113 public int preferred;
114
|
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>.
105 */
106 public int minimum;
107
108 /**
109 * The preferred (natural) size.
110 * For a component <code>comp</code>, this should be equal to either
111 * <code>comp.getPreferredSize().width</code> or
112 * <code>comp.getPreferredSize().height</code>.
113 */
114 public int preferred;
115
|