diff options
author | Eric Blake <ebb9@byu.net> | 2002-03-20 04:56:08 +0000 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2002-03-20 04:56:08 +0000 |
commit | 3865f3b02ec80f548b6118000220225af62c866d (patch) | |
tree | 676170760d4aafa7b15f6cad706c75454332aad9 /java/awt/LayoutManager.java | |
parent | 0722b105f2e9687cd8f9fe1e5a6401a354184eff (diff) | |
download | classpath-3865f3b02ec80f548b6118000220225af62c866d.tar.gz |
2002-03-19 Eric Blake <ebb9@email.byu.edu>
* java/awt/Makefile.am (EXTRA_DIST): Add new files.
* java/awt/AWTEvent.java: Update to 1.4.
* java/awt/ActiveEvent.java: Update to 1.4.
* java/awt/Adjustable.java: Update to 1.4.
* java/awt/Composite.java: New file.
* java/awt/CompositeContext.java: New file.
* java/awt/ItemSelectable.java: Update to 1.4.
* java/awt/KeyEventDispatcher.java: New file.
* java/awt/KeyEventPostProcessor.java: New file.
* java/awt/LayoutManager.java: Update to 1.4.
* java/awt/LayoutManager2.java: Update to 1.4.
* java/awt/MenuContainer.java: Update to 1.4.
* java/awt/Paint.java: Update to 1.4.
* java/awt/PaintContext.java: Update to 1.4.
* java/awt/Polygon.java: Update to 1.4, including new methods.
* java/awt/PrintGraphics.java: Update to 1.4.
* java/awt/Shape.java: Update to 1.4.
* java/awt/Stroke.java: New file.
* java/awt/Transparency.java: Update to 1.4.
Diffstat (limited to 'java/awt/LayoutManager.java')
-rw-r--r-- | java/awt/LayoutManager.java | 114 |
1 files changed, 50 insertions, 64 deletions
diff --git a/java/awt/LayoutManager.java b/java/awt/LayoutManager.java index 695755b62..1231c3eb6 100644 --- a/java/awt/LayoutManager.java +++ b/java/awt/LayoutManager.java @@ -1,5 +1,5 @@ -/* LayoutManager.java -- Layout containers in a Window - Copyright (C) 1999 Free Software Foundation, Inc. +/* LayoutManager.java -- lay out elements in a Container + Copyright (C) 1999, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -39,68 +39,54 @@ exception statement from your version. */ package java.awt; /** - * This interface is for laying out containers. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - */ + * This interface is for laying out containers in a particular sequence. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @see Container + * @since 1.0 + * @status updated to 1.4 + */ public interface LayoutManager { - -/** - * Adds the specified component to the layout group. - * - * @param name The name of the component to add. - * @param component The component to add. - */ -public abstract void -addLayoutComponent(String name, Component component); - -/*************************************************************************/ - -/** - * Removes the specified component from the layout group. - * - * @param component The component to remove. - */ -public abstract void -removeLayoutComponent(Component component); - -/*************************************************************************/ - -/** - * Calculates the preferred size for this container, taking into account - * the components in the specified parent container. - * - * @param parent The parent container. - * - * @return The preferred dimensions of this container. - */ -public abstract Dimension -preferredLayoutSize(Container parent); - -/*************************************************************************/ - -/** - * Calculates the minimum size for this container, taking into account - * the components in the specified parent container. - * - * @param parent The parent container. - * - * @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); - + /** + * Adds the specified component to the layout group. + * + * @param name the name of the component to add + * @param component the component to add + */ + void addLayoutComponent(String name, Component component); + + /** + * Removes the specified component from the layout group. + * + * @param component the component to remove + */ + void removeLayoutComponent(Component component); + + /** + * Calculates the preferred size for this container, taking into account + * the components it contains. + * + * @param parent the parent container to lay out + * @return the preferred dimensions of this container + * @see #minimumLayoutSize(Container) + */ + Dimension preferredLayoutSize(Container parent); + + /** + * Calculates the minimum size for this container, taking into account + * the components it contains. + * + * @param parent the parent container to lay out + * @return the minimum dimensions of this container + * @see #preferredLayoutSize(Container) + */ + Dimension minimumLayoutSize(Container parent); + + /** + * Lays out the components in the given container. + * + * @param parent the container to lay out + */ + void layoutContainer(Container parent); } // interface LayoutManager - |