Package net.sf.jguiraffe.gui.layout

This package contains the platform-independent base classes and helper classes for the layout managers provided by the JGUIraffe library.

The most important class in this package is PercentLayoutBase which implements the basic functionality of the percent layout layout manager. Percent layout organizes components in a tabular structure. For each cell of the table properties like the initial size, the alignment, or a weight factor can be defined. The weight factor controls how additional space that becomes available if the user resizes the window is assigned to the cells comprising the layout. The properties of a cell are specified by an instance of CellConstraints.

The PercentLayout class is the platform-independent implementation of percent layout. Based on the same concepts there are some other platform-independent layout manager implementations:

  • BorderLayout provides the same functionality as the AWT layout manager with the same name with some slight enhancements.
  • ButtonLayout is specialized on layouting the command buttons of a dialog (e.g. a bar at the bottom of the dialog containing buttons like Save, Cancel, or Help. All buttons have the same size and space between them.

The term platform-independent in this context means that the layout manager classes defined in this package implement the basic layouting algorithms, but they do not adhere to special layout manager interfaces. Other packages provide concrete sub classes of these classes that can be used in specific GUI toolkits, e.g. Swing.

$Id: package.html 205 2012-01-29 18:29:57Z oheger $