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 $
-
Interface Summary Interface Description PercentLayoutPlatformAdapter Definition of an interface that encapsulates platform (library) specific access to GUI components that are managed by a percent layout manager.UnitSizeHandler Definition of an interface for performing size calculations in a manner independent of a certain component model. -
Class Summary Class Description BorderLayout A GUI library independent implementation of the AWT layout manager BorderLayout.ButtonLayout A layout manager that deals with button bars for dialogs.CellConstraints A class for describing column and row constraints for thePercentLayout
layout manager.CellConstraints.Builder A builder class for creating instances ofCellConstraints
.CellGroup A simple helper class to define columns and rows with identical size inPercentLayout
.NumberWithUnit A class that combines a value with a unit.PercentData A constraints class used byPercentLayout
.PercentData.Builder A builder implementation for creating instances ofPercentData
.PercentLayout The concrete percent layout implementation.PercentLayoutBase The main class of the percent layout manager. -
Enum Summary Enum Description ButtonLayout.Alignment An enumeration class for the alignment of aButtonLayout
.CellAlignment An enumeration class that defines the possible alignments of components in the cells of a percent layout.CellSize An enumeration class that defines possible sizes for the cells of a percent layout.Unit An enumeration class for defining units.