src/share/classes/javax/swing/Spring.java

Print this page




 110  * can find further information and examples in
 111  * <a
 112  href="http://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html">How to Use SpringLayout</a>,
 113  * a section in <em>The Java Tutorial.</em>
 114  * <p>
 115  * <strong>Warning:</strong>
 116  * Serialized objects of this class will not be compatible with
 117  * future Swing releases. The current serialization support is
 118  * appropriate for short term storage or RMI between applications running
 119  * the same version of Swing.  As of 1.4, support for long term storage
 120  * of all JavaBeans&trade;
 121  * has been added to the <code>java.beans</code> package.
 122  * Please see {@link java.beans.XMLEncoder}.
 123  *
 124  * @see SpringLayout
 125  * @see SpringLayout.Constraints
 126  *
 127  * @author      Philip Milne
 128  * @since       1.4
 129  */

 130 public abstract class Spring {
 131 
 132     /**
 133      * An integer value signifying that a property value has not yet been calculated.
 134      */
 135     public static final int UNSET = Integer.MIN_VALUE;
 136 
 137     /**
 138      * Used by factory methods to create a <code>Spring</code>.
 139      *
 140      * @see #constant(int)
 141      * @see #constant(int, int, int)
 142      * @see #max
 143      * @see #minus
 144      * @see #sum
 145      * @see SpringLayout.Constraints
 146      */
 147     protected Spring() {}
 148 
 149     /**




 110  * can find further information and examples in
 111  * <a
 112  href="http://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html">How to Use SpringLayout</a>,
 113  * a section in <em>The Java Tutorial.</em>
 114  * <p>
 115  * <strong>Warning:</strong>
 116  * Serialized objects of this class will not be compatible with
 117  * future Swing releases. The current serialization support is
 118  * appropriate for short term storage or RMI between applications running
 119  * the same version of Swing.  As of 1.4, support for long term storage
 120  * of all JavaBeans&trade;
 121  * has been added to the <code>java.beans</code> package.
 122  * Please see {@link java.beans.XMLEncoder}.
 123  *
 124  * @see SpringLayout
 125  * @see SpringLayout.Constraints
 126  *
 127  * @author      Philip Milne
 128  * @since       1.4
 129  */
 130 @SuppressWarnings("serial") // Same-version serialization only
 131 public abstract class Spring {
 132 
 133     /**
 134      * An integer value signifying that a property value has not yet been calculated.
 135      */
 136     public static final int UNSET = Integer.MIN_VALUE;
 137 
 138     /**
 139      * Used by factory methods to create a <code>Spring</code>.
 140      *
 141      * @see #constant(int)
 142      * @see #constant(int, int, int)
 143      * @see #max
 144      * @see #minus
 145      * @see #sum
 146      * @see SpringLayout.Constraints
 147      */
 148     protected Spring() {}
 149 
 150     /**