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
- public class JRHorizontalFiller
- extends JRBaseFiller
- Version:
- $Id: JRHorizontalFiller.java,v 1.30 2005/08/30 13:10:28 lucianc 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, datasets, dataSource, defaultFont, detail, fields, fieldsMap, fillContext, fonts, formattedTextFields, groupBoundElements, groups, isFloatColumnFooter, isParametersAlreadySet, isSummaryNewPage, isTitleNewPage, jasperPrint, lastPageFooter, leftMargin, loadedSubreports, locale, missingFillBand, name, orientation, pageBoundElements, pageFooter, pageHeader, pageHeight, pageWidth, parameters, parametersMap, parentFiller, perPageBoundElements, printOrder, printPage, printPageStretchHeight, query, reportBoundElements, reportCount, reportMaxCount, resourceBundle, resourceBundleBaseName, rightMargin, scriptlet, scriptletClassName, subfillers, summary, title, topMargin, variableCalculationReqs, variables, variablesMap, 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, createScriptlet, fill, fill, getCurrentPage, getCurrentPageStretchHeight, getDefaultFont, getFonts, getJasperPrint, getStyledTextParser, getVariableValue, isInterrupted, isSubreport, loadResourceBundle, newPage, next, registerSubfiller, removePageIdentityDataProvider, resolveBandBoundElements, resolveColumnBoundElements, resolveGroupBoundElements, resolvePageBoundElements, resolveReportBoundElements, setInterrupted, setParameter, setParameters, 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,
JRCalculator calculator,
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