org.jfree.report.layout
Class GridBLayoutManager

java.lang.Object
  extended byorg.jfree.report.layout.AbstractBandLayoutManager
      extended byorg.jfree.report.layout.GridBLayoutManager
All Implemented Interfaces:
BandLayoutManager

public class GridBLayoutManager
extends AbstractBandLayoutManager

A layout manager.

Author:
Thomas Morgner.

Field Summary
 
Fields inherited from interface org.jfree.report.layout.BandLayoutManager
LAYOUTMANAGER
 
Constructor Summary
GridBLayoutManager()
          Default constructor.
 
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 containerBounds, 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.
 
Methods inherited from class org.jfree.report.layout.AbstractBandLayoutManager
align, computeMinimumSize, computePreferredSize, correctDimension, correctPoint, correctRelativeValue, createLayoutInfoForDynamics, createLayoutInformationForMinimumSize, createLayoutInformationForPreferredSize, getElementContentBounds, isElementStaticHeight, isElementStaticWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridBLayoutManager

public GridBLayoutManager()
Default constructor.

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 containerBounds,
                                                   LayoutSupport support)
Calculates the minimum layout size for a band.

Parameters:
b - the band.
containerBounds - 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.