|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.layout.AbstractBandLayoutManager
An abstract band layout manager.
| Field Summary | |
static long |
RELATIVE_CORRECTION_FACTOR
The factor which gets used to correct relative coordinate values. |
| Fields inherited from interface org.jfree.report.layout.BandLayoutManager |
LAYOUTMANAGER |
| Constructor Summary | |
protected |
AbstractBandLayoutManager()
Default constructor. |
| Method Summary | |
static long |
alignDown(long value,
long boundary)
Aligns the given value to the boundary. |
static long |
alignUp(long value,
long boundary)
Aligns the given value to the boundary. |
protected static StrictDimension |
correctDimension(StrictDimension dim,
StrictDimension base,
StrictDimension retval,
LayoutSupport support)
Corrects the relative (proportional) values. |
protected static StrictPoint |
correctPoint(StrictPoint dim,
StrictDimension base,
StrictPoint retval,
LayoutSupport support)
Corrects the relative (proportional) values. |
protected static long |
correctRelativeValue(long dim,
long base)
Corrects a single value. |
protected ElementLayoutInformation |
createLayoutInfoForDynamics(Element e,
StrictDimension parentDim,
StrictDimension maxUsableSize,
LayoutSupport support)
Creates a layout information object for a DynamicElement content calculation. |
protected ElementLayoutInformation |
createLayoutInformationForMinimumSize(Element e,
StrictDimension containerBounds,
StrictDimension maxUsableSize,
LayoutSupport support)
Creates layout information for the minimum size. |
protected ElementLayoutInformation |
createLayoutInformationForPreferredSize(Element e,
StrictDimension containerDims,
StrictDimension maxUsableSize,
LayoutSupport support)
Creates layout information for the preferred size. |
protected StrictDimension |
getElementContentBounds(StrictDimension bounds,
Element e,
StrictDimension containerBounds,
StrictDimension maxUsablesize,
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 |
| Field Detail |
public static final long RELATIVE_CORRECTION_FACTOR
| Constructor Detail |
protected AbstractBandLayoutManager()
| Method Detail |
protected StrictDimension getElementContentBounds(StrictDimension bounds,
Element e,
StrictDimension containerBounds,
StrictDimension maxUsablesize,
LayoutSupport support)
bounds - the bounds of the element calculated so far. These bounds will be
modified and returned.e - the element.containerBounds - maxUsablesize - support - the layout support used to compute sizes.
protected ElementLayoutInformation createLayoutInfoForDynamics(Element e,
StrictDimension parentDim,
StrictDimension maxUsableSize,
LayoutSupport support)
e - the element for that the layout should be done.parentDim - the dimensions for the parent of the elementmaxUsableSize -
protected ElementLayoutInformation createLayoutInformationForMinimumSize(Element e,
StrictDimension containerBounds,
StrictDimension maxUsableSize,
LayoutSupport support)
e - the element.containerBounds - the bounds of the container.maxUsableSize -
protected ElementLayoutInformation createLayoutInformationForPreferredSize(Element e,
StrictDimension containerDims,
StrictDimension maxUsableSize,
LayoutSupport support)
e - the element.containerDims - the dimensions of the container.maxUsableSize - 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 StrictDimension correctDimension(StrictDimension dim,
StrictDimension base,
StrictDimension retval,
LayoutSupport support)
dim - the dimension that should be corrected.base - the base to define the 100% limit.retval - the return value.
protected static long correctRelativeValue(long dim,
long base)
dim - the dimensions valuebase - the base value (the containers value), should never be negative.
protected static StrictPoint correctPoint(StrictPoint dim,
StrictDimension base,
StrictPoint retval,
LayoutSupport support)
dim - the point that should be corrected.base - the base to define the 100% limit.retval - the return value.
public static long alignDown(long value,
long boundary)
value - the value.boundary - the boundary.
public static long alignUp(long value,
long boundary)
value - the value.boundary - the boundary.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||