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.
 void invalidateLayout(Band container)
          Clears any cached items used by the layout manager.
 java.awt.geom.Dimension2D minimumLayoutSize(Band b, java.awt.geom.Dimension2D containerDims, LayoutSupport support)
          Calculates the minimum layout size for a band.
 java.awt.geom.Dimension2D preferredLayoutSize(Band b, java.awt.geom.Dimension2D containerDims, 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 java.awt.geom.Dimension2D preferredLayoutSize(Band b,
                                                     java.awt.geom.Dimension2D containerDims,
                                                     LayoutSupport support)
Calculates the preferred layout size for a band.

Parameters:
b - the band.
containerDims - the bounds of the surrounding container.
support - the layout support used to compute sizes.
Returns:
the preferred size.

minimumLayoutSize

public java.awt.geom.Dimension2D minimumLayoutSize(Band b,
                                                   java.awt.geom.Dimension2D containerDims,
                                                   LayoutSupport support)
Calculates the minimum layout size for a band.

Parameters:
b - the band.
containerDims - the bounds of the surrounding container.
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.

invalidateLayout

public void invalidateLayout(Band container)
Clears any cached items used by the layout manager. Invalidates the layout.

Parameters:
container - the container.