home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / LayoutManager.java < prev    next >
Text File  |  1997-05-20  |  2KB  |  71 lines

  1. /*
  2.  * @(#)LayoutManager.java    1.14 96/11/23
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22. package java.awt;
  23.  
  24. /** 
  25.  * Defines the interface for classes that know how to layout Containers.
  26.  *
  27.  * @see Container
  28.  *
  29.  * @version    1.14, 11/23/96
  30.  * @author     Sami Shaio
  31.  * @author     Arthur van Hoff
  32.  */
  33. public interface LayoutManager {
  34.     /**
  35.      * Adds the specified component with the specified name to
  36.      * the layout.
  37.      * @param name the component name
  38.      * @param comp the component to be added
  39.      */
  40.     void addLayoutComponent(String name, Component comp);
  41.  
  42.     /**
  43.      * Removes the specified component from the layout.
  44.      * @param comp the component ot be removed
  45.      */
  46.     void removeLayoutComponent(Component comp);
  47.  
  48.     /**
  49.      * Calculates the preferred size dimensions for the specified 
  50.      * panel given the components in the specified parent container.
  51.      * @param parent the component to be laid out
  52.      *  
  53.      * @see #minimumLayoutSize
  54.      */
  55.     Dimension preferredLayoutSize(Container parent);
  56.  
  57.     /** 
  58.      * Calculates the minimum size dimensions for the specified 
  59.      * panel given the components in the specified parent container.
  60.      * @param parent the component to be laid out
  61.      * @see #preferredLayoutSize
  62.      */
  63.     Dimension minimumLayoutSize(Container parent);
  64.  
  65.     /** 
  66.      * Lays out the container in the specified panel.
  67.      * @param parent the component which needs to be laid out 
  68.      */
  69.     void layoutContainer(Container parent);
  70. }
  71.