home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-05-03 | 2.2 KB | 68 lines |
- /*
- * @(#)LayoutManager.java 1.12 95/12/14 Sami Shaio
- *
- * Copyright (c) 1994-1995 Sun Microsystems, Inc. All Rights Reserved.
- *
- * Permission to use, copy, modify, and distribute this software
- * and its documentation for NON-COMMERCIAL purposes and without
- * fee is hereby granted provided that this copyright notice
- * appears in all copies. Please refer to the file "copyright.html"
- * for further important copyright and licensing information.
- *
- * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
- * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
- * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
- * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
- * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
- */
- package java.awt;
-
- /**
- * Defines the interface for classes that know how to layout Containers.
- *
- * @see Container
- *
- * @version 1.12, 14 Dec 1995
- * @author Sami Shaio
- * @author Arthur van Hoff
- */
- public interface LayoutManager {
- /**
- * Adds the specified component with the specified name to
- * the layout.
- * @param name the component name
- * @param comp the component to be added
- */
- void addLayoutComponent(String name, Component comp);
-
- /**
- * Removes the specified component from the layout.
- * @param comp the component ot be removed
- */
- void removeLayoutComponent(Component comp);
-
- /**
- * Calculates the preferred size dimensions for the specified
- * panel given the components in the specified parent container.
- * @param parent the component to be laid out
- *
- * @see #minimumLayoutSize
- */
- Dimension preferredLayoutSize(Container parent);
-
- /**
- * Calculates the minimum size dimensions for the specified
- * panel given the components in the specified parent container.
- * @param parent the component to be laid out
- * @see #preferredLayoutSize
- */
- Dimension minimumLayoutSize(Container parent);
-
- /**
- * Lays out the container in the specified panel.
- * @param parent the component which needs to be laid out
- */
- void layoutContainer(Container parent);
- }
-