|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.layout.BandLayoutManagerUtil
A collection of utility methods for use by classes that implement the BandLayoutManager interface.
Method Summary | |
static java.awt.geom.Rectangle2D |
doFixedLayout(Band band,
LayoutSupport support,
float width,
float height)
Performs all required steps to layout the band; the bands bounds are predefined by the caller and will not be computed. |
static java.awt.geom.Rectangle2D |
doLayout(Band band,
LayoutSupport support,
float width,
float height)
Performs all required steps to layout the band. |
static java.awt.geom.Rectangle2D |
getBounds(Element e,
java.awt.geom.Rectangle2D bounds)
Returns the bounds of an element. |
static BandLayoutManager |
getLayoutManager(Element e)
Returns the layout manager for an element in a report. |
static void |
setBounds(Element e,
java.awt.geom.Rectangle2D bounds)
Sets the bounds for an element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static BandLayoutManager getLayoutManager(Element e)
e
- the element.
public static java.awt.geom.Rectangle2D getBounds(Element e, java.awt.geom.Rectangle2D bounds)
e
- the element.bounds
- if non-null, this structure will be updated and returned as the result (use
this to avoid creating unnecessary work for the garbage collector).
java.lang.NullPointerException
- if the given element is nullpublic static void setBounds(Element e, java.awt.geom.Rectangle2D bounds)
e
- the element.bounds
- the new bounds.
java.lang.NullPointerException
- if the given element or the bounds are nullpublic static java.awt.geom.Rectangle2D doLayout(Band band, LayoutSupport support, float width, float height)
The bands elements get their BOUNDS property updated to reflect the new layout settings.
band
- the band that should be laid out.support
- the LayoutSupport implementation used to calculate the bounds of dynamic
content.width
- the initial maximum width of the container.height
- the initial maximum height of the container.
public static java.awt.geom.Rectangle2D doFixedLayout(Band band, LayoutSupport support, float width, float height)
The bands elements get their BOUNDS property updated to reflect the new layout settings.
band
- the band that should be laid out.support
- the LayoutSupport implementation used to calculate the bounds of dynamic
content.width
- the initial maximum width of the container.height
- the initial maximum height of the container.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |