|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.base.bandlayout.AbstractBandLayoutManager
An abstract band layout manager.
Field Summary |
Fields inherited from interface com.jrefinery.report.targets.base.bandlayout.BandLayoutManager |
LAYOUTMANAGER |
Constructor Summary | |
protected |
AbstractBandLayoutManager()
Default constructor. |
Method Summary | |
protected float |
align(float value,
float boundary)
Aligns the given value to the boundary. |
protected java.awt.geom.Dimension2D |
correctDimension(java.awt.geom.Dimension2D dim,
java.awt.geom.Dimension2D base,
java.awt.geom.Dimension2D retval)
Corrects the relative (proportional) values. |
protected java.awt.geom.Point2D |
correctPoint(java.awt.geom.Point2D dim,
java.awt.geom.Dimension2D base,
java.awt.geom.Point2D retval)
Corrects the relative (proportional) values. |
protected ElementLayoutInformation |
createLayoutInfoForDynamics(Element e,
java.awt.geom.Dimension2D parentDim)
Creates a layout information object for a DynamicElement content calculation. |
protected ElementLayoutInformation |
createLayoutInformationForMinimumSize(Element e,
java.awt.geom.Dimension2D containerBounds)
Creates layout information for the minimum size. |
protected ElementLayoutInformation |
createLayoutInformationForPreferredSize(Element e,
java.awt.geom.Dimension2D containerDims)
Creates layout information for the preferred size. |
protected java.awt.geom.Dimension2D |
getElementContentBounds(java.awt.geom.Dimension2D bounds,
Element e,
java.awt.geom.Dimension2D conBounds)
Calculates the size of an element by creating the content for this element and then trying to layout that content. |
LayoutSupport |
getLayoutSupport()
Returns the output target for the layout manager. |
protected java.awt.geom.Dimension2D |
getMinimumSize(Element e,
java.awt.geom.Dimension2D containerBounds)
Returns the minimum size for an element. |
protected java.awt.geom.Dimension2D |
getPreferredSize(Element e,
java.awt.geom.Dimension2D containerBounds)
Calculates the preferred size of an element. |
protected boolean |
isElementStaticHeight(Element e)
Returns true if the element has a static height, and false otherwise. |
protected boolean |
isElementStaticWidth(Element e)
Returns true if the element has a static width, and false otherwise. |
void |
setLayoutSupport(LayoutSupport target)
Sets the output target for the layout manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.report.targets.base.bandlayout.BandLayoutManager |
doLayout, invalidateLayout, minimumLayoutSize, preferredLayoutSize |
Constructor Detail |
protected AbstractBandLayoutManager()
Method Detail |
protected java.awt.geom.Dimension2D getMinimumSize(Element e, java.awt.geom.Dimension2D containerBounds)
e
- the element.containerBounds
- the bounds of the elements parents.
protected java.awt.geom.Dimension2D getPreferredSize(Element e, java.awt.geom.Dimension2D containerBounds)
e
- the element.containerBounds
- the bounds of the element's container.
protected java.awt.geom.Dimension2D getElementContentBounds(java.awt.geom.Dimension2D bounds, Element e, java.awt.geom.Dimension2D conBounds)
Calculation rules: Take the width of given bounds to calculate a height based on the content. Then cut the content to a maybe defined max-value. todo redefine the context creation process, height or width can be dynamic
bounds
- the bounds of the element calculated so far.e
- the element.conBounds
- the bounds of the surrounding container.
protected ElementLayoutInformation createLayoutInfoForDynamics(Element e, java.awt.geom.Dimension2D parentDim)
e
- the element for that the layout should be done.parentDim
- the dimensions for the parent of the element
protected ElementLayoutInformation createLayoutInformationForMinimumSize(Element e, java.awt.geom.Dimension2D containerBounds)
e
- the element.containerBounds
- the bounds of the container.
protected ElementLayoutInformation createLayoutInformationForPreferredSize(Element e, java.awt.geom.Dimension2D containerDims)
e
- the element.containerDims
- the dimensions of the container.
public void setLayoutSupport(LayoutSupport target)
setLayoutSupport
in interface BandLayoutManager
target
- the target.public LayoutSupport getLayoutSupport()
getLayoutSupport
in interface BandLayoutManager
protected boolean isElementStaticWidth(Element e)
true
if the element has a static width, and false
otherwise.
e
- the element.
true
or false.protected boolean isElementStaticHeight(Element e)
e
- the element.
protected java.awt.geom.Dimension2D correctDimension(java.awt.geom.Dimension2D dim, java.awt.geom.Dimension2D base, java.awt.geom.Dimension2D retval)
dim
- the dimension that should be corrected.base
- the base to define the 100% limit.retval
- the return value.
protected java.awt.geom.Point2D correctPoint(java.awt.geom.Point2D dim, java.awt.geom.Dimension2D base, java.awt.geom.Point2D retval)
dim
- the point that should be corrected.base
- the base to define the 100% limit.retval
- the return value.
protected float align(float value, float boundary)
value
- the value.boundary
- the boundary.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |