ui::layout::FlowLayout Class Reference

Inheritance diagram for ui::layout::FlowLayout:

Inheritance graph
[legend]
Collaboration diagram for ui::layout::FlowLayout:

Collaboration graph
[legend]
List of all members.

Detailed Description

FlowLayout. A LayoutManager which lays out components like text. If Components do not fit onto one line (row), the next Components are moved to the next line(row).


Public Member Functions

 FlowLayout ()
 FlowLayout (const FlowLayout &rhs)
FlowLayoutoperator= (const FlowLayout &rhs)
void swap (FlowLayout &rhs) throw ()
 FlowLayout (int alignment)
 FlowLayout (int alignment, int hgap, int vgap)
void layoutContainer (Container *parent)
const util::Dimension preferredLayoutSize (const Container *parent) const


Constructor & Destructor Documentation

ui::layout::FlowLayout::FlowLayout  ) 
 

Default Constructor.

ui::layout::FlowLayout::FlowLayout const FlowLayout rhs  ) 
 

Copy Constructor.

ui::layout::FlowLayout::FlowLayout int  alignment  ) 
 

Creates a FlowLayout with given alignment.

Parameters:
alignment Indicates where the FlowLayout starts, on the left or the right.

ui::layout::FlowLayout::FlowLayout int  alignment,
int  hgap,
int  vgap
 

Creates a FlowLayout with given alignment, horizontal and vertical spacing.

Parameters:
alignment Indicates where the FlowLayout starts, on the left or the right.
hgap Horizontal spacing between Components.
vgap Vertical spacing between Components.


Member Function Documentation

FlowLayout & ui::layout::FlowLayout::operator= const FlowLayout rhs  ) 
 

Assignment operator.

void ui::layout::FlowLayout::swap FlowLayout rhs  )  throw ()
 

Swaps this LayoutManager with another.

void ui::layout::FlowLayout::layoutContainer Container parent  )  [virtual]
 

Lay out the given Container.

Parameters:
parent the Container to be laid out.

Reimplemented from ui::layout::LayoutManager.

const util::Dimension ui::layout::FlowLayout::preferredLayoutSize const Container parent  )  const [virtual]
 

Returns the preferred Dimension the Container likes to have. This is used to calculate the preferredSize. It is not guarenteed to be used, but it could happen (one happy customer).

Parameters:
container Container to calculate and return the preferredSize from.
Returns:
The preferred size for the given Container.

Reimplemented from ui::layout::LayoutManager.


Generated on Mon Jun 20 19:42:01 2005 for UI by doxygen 1.3.1 using KingsTools