de.erichseifert.gral
Interface Layout

All Known Implementing Classes:
EdgeLayout, StackedLayout

public interface Layout

Interface that provides basic functions for arranging a layout. Functionality includes the arrangement of the layout itself and returning the preferred size of a container.


Method Summary
 Dimension2D getPreferredSize(Container container)
          Returns the preferred size of the specified Container using this Layout.
 void layout(Container container)
          Arranges the components of this Container according to this Layout.
 

Method Detail

layout

void layout(Container container)
Arranges the components of this Container according to this Layout.

Parameters:
container - Container to be laid out.

getPreferredSize

Dimension2D getPreferredSize(Container container)
Returns the preferred size of the specified Container using this Layout.

Parameters:
container - Container whose preferred size is to be returned.
Returns:
Preferred extent of the specified Container.


Copyright © 2009-2010. All Rights Reserved.