/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


package com.nokia.sdt.uidesigner.ui.figure;

import com.nokia.sdt.uidesigner.ui.editparts.IImageProvider;

import org.eclipse.draw2d.*;

/**
 * 
 *
 */
public class RootContainerLayoutFigure extends LayoutObjectFigure {

	public RootContainerLayoutFigure(IImageProvider imageProvider) {
		super(imageProvider);
		SimpleLoweredBorder border = new SimpleLoweredBorder();
		setBorder(border); // has a width to account for!
		setOpaque(true); // non-transparent figure
		setLayoutManager(new FreeformLayout());
	}

	/* (non-Javadoc)
	 * @see org.eclipse.draw2d.Figure#addNotify()
	 */
	public void addNotify() {
		super.addNotify();
		setBounds(getParent().getClientArea());
	}
}
