org.jfree.report.layout
Interface BandLayoutManager

All Known Implementing Classes:
AbstractBandLayoutManager

public interface BandLayoutManager

An interface that defines the methods to be supported by a band layout manager.

See the AWT LayoutManager for the idea :)

Author:
Thomas Morgner
See Also:
StaticLayoutManager

Field Summary
static StyleKey LAYOUTMANAGER
          The LayoutManager styleKey.
 
Method Summary
 void doLayout(Band b, LayoutSupport support)
          Performs the layout of a band.
 StrictDimension minimumLayoutSize(Band b, StrictDimension containerDims, StrictDimension maxUsableSize, LayoutSupport support)
          Calculates the minimum layout size for a band.
 StrictDimension preferredLayoutSize(Band b, StrictDimension containerDims, StrictDimension maxUsableSize, LayoutSupport support)
          Calculates the preferred layout size for a band.
 

Field Detail

LAYOUTMANAGER

public static final StyleKey LAYOUTMANAGER
The LayoutManager styleKey. All bands must define their LayoutManager by using this key when using the PageableReportProcessor.
Method Detail

preferredLayoutSize

public StrictDimension preferredLayoutSize(Band b,
                                           StrictDimension containerDims,
                                           StrictDimension maxUsableSize,
                                           LayoutSupport support)
Calculates the preferred layout size for a band.
Parameters:
b - the band.
containerDims - the bounds of the surrounding container.
maxUsableSize - the maximum size that can be granted by the surrounding container.
support - the layout support used to compute sizes.
Returns:
the preferred size.

minimumLayoutSize

public StrictDimension minimumLayoutSize(Band b,
                                         StrictDimension containerDims,
                                         StrictDimension maxUsableSize,
                                         LayoutSupport support)
Calculates the minimum layout size for a band.
Parameters:
b - the band.
containerDims - the bounds of the surrounding container.
maxUsableSize -  
support - the layout support used to compute sizes.
Returns:
the minimum size.

doLayout

public void doLayout(Band b,
                     LayoutSupport support)
Performs the layout of a band.
Parameters:
b - the band.
support - the layout support used to compute sizes.