net.sf.jasperreports.engine.fill
Class JRHorizontalFiller
java.lang.Object
net.sf.jasperreports.engine.fill.JRBaseFiller
net.sf.jasperreports.engine.fill.JRHorizontalFiller
- All Implemented Interfaces:
- JRDefaultFontProvider, JRDefaultStyleProvider
- public class JRHorizontalFiller
- extends JRBaseFiller
- Version:
- $Id: JRHorizontalFiller.java,v 1.34 2005/11/28 09:20:43 teodord Exp $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Fields inherited from class net.sf.jasperreports.engine.fill.JRBaseFiller |
background, bands, bottomMargin, calculator, columnBoundElements, columnCount, columnFooter, columnHeader, columnSpacing, columnWidth, datasetMap, defaultFont, defaultStyle, detail, fillContext, fonts, formattedTextFields, groupBoundElements, groups, isFloatColumnFooter, isParametersAlreadySet, isSummaryNewPage, isTitleNewPage, jasperPrint, jasperReport, lastPageFooter, leftMargin, loadedSubreports, mainDataset, missingFillBand, name, orientation, pageBoundElements, pageFooter, pageHeader, pageHeight, pageWidth, parentFiller, perPageBoundElements, printOrder, printPage, printPageStretchHeight, reportBoundElements, reportClassLoader, rightMargin, scriptlet, styles, subfillers, summary, title, topMargin, virtualizer, whenNoDataType, whenResourceMissingType |
Method Summary |
protected void |
fillBand(JRPrintBand band)
|
protected void |
fillColumnBand(JRFillBand band,
byte evaluation)
|
protected void |
fillFixedBand(JRFillBand band,
byte evaluation)
|
protected void |
fillPageBand(JRFillBand band,
byte evaluation)
private void fillColumnBreak(
byte evalPrevPage,
byte evalNextPage
) throws JRException
{
if (columnIndex == columnCount - 1)
{
fillPageBreak(false, evalPrevPage, evalNextPage);
}
else
{
fillColumnFooter(evalPrevPage);
resolveGroupBoundImages(evalPrevPage, false);
resolveColumnBoundImages(evalPrevPage);
resolveGroupBoundTexts(evalPrevPage, false);
resolveColumnBoundTexts(evalPrevPage);
scriptlet.callBeforeColumnInit();
calculator.initializeVariables(JRVariable.RESET_TYPE_COLUMN);
scriptlet.callAfterColumnInit();
columnIndex += 1;
offsetX = leftMargin + columnIndex * (columnSpacing + columnWidth);
offsetY = columnHeaderOffsetY;
calculator.getColumnNumber().setValue(
new Integer(((Number)calculator.getColumnNumber().getValue()).intValue() + 1)
);
calculator.getColumnNumber().setOldValue(
calculator.getColumnNumber().getValue()
);
fillColumnHeader(evalNextPage);
}
}
/** |
protected void |
fillReport()
|
protected void |
setPageHeight(int pageHeight)
|
Methods inherited from class net.sf.jasperreports.engine.fill.JRBaseFiller |
addElements, addGroupElements, addPage, addPageIdentityDataProvider, addVariableCalculationReq, cancelFill, createIdentityData, evaluateExpression, fill, fill, getCurrentPage, getCurrentPageStretchHeight, getDefaultFont, getDefaultStyle, getFieldsMap, getFonts, getJasperPrint, getJasperReport, getLocale, getMainDataset, getMasterColumnCount, getParametersMap, getStyledTextParser, getStyles, getVariable, getVariablesMap, getVariableValue, getWhenResourceMissingType, isBandOverFlowAllowed, isInterrupted, isSubreport, newPage, next, registerSubfiller, removePageIdentityDataProvider, resolveBandBoundElements, resolveColumnBoundElements, resolveGroupBoundElements, resolvePageBoundElements, resolveReportBoundElements, setBandOverFlowAllowed, setInterrupted, setParameter, setParameter, setParameters, setTextFieldsFormats, unregisterSubfiller, updateGroupIdentityData, updateIdentityData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRHorizontalFiller
protected JRHorizontalFiller(JasperReport jasperReport)
throws JRException
JRHorizontalFiller
protected JRHorizontalFiller(JasperReport jasperReport,
JRBaseFiller parentFiller)
throws JRException
JRHorizontalFiller
protected JRHorizontalFiller(JasperReport jasperReport,
JREvaluator evaluator,
JRBaseFiller parentFiller)
throws JRException
setPageHeight
protected void setPageHeight(int pageHeight)
- Specified by:
setPageHeight
in class JRBaseFiller
fillReport
protected void fillReport()
throws JRException
- Specified by:
fillReport
in class JRBaseFiller
- Throws:
JRException
fillPageBand
protected void fillPageBand(JRFillBand band,
byte evaluation)
throws JRException
- private void fillColumnBreak(
byte evalPrevPage,
byte evalNextPage
) throws JRException
{
if (columnIndex == columnCount - 1)
{
fillPageBreak(false, evalPrevPage, evalNextPage);
}
else
{
fillColumnFooter(evalPrevPage);
resolveGroupBoundImages(evalPrevPage, false);
resolveColumnBoundImages(evalPrevPage);
resolveGroupBoundTexts(evalPrevPage, false);
resolveColumnBoundTexts(evalPrevPage);
scriptlet.callBeforeColumnInit();
calculator.initializeVariables(JRVariable.RESET_TYPE_COLUMN);
scriptlet.callAfterColumnInit();
columnIndex += 1;
offsetX = leftMargin + columnIndex * (columnSpacing + columnWidth);
offsetY = columnHeaderOffsetY;
calculator.getColumnNumber().setValue(
new Integer(((Number)calculator.getColumnNumber().getValue()).intValue() + 1)
);
calculator.getColumnNumber().setOldValue(
calculator.getColumnNumber().getValue()
);
fillColumnHeader(evalNextPage);
}
}
/**
- Throws:
JRException
fillColumnBand
protected void fillColumnBand(JRFillBand band,
byte evaluation)
throws JRException
- Throws:
JRException
fillFixedBand
protected void fillFixedBand(JRFillBand band,
byte evaluation)
throws JRException
- Throws:
JRException
fillBand
protected void fillBand(JRPrintBand band)
© 2001-2005 JasperSoft Corporation www.jaspersoft.com