28 import java.awt.*;
29 import java.beans.ConstructorProperties;
30 import java.io.Serializable;
31
32 /**
33 * A layout manager to arrange components over the top
34 * of each other. The requested size of the container
35 * will be the largest requested size of the children,
36 * taking alignment needs into consideration.
37 *
38 * The alignment is based upon what is needed to properly
39 * fit the children in the allocation area. The children
40 * will be placed such that their alignment points are all
41 * on top of each other.
42 * <p>
43 * <strong>Warning:</strong>
44 * Serialized objects of this class will not be compatible with
45 * future Swing releases. The current serialization support is
46 * appropriate for short term storage or RMI between applications running
47 * the same version of Swing. As of 1.4, support for long term storage
48 * of all JavaBeans™
49 * has been added to the <code>java.beans</code> package.
50 * Please see {@link java.beans.XMLEncoder}.
51 *
52 * @author Timothy Prinzing
53 * @since 1.2
54 */
55 @SuppressWarnings("serial") // Same-version serialization only
56 public class OverlayLayout implements LayoutManager2,Serializable {
57
58 /**
59 * Constructs a layout manager that performs overlay
60 * arrangement of the children. The layout manager
61 * created is dedicated to the given container.
62 *
63 * @param target the container to do layout against
64 */
65 @ConstructorProperties({"target"})
66 public OverlayLayout(Container target) {
67 this.target = target;
68 }
|
28 import java.awt.*;
29 import java.beans.ConstructorProperties;
30 import java.io.Serializable;
31
32 /**
33 * A layout manager to arrange components over the top
34 * of each other. The requested size of the container
35 * will be the largest requested size of the children,
36 * taking alignment needs into consideration.
37 *
38 * The alignment is based upon what is needed to properly
39 * fit the children in the allocation area. The children
40 * will be placed such that their alignment points are all
41 * on top of each other.
42 * <p>
43 * <strong>Warning:</strong>
44 * Serialized objects of this class will not be compatible with
45 * future Swing releases. The current serialization support is
46 * appropriate for short term storage or RMI between applications running
47 * the same version of Swing. As of 1.4, support for long term storage
48 * of all JavaBeans
49 * has been added to the <code>java.beans</code> package.
50 * Please see {@link java.beans.XMLEncoder}.
51 *
52 * @author Timothy Prinzing
53 * @since 1.2
54 */
55 @SuppressWarnings("serial") // Same-version serialization only
56 public class OverlayLayout implements LayoutManager2,Serializable {
57
58 /**
59 * Constructs a layout manager that performs overlay
60 * arrangement of the children. The layout manager
61 * created is dedicated to the given container.
62 *
63 * @param target the container to do layout against
64 */
65 @ConstructorProperties({"target"})
66 public OverlayLayout(Container target) {
67 this.target = target;
68 }
|