/[classpath]/classpath/java/awt/LayoutManager.java
ViewVC logotype

Diff of /classpath/java/awt/LayoutManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:26:58 2002 UTC revision 1.5 by ericb, Wed Mar 20 04:56:08 2002 UTC
# Line 1  Line 1 
1  /* LayoutManager.java -- Layout containers in a Window  /* LayoutManager.java -- lay out elements in a Container
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 39  exception statement from your version. * Line 39  exception statement from your version. *
39  package java.awt;  package java.awt;
40    
41  /**  /**
42    * This interface is for laying out containers.   * This interface is for laying out containers in a particular sequence.
43    *   *
44    * @author Aaron M. Renn (arenn@urbanophile.com)   * @author Aaron M. Renn <arenn@urbanophile.com>
45    */   * @see Container
46     * @since 1.0
47     * @status updated to 1.4
48     */
49  public interface LayoutManager  public interface LayoutManager
50  {  {
51      /**
52  /**     * Adds the specified component to the layout group.
53    * Adds the specified component to the layout group.     *
54    *     * @param name the name of the component to add
55    * @param name The name of the component to add.     * @param component the component to add
56    * @param component The component to add.     */
57    */    void addLayoutComponent(String name, Component component);
58  public abstract void  
59  addLayoutComponent(String name, Component component);    /**
60       * Removes the specified component from the layout group.
61  /*************************************************************************/     *
62       * @param component the component to remove
63  /**     */
64    * Removes the specified component from the layout group.    void removeLayoutComponent(Component component);
65    *  
66    * @param component The component to remove.    /**
67    */     * Calculates the preferred size for this container, taking into account
68  public abstract void     * the components it contains.
69  removeLayoutComponent(Component component);     *
70       * @param parent the parent container to lay out
71  /*************************************************************************/     * @return the preferred dimensions of this container
72       * @see #minimumLayoutSize(Container)
73  /**     */
74    * Calculates the preferred size for this container, taking into account    Dimension preferredLayoutSize(Container parent);
75    * the components in the specified parent container.  
76    *    /**
77    * @param parent The parent container.     * Calculates the minimum size for this container, taking into account
78    *     * the components it contains.
79    * @return The preferred dimensions of this container.     *
80    */     * @param parent the parent container to lay out
81  public abstract Dimension     * @return the minimum dimensions of this container
82  preferredLayoutSize(Container parent);     * @see #preferredLayoutSize(Container)
83       */
84  /*************************************************************************/    Dimension minimumLayoutSize(Container parent);
85    
86  /**    /**
87    * Calculates the minimum size for this container, taking into account     * Lays out the components in the given container.
88    * the components in the specified parent container.     *
89    *     * @param parent the container to lay out
90    * @param parent The parent container.     */
91    *    void layoutContainer(Container parent);
   * @return The minimum dimensions of this container.  
   */  
 public abstract Dimension  
 minimumLayoutSize(Container parent);  
   
 /*************************************************************************/  
   
 /**  
   * Lays out the components in this container on the specified parent  
   * container.  
   *  
   * @param parent The parent container.  
   */  
 public abstract void  
 layoutContainer(Container parent);  
   
92  } // interface LayoutManager  } // interface LayoutManager
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26