PatchSet 7277 
Date: 2006/04/26 19:22:04
Author: riccardo
Branch: HEAD
Tag: (none) 
Log:
removed, so to use classath

Members: 
        ChangeLog:1.4781->1.4782 
        libraries/javalib/awt-implementations/kaffe/Makefile.am:1.16->1.17 
        libraries/javalib/awt-implementations/kaffe/Makefile.in:1.61->1.62 
        
libraries/javalib/awt-implementations/kaffe/java/awt/BorderLayout.java:1.1->1.2(DEAD)
 
        
libraries/javalib/awt-implementations/kaffe/java/awt/CardLayout.java:1.1->1.2(DEAD)
 
        
libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager.java:1.2->1.3(DEAD)
 
        
libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager2.java:1.2->1.3(DEAD)
 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4781 kaffe/ChangeLog:1.4782
--- kaffe/ChangeLog:1.4781      Tue Apr 25 22:33:25 2006
+++ kaffe/ChangeLog     Wed Apr 26 19:22:04 2006
@@ -1,5 +1,13 @@
 2006-04-26  Riccardo Mottola <[EMAIL PROTECTED]>
 
+       * 
libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager.java,
+       
libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager2.java,
+       libraries/javalib/awt-implementations/kaffe/java/awt/CardLayout.java,
+       libraries/javalib/awt-implementations/kaffe/java/awt/BorderLayout.java:
+       removed, so to use classath
+
+2006-04-26  Riccardo Mottola <[EMAIL PROTECTED]>
+
        * libraries/javalib/awt-implementations/kaffe/java/awt/Container.java:
        implemented findComponentAt
 
Index: kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.am
diff -u kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.am:1.16 
kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.am:1.17
--- kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.am:1.16  Mon Apr 
24 23:06:03 2006
+++ kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.am       Wed Apr 
26 19:22:07 2006
@@ -43,10 +43,8 @@
        java/awt/AWTPermission.java \
        java/awt/BarMenu.java \
        java/awt/BasicStroke.java \
-       java/awt/BorderLayout.java \
        java/awt/Button.java \
        java/awt/Canvas.java \
-       java/awt/CardLayout.java \
        java/awt/CheckboxGroup.java \
        java/awt/Checkbox.java \
        java/awt/CheckboxMenuItem.java \
@@ -102,8 +100,6 @@
        java/awt/KeyEventPostProcessor.java \
        java/awt/KeyEvt.java \
        java/awt/Label.java \
-       java/awt/LayoutManager2.java \
-       java/awt/LayoutManager.java \
        java/awt/List.java \
        java/awt/MediaTracker.java \
        java/awt/MenuBar.java \
Index: kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.in
diff -u kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.in:1.61 
kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.in:1.62
--- kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.in:1.61  Mon Apr 
24 23:06:03 2006
+++ kaffe/libraries/javalib/awt-implementations/kaffe/Makefile.in       Wed Apr 
26 19:22:09 2006
@@ -393,10 +393,8 @@
        java/awt/AWTPermission.java \
        java/awt/BarMenu.java \
        java/awt/BasicStroke.java \
-       java/awt/BorderLayout.java \
        java/awt/Button.java \
        java/awt/Canvas.java \
-       java/awt/CardLayout.java \
        java/awt/CheckboxGroup.java \
        java/awt/Checkbox.java \
        java/awt/CheckboxMenuItem.java \
@@ -452,8 +450,6 @@
        java/awt/KeyEventPostProcessor.java \
        java/awt/KeyEvt.java \
        java/awt/Label.java \
-       java/awt/LayoutManager2.java \
-       java/awt/LayoutManager.java \
        java/awt/List.java \
        java/awt/MediaTracker.java \
        java/awt/MenuBar.java \
===================================================================
Checking out 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/BorderLayout.java
RCS:  
/home/cvs/kaffe/kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Attic/BorderLayout.java,v
VERS: 1.1
***************
--- 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/BorderLayout.java    
    Wed Apr 26 19:40:28 2006
+++ /dev/null   Sun Aug  4 19:57:58 2002
@@ -1,327 +0,0 @@
-package java.awt;
-
-
-/**
- * class BorderLayout - 
- *
- * Copyright (c) 1998
- *      Transvirtual Technologies, Inc.  All rights reserved.
- *
- * See the file "license.terms" for information on usage and redistribution
- * of this file.
- *
- * @author P.C.Mehlitz
- */
-public class BorderLayout
-  implements LayoutManager2, java.io.Serializable
-{
-       /* XXX implement serial form! */
-       private static final long serialVersionUID = -8658291919501921765L;
-       Component center;
-       Component north;
-       Component west;
-       Component south;
-       Component east;
-       int hGap;
-       int vGap;
-       final public static String CENTER = "Center";
-       final public static String NORTH = "North";
-       final public static String WEST = "West";
-       final public static String SOUTH = "South";
-       final public static String EAST = "East";
-       final public static String AFTER_LAST_LINE = "Last";
-       final public static String AFTER_LINE_ENDS = "After";
-       final public static String BEFORE_FIRST_LINE = "First";
-       final public static String BEFORE_LINE_BEGINS = "Before";
-
-/**
- * Constructs a new BorderLayout with no gaps between components.
- */
-public BorderLayout() {
-       this(0, 0);
-}
-
-/**
- * Constructs a BorderLayout with the specified gaps.
- * @param hgap the horizontal gap
- * @param vgap the vertical gap
- */
-public BorderLayout ( int hgap, int vgap ) {
-       hGap = hgap;
-       vGap = vgap;
-}
-
-/**
- * Adds the specified component to the layout, using the specified
- * constraint object.
- * @param comp the component to be added
- * @param constraints  where/how the component is added to the layout.
- */
-public void addLayoutComponent ( Component cmp, Object position ) {
-       try {
-               addLayoutComponent((String)position, cmp);
-       }
-       catch (ClassCastException _) {
-               throw new IllegalArgumentException( getClass().getName() + ": 
invalid constraint " + position );
-       }
-}
-
-/**
- * Replaced by addLayoutComponent(Component, Object).
- * @deprecated
- */
-public void addLayoutComponent ( String pos, Component cmp ) {
-       if ( pos == null ) {
-               pos = CENTER;
-       }
-       if (CENTER.equalsIgnoreCase(pos)) {
-               center = cmp;
-       }
-       else if (NORTH.equalsIgnoreCase(pos)) {
-               north = cmp;
-       }
-       else if (WEST.equalsIgnoreCase(pos)) {
-               west = cmp;
-       }
-       else if (SOUTH.equalsIgnoreCase(pos)) {
-               south = cmp;
-       }
-       else if (EAST.equalsIgnoreCase(pos)) {
-               east = cmp;
-       }
-       else {
-               throw new IllegalArgumentException( getClass().getName() + ": 
invalid position: " + pos);
-       }
-}
-
-/**
- * Returns the horizontal gap between components.
- */
-public int getHgap() {
-       return hGap;
-}
-
-/**
- * Returns the alignment along the x axis.  This specifies how
- * the component would like to be aligned relative to other 
- * components.  The value should be a number between 0 and 1
- * where 0 represents alignment along the origin, 1 is aligned
- * the furthest away from the origin, 0.5 is centered, etc.
- */
-public float getLayoutAlignmentX ( Container cntr ) {
-       return (Component.CENTER_ALIGNMENT);
-}
-
-/**
- * Returns the alignment along the y axis.  This specifies how
- * the component would like to be aligned relative to other 
- * components.  The value should be a number between 0 and 1
- * where 0 represents alignment along the origin, 1 is aligned
- * the furthest away from the origin, 0.5 is centered, etc.
- */
-public float getLayoutAlignmentY ( Container cntr ) {
-       return (Component.CENTER_ALIGNMENT);
-}
-
-/**
- * Returns the vertical gap between components.
- */
-public int getVgap() {
-       return vGap;
-}
-
-/**
- * Invalidates the layout, indicating that if the layout manager
- * has cached information it should be discarded.
- */
-public void invalidateLayout ( Container cntr ) {
-}
-
-/**
- * Lays out the specified container. This method will actually reshape the
- * components in the specified target container in order to satisfy the 
- * constraints of the BorderLayout object. 
- * @param target the component being laid out
- * @see Container
- */
-public void layoutContainer ( Container cntr ) {
-       Insets insets = cntr.getInsets(); // getInsets() might be reimplemented 
(swing)
-       int top = insets.top;
-       int bottom = cntr.height - insets.bottom;
-       int left = insets.left;
-       int right = cntr.width - insets.right;
-       Dimension pd;
-
-       // watch out - JDK seems to bypass isVisible() (which might be 
resolved, e.g. by Swing)
-
-       if ( (north != null) && ((north.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = north.getPreferredSize();
-               north.setBounds(left, top, right - left, pd.height);
-               top += pd.height + vGap;
-       }
-       if ((south != null) && ((south.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = south.getPreferredSize();
-               south.setBounds(left, bottom - pd.height, right - left, 
pd.height);
-               bottom -= pd.height + vGap;
-       }
-       if ((east != null) && ((east.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = east.getPreferredSize();
-               east.setBounds(right - pd.width, top, pd.width, bottom - top);
-               right -= pd.width + hGap;
-       }
-       if ((west != null) && ((west.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = west.getPreferredSize();
-               west.setBounds(left, top, pd.width, bottom - top);
-               left += pd.width + hGap;
-       }
-       if ((center != null) && ((center.flags & Component.IS_VISIBLE) != 0) )
-               center.setBounds(left, top, right - left, bottom - top);
-}
-
-/**
- * Returns the maximum dimensions for this layout given the components
- * in the specified target container.
- * @param target the component which needs to be laid out
- * @see Container
- * @see #minimumLayoutSize
- * @see #preferredLayoutSize
- */
-public Dimension maximumLayoutSize ( Container cntr ) {
-       return new Dimension( Integer.MAX_VALUE, Integer.MAX_VALUE);
-}
-
-/**
- * Returns the minimum dimensions needed to layout the components
- * contained in the specified target container. 
- * @param target the Container on which to do the layout
- * @see Container
- * @see #preferredLayoutSize
- */
-public Dimension minimumLayoutSize ( Container cntr ) {
-       Dimension md, d = new Dimension();
-
-       // watch out - JDK seems to ignore isVisible() (might be resolved, e.g. 
by swing)
-
-       if ((east != null) && ((east.flags & Component.IS_VISIBLE) != 0) ) {
-               md = east.getMinimumSize();
-               d.width += md.width + hGap;
-               d.height = Math.max( md.height, d.height);
-       }
-       if ((west != null) && ((west.flags & Component.IS_VISIBLE) != 0) ){
-               md = west.getMinimumSize();
-               d.width += md.width + hGap;
-               d.height = Math.max( md.height, d.height);
-       }
-       if ((center != null) && ((center.flags & Component.IS_VISIBLE) != 0) ){
-               md = center.getMinimumSize();
-               d.width += md.width;
-               d.height = Math.max( md.height, d.height);
-       }
-       if ((north != null) && ((north.flags & Component.IS_VISIBLE) != 0) ){
-               md = north.getMinimumSize();
-               d.width = Math.max( md.width, d.width);
-               d.height += md.height + vGap;
-       }
-       if ((south != null) && ((south.flags & Component.IS_VISIBLE) != 0) ) {
-               md = south.getMinimumSize();
-               d.width = Math.max( md.width, d.width);
-               d.height += md.height + vGap;
-       }
-
-       Insets insets = cntr.getInsets(); // getInsets() might be reimplemented 
(swing)
-       d.width += insets.left + insets.right;
-       d.height += insets.top + insets.bottom;
-
-       return d;
-}
-
-/**
- * Returns the preferred dimensions for this layout given the components
- * in the specified target container.
- * @param target the component which needs to be laid out
- * @see Container
- * @see #minimumLayoutSize
- */
-public Dimension preferredLayoutSize ( Container cntr ) {
-       Dimension pd, d = new Dimension();
-
-       // watch out - JDK seems to ignore setVisible() (which might be 
resolved, e.g. by swing)
-
-       if ((east != null) && ((east.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = east.getPreferredSize();
-               d.width += pd.width + hGap;
-               d.height = Math.max( pd.height, d.height);
-       }
-       if ((west != null) && ((west.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = west.getPreferredSize();
-               d.width += pd.width + hGap;
-               d.height = Math.max( pd.height, d.height);
-       }
-       if ((center != null) && ((center.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = center.getPreferredSize();
-               d.width += pd.width;
-               d.height = Math.max( pd.height, d.height);
-       }
-       if ((north != null) && ((north.flags & Component.IS_VISIBLE) != 0) ) {
-               pd = north.getPreferredSize();
-               d.width = Math.max( pd.width, d.width);
-               d.height += pd.height + vGap;
-       }
-       if ((south != null) && ((south.flags & Component.IS_VISIBLE) != 0) ){
-               pd = south.getPreferredSize();
-               d.width = Math.max( pd.width, d.width);
-               d.height += pd.height + vGap;
-       }
-
-       Insets insets = cntr.getInsets(); // getInsets() might be reimplemented 
(swing)
-       d.width += insets.left + insets.right;
-       d.height += insets.top + insets.bottom;
-
-       return d;
-}
-
-/**
- * Removes the specified component from the layout.
- * @param comp the component to be removed
- */
-public void removeLayoutComponent ( Component cmp ) {
-       if (cmp == center) {
-               center = null;
-       }
-       else if (cmp == north) {
-               north = null;
-       }
-       else if (cmp == west) {
-               west = null;
-       }
-       else if (cmp == south) {
-               south = null;
-       }
-       else if (cmp == east) {
-               east = null;
-       }
-}
-
-/**
- * Sets the horizontal gap between components.
- * @param hgap the horizontal gap between components
- */
-public void setHgap ( int hgap ) {
-       hGap = hgap;
-}
-
-/**
- * Sets the vertical gap between components.
- * @param vgap the vertical gap between components
- */
-public void setVgap ( int vgap ) {
-       vGap = vgap;
-}
-
-/**
- * Returns the String representation of this BorderLayout's values.
- */
-public String toString() {
-       return getClass().getName() + "[hgap=" + hGap + ",vgap=" + vGap + ']';
-}
-}
===================================================================
Checking out 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/CardLayout.java
RCS:  
/home/cvs/kaffe/kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Attic/CardLayout.java,v
VERS: 1.1
***************
--- kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/CardLayout.java  
Wed Apr 26 19:40:28 2006
+++ /dev/null   Sun Aug  4 19:57:58 2002
@@ -1,217 +0,0 @@
-package java.awt;
-
-import java.io.Serializable;
-import java.util.Enumeration;
-import java.util.Hashtable;
-
-public class CardLayout
-  implements LayoutManager2, Serializable
-{
-       /** @serial undocumented */
-       int hgap;
-       /** @serial undocumented */
-       int vgap;
-       /** @serial undocumented */
-       Hashtable tab = new Hashtable();
-
-       /* Sun's doesn't hardcode, we do */
-       private static final long serialVersionUID = -4328196481005934313L;
-
-public CardLayout () {
-       this( 0, 0);
-}
-
-public CardLayout ( int hgap, int vgap) {
-       this.hgap = hgap;
-       this.vgap = vgap;
-}
-
-public void addLayoutComponent ( Component comp, Object constraints) {
-       if ( constraints instanceof String) {
-               addLayoutComponent( (String)constraints, comp);
-       }
-       else {
-               throw new IllegalArgumentException("non-string constraint");
-       }
-}
-
-/**
- * @deprecated
- */
-public void addLayoutComponent ( String name, Component comp) {
-       tab.put( name, comp);
-       if ( tab.size() > 1 )
-               comp.setVisible( false);
-}
-
-public void first ( Container parent) {
-       Component fc = null;
-       int cc = parent.getComponentCount();
-
-       for ( int i=0; i<cc; i++) {
-               Component c = parent.getComponent(i);
-               if ( fc == null )
-                       fc = c;
-               if ( (c.flags & Component.IS_VISIBLE) != 0 ) {
-                       if ( c != fc ) {
-                               c.setVisible( false);
-                               fc.setVisible( true);
-                       }
-                       return;
-               }
-       }
-}
-
-public int getHgap () {
-       return hgap;
-}
-
-public float getLayoutAlignmentX ( Container parent ) {
-       return (Component.CENTER_ALIGNMENT);
-}
-
-public float getLayoutAlignmentY ( Container parent ) {
-       return (Component.CENTER_ALIGNMENT);
-}
-
-private Dimension getLayoutSize (  Container parent, boolean preferred) {
-       Dimension d = new Dimension();
-       int cc = parent.getComponentCount();
-
-       for ( int i=0; i<cc; i++) {
-               Component c = parent.getComponent(i);
-               Dimension cd = preferred ? c.getPreferredSize() : 
c.getMinimumSize();
-               d.width = Math.max( d.width, cd.width );
-               d.height = Math.max( d.height, cd.height );
-       }
-       
-       // use getInsets() instead of fields (might be redefined)
-       Insets in = parent.getInsets();
-       d.width += in.left + in.right;
-       d.height += in.top + in.bottom;
-       
-       return d;
-}
-
-public int getVgap () {
-       return vgap;
-}
-
-public void invalidateLayout ( Container parent) {
-}
-
-public void last ( Container parent) {
-       Component lc = null;
-       int cc = parent.getComponentCount();
-
-       for ( int i=cc-1; i>=0; i--) {
-               Component c = parent.getComponent(i);
-               if ( lc == null )
-                       lc = c;
-               if ( (c.flags & Component.IS_VISIBLE) != 0) {
-                       if ( c != lc ) {
-                               c.setVisible( false);
-                               lc.setVisible( true);
-                       }
-                       return;
-               }
-       }
-}
-
-public void layoutContainer ( Container parent) {
-       Insets in = parent.getInsets();  // getInsets() might be redefined 
(swing)
-       int cc = parent.getComponentCount();
-
-       for ( int i=0; i<cc; i++) {
-               parent.getComponent(i).setBounds(       in.left + hgap,
-                                                                               
                                                        in.top + vgap,
-                                                                               
                                                        parent.width - 2*hgap - 
in.left - in.right,
-                                                                               
                                                        parent.height - 2*vgap 
- in.top - in.bottom );
-       }
-}
-
-public Dimension maximumLayoutSize ( Container parent ) {
-       return Toolkit.singleton.getScreenSize();
-}
-
-public Dimension minimumLayoutSize ( Container parent ) {
-       return getLayoutSize( parent, false);
-}
-
-public void next ( Container parent) {
-       Component lc = null;
-       int cc = parent.getComponentCount();
-
-       for ( int i=0; i<cc; i++) {
-               Component c = parent.getComponent(i);
-               if ( (c.flags & Component.IS_VISIBLE) != 0 )
-                       lc = c;
-               else if ( lc != null) {
-                       lc.setVisible( false);
-                       c.setVisible( true);
-                       return;
-               }
-       }
-}
-
-public Dimension preferredLayoutSize ( Container parent) {
-       return getLayoutSize( parent, true);
-}
-
-public void previous ( Container parent) {
-       Component lc = null;
-       int cc = parent.getComponentCount();
-
-       for ( int i=cc-1; i>=0; i--) {
-               Component c = parent.getComponent(i);
-               if ( (c.flags & Component.IS_VISIBLE) != 0 )
-                       lc = c;
-               else if ( lc != null) {
-                       lc.setVisible( false);
-                       c.setVisible( true);
-                       return;
-               }
-       }
-}
-
-public void removeLayoutComponent ( Component comp) {
-       for( Enumeration e = tab.keys(); e.hasMoreElements(); ) {
-               String key = (String)e.nextElement();
-               Component c = (Component)tab.get( key);
-               if ( c == comp ) {
-                       tab.remove( key);
-                       return;
-               }
-       }
-}
-
-public void setHgap ( int hgap) {
-       this.hgap = hgap;
-}
-
-public void setVgap ( int vgap) {
-       this.vgap = vgap;
-}
-
-public void show ( Container parent, String name) {
-       Component nc = (Component)tab.get( name);
-       if ( nc == null )
-               return;
-       int cc = parent.getComponentCount();
-       
-       for ( int i=0; i<cc; i++) {
-               Component c = parent.getComponent(i);
-               if ( (c.flags & Component.IS_VISIBLE) != 0 ) {
-                       if ( c != nc) {
-                               c.setVisible( false);
-                               nc.setVisible( true);
-                       }
-                       return;
-               }
-       }
-}
-
-public String toString () {
-       return ("CardLayout: hgap: " + hgap + ",vgap: " + vgap);
-}
-}
===================================================================
Checking out 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager.java
RCS:  
/home/cvs/kaffe/kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Attic/LayoutManager.java,v
VERS: 1.2
***************
--- 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager.java   
    Wed Apr 26 19:40:29 2006
+++ /dev/null   Sun Aug  4 19:57:58 2002
@@ -1,92 +0,0 @@
-/* LayoutManager.java -- lay out elements in a Container
-   Copyright (C) 1999, 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package java.awt;
-
-/**
- * This interface is for laying out containers in a particular sequence.
- *
- * @author Aaron M. Renn <[EMAIL PROTECTED]>
- * @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
-   */
-  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
===================================================================
Checking out 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager2.java
RCS:  
/home/cvs/kaffe/kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Attic/LayoutManager2.java,v
VERS: 1.2
***************
--- 
kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/LayoutManager2.java  
    Wed Apr 26 19:40:29 2006
+++ /dev/null   Sun Aug  4 19:57:58 2002
@@ -1,100 +0,0 @@
-/* LayoutManager2.java -- enhanced layout manager
-   Copyright (C) 1999, 2002 Free Software Foundation, Inc.
-
-This file is part of GNU Classpath.
-
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING.  If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from
-or based on this library.  If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so.  If you do not wish to do so, delete this
-exception statement from your version. */
-
-
-package java.awt;
-
-/**
- * Layout manager for laying out containers based on contraints. The
- * constraints control how the layout will proceed.
- *
- * @author Aaron M. Renn <[EMAIL PROTECTED]>
- * @see LayoutManager
- * @see Container
- * @since 1.0
- * @status updated to 1.4
- */
-public interface LayoutManager2 extends LayoutManager
-{
-  /**
-   * Adds the specified component to the layout, with the specified
-   * constraints object.
-   *
-   * @param component the component to add
-   * @param constraints the constraints to satisfy
-   */
-  void addLayoutComponent(Component component, Object contraints);
-
-  /**
-   * Determines the maximum size of the specified target container.
-   *
-   * @param target the container to lay out
-   * @return the maximum size of the container
-   * @see Component#getMaximumSize()
-   */
-  Dimension maximumLayoutSize(Container target);
-
-  /**
-   * Returns the preferred X axis alignment for the specified target
-   * container.  This value will range from 0 to 1 where 0 is alignment
-   * closest to the origin, 0.5 is centered, and 1 is aligned furthest
-   * from the origin.
-   *
-   * @param target the target container
-   * @return the x-axis alignment preference
-   */
-  float getLayoutAlignmentX(Container target);
-
-  /**
-   * Returns the preferred Y axis alignment for the specified target
-   * container.  This value will range from 0 to 1 where 0 is alignment
-   * closest to the origin, 0.5 is centered, and 1 is aligned furthest
-   * from the origin.
-   *
-   * @param target the target container
-   * @return the y-axis alignment preference
-   */
-  float getLayoutAlignmentY(Container target);
-
-  /**
-   * Forces the layout manager to purge any cached information about the
-   * layout of the target container.  This will force it to be recalculated.
-   *
-   * @param target the target container
-   */
-  void invalidateLayout(Container target);
-} // interface LayoutManager2

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to