|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.layout.AbstractBandLayoutManager
An abstract band layout manager.
Field Summary |
Fields inherited from interface org.jfree.report.layout.BandLayoutManager |
LAYOUTMANAGER |
Constructor Summary | |
protected |
AbstractBandLayoutManager()
Default constructor. |
Method Summary | |
protected static float |
align(float value,
float boundary)
Aligns the given value to the boundary. |
protected java.awt.geom.Dimension2D |
computeMinimumSize(Element e,
java.awt.geom.Dimension2D containerBounds,
java.awt.geom.Dimension2D retval,
LayoutSupport support)
Returns the minimum size for an element. |
protected java.awt.geom.Dimension2D |
computePreferredSize(Element e,
java.awt.geom.Dimension2D containerBounds,
java.awt.geom.Dimension2D retval,
LayoutSupport support)
Calculates the preferred size of an element. |
protected static 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 static 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 static float |
correctRelativeValue(float dim,
float base)
Corrects a single value. |
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,
LayoutSupport support)
Calculates the size of an element by creating the content for this element and then trying to layout that content. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.report.layout.BandLayoutManager |
doLayout, invalidateLayout, minimumLayoutSize, preferredLayoutSize |
Constructor Detail |
protected AbstractBandLayoutManager()
Method Detail |
protected java.awt.geom.Dimension2D computeMinimumSize(Element e, java.awt.geom.Dimension2D containerBounds, java.awt.geom.Dimension2D retval, LayoutSupport support)
e
- the element.containerBounds
- the bounds of the elements parents.retval
- a dimension object that should be filled, or null,
if a new object should be createdsupport
- the layout support used to compute sizes.
protected java.awt.geom.Dimension2D computePreferredSize(Element e, java.awt.geom.Dimension2D containerBounds, java.awt.geom.Dimension2D retval, LayoutSupport support)
e
- the element.containerBounds
- the bounds of the element's container.retval
- a dimension object that should be filled, or null,
if a new object should be createdsupport
- the layout support used to compute sizes.
protected java.awt.geom.Dimension2D getElementContentBounds(java.awt.geom.Dimension2D bounds, Element e, java.awt.geom.Dimension2D conBounds, LayoutSupport support)
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.
bounds
- the bounds of the element calculated so far. These bounds will be modified
and returned.e
- the element.conBounds
- the bounds of the surrounding container.support
- the layout support used to compute sizes.
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.
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 static 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 static float correctRelativeValue(float dim, float base)
dim
- the dimensions valuebase
- the base value (the containers value)
protected static 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 static 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 |