/*
 * @(#)PackerInfo.java    1.0 12/19/95 Henry Wong
 *
 * Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for NON-COMMERCIAL purposes and without
 * fee is hereby granted provided that this copyright notice
 * appears in all copies. Please refer to the file "copyright.html"
 * for further important copyright and licensing information.
 *
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
 * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */
package awt;
import java.awt.*;

/**
 * PackerInfo is used to specify the constraints for components
 * laid out using the PackerLayout manager.
 *
 * @author Henry Wong
 */
public class PackerInfo  implements Cloneable{
	public static final int TOP = 0;
	public static final int BOTTOM = 1;
	public static final int LEFT = 2;
	public static final int RIGHT = 3;

	public int side;
	public int padx;
	public int pady;
	public boolean fillx;
	public boolean filly;

	public Component widget;

	public PackerInfo() {
		side = PackerInfo.TOP;
		padx = pady = 0;
		fillx = filly = false;

		widget = null;
	}
    	public Object clone() {
        	try {
            		return super.clone();
        	} catch (CloneNotSupportedException e) {
            		// this shouldn't happen, since we are Cloneable
            		throw new InternalError();
        	}
    	}
}  

