VariableGridLayout.java revision 0
2685N/A * Copyright 1995 Sun Microsystems, Inc. All Rights Reserved. 2370N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2370N/A * This code is free software; you can redistribute it and/or modify it 2370N/A * under the terms of the GNU General Public License version 2 only, as 2685N/A * published by the Free Software Foundation. Sun designates this 2370N/A * particular file as subject to the "Classpath" exception as provided 2685N/A * by Sun in the LICENSE file that accompanied this code. 2370N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2370N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2370N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2370N/A * version 2 for more details (a copy is included in the LICENSE file that 2370N/A * You should have received a copy of the GNU General Public License version 2370N/A * 2 along with this work; if not, write to the Free Software Foundation, 2370N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2685N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2685N/A * CA 95054 USA or visit www.sun.com if you need additional information or 2370N/A * A layout manager for a container that lays out grids. Allows setting 2370N/A * the relative sizes of rows and columns. 2370N/A * Creates a grid layout with the specified rows and specified columns. 6133N/A * Creates a grid layout with the specified rows, columns, 6133N/A * horizontal gap, and vertical gap. 6133N/A * @param hgap the horizontal gap variable 6133N/A * @param vgap the vertical gap variable 6133N/A * @exception IllegalArgumentException If the rows and columns are invalid. 2370N/A // collect the space that's been explicitly allocated... 2370N/A // ... then spread the extra space 2370N/A * Lays out the container in the specified panel. 2370N/A * @param parent the specified component being laid out * Returns the String representation of this VariableGridLayout's values.