|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.reporting.engine.classic.core.layout.StaticLayoutManager
public class StaticLayoutManager
An implementation of the BandLayoutManager interface.
Rule: Bands can have minimum, max and pref size defined. These values are hints for the layout container, no restrictions. If min and pref are '0', they are ignored. MaxSize is never ignored. Elements that have the "dynamic" flag set, are checked for their content-bounds. This operation is expensive, so this is only done if really needed. The dynamic flag will influence the height of an element, a valid width must be already set. Invisible elements within the layouted band are not evaluated. This layout manager will ignore invisible child bands and -elements. Note to everybody who tries to understand this class: This class is full of old compatibility code, this class is not designed to be smart, or suitable for complex layouts. The only purpose of this class is to maintain backward compatiblity with older releases of JFreeReport. The use of relative elements (the one's with 100% should be considered carefully, as these elements are not fully predictable).
Field Summary | |
---|---|
static StyleKey |
ABSOLUTE_POS
Deprecated. A key for the absolute position of an element. |
Fields inherited from interface org.pentaho.reporting.engine.classic.core.layout.BandLayoutManager |
---|
LAYOUTMANAGER |
Constructor Summary | |
---|---|
StaticLayoutManager()
Deprecated. Creates a new layout manager. |
Method Summary | |
---|---|
void |
doLayout(Band b,
LayoutSupport support,
ExpressionRuntime runtime)
Deprecated. Layout a single band with all elements contained within the band. |
StrictDimension |
minimumLayoutSize(Band b,
StrictDimension containerBounds,
StrictDimension maxUsableSize,
LayoutSupport support,
ExpressionRuntime runtime)
Deprecated. Calculates the minimum layout size for a band. |
StrictDimension |
preferredLayoutSize(Band b,
StrictDimension containerDims,
StrictDimension maxUsableSize,
LayoutSupport support,
ExpressionRuntime runtime)
Deprecated. Calculates the preferred layout size for a band. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StyleKey ABSOLUTE_POS
Constructor Detail |
---|
public StaticLayoutManager()
Method Detail |
---|
public StrictDimension preferredLayoutSize(Band b, StrictDimension containerDims, StrictDimension maxUsableSize, LayoutSupport support, ExpressionRuntime runtime)
preferredLayoutSize
in interface BandLayoutManager
b
- the band.containerDims
- the maximum size the band should use for that container.maxUsableSize
- support
- the layout support used to compute sizes.
public StrictDimension minimumLayoutSize(Band b, StrictDimension containerBounds, StrictDimension maxUsableSize, LayoutSupport support, ExpressionRuntime runtime)
minimumLayoutSize
in interface BandLayoutManager
b
- the band.containerBounds
- the bounds of the bands parents.maxUsableSize
- support
- the layout support used to compute sizes.
public void doLayout(Band b, LayoutSupport support, ExpressionRuntime runtime)
BOUNDS
already set and all elements are laid out within these bounds. The band's
properties will not be changed during the layouting.
This layout manager requires that all direct child elements have the ABSOLUTE_POS
and
MINIMUM_SIZE
properties set to valid values.
doLayout
in interface BandLayoutManager
b
- the band to lay out.support
- the layout support used to compute sizes.
IllegalStateException
- if the bands has no bounds set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |