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:
- JRVirtualPrintPage.IdentityDataProvider, JRDefaultFontProvider, JRDefaultStyleProvider
public class JRHorizontalFiller
- extends JRBaseFiller
- Version:
- $Id: JRHorizontalFiller.java 1797 2007-07-30 09:38:35Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Fields inherited from class net.sf.jasperreports.engine.fill.JRBaseFiller |
background, bands, bottomMargin, boundElements, calculator, columnCount, columnFooter, columnFooterOffsetY, columnHeader, columnHeaderOffsetY, columnIndex, columnSpacing, columnWidth, datasetMap, dateFormatCache, defaultFont, defaultStyle, detail, fillContext, fillerId, fonts, formatFactory, groups, isCreatingNewPage, isFirstColumnBand, isFirstPageBand, isFloatColumnFooter, isLastPageFooter, isNewColumn, isNewGroup, isNewPage, isPerPageBoundElements, isSummaryNewPage, isTitleNewPage, jasperPrint, jasperReport, lastPageColumnFooterOffsetY, lastPageFooter, leftMargin, mainDataset, missingFillBand, name, noData, numberFormatCache, offsetX, offsetY, orientation, pageFooter, pageHeader, pageHeight, pageWidth, parentFiller, printOrder, printPage, printPageStretchHeight, reportClassLoader, reportTemplates, rightMargin, scriptlet, styles, subfillers, summary, title, topMargin, urlHandlerFactory, 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 |
fillFixedBand(JRFillBand band,
byte evaluation,
boolean allowShrinking)
|
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 |
addBoundElement, addBoundElement, addDefaultStyleListener, addPage, addPageIdentityDataProvider, addPrintStyle, addVariableCalculationReq, cancelFill, collectIncludedTemplates, collectStyles, collectStyles, collectTemplateStyles, createReportTemplates, evaluateExpression, fill, fill, fill, getCurrentPage, getCurrentPageStretchHeight, getDateFormat, getDefaultFont, getDefaultStyle, getField, getFieldsMap, getFonts, getFormatFactory, getIdentityData, getJasperPrint, getJasperReport, getLocale, getMainDataset, getMasterColumnCount, getNumberFormat, getParametersMap, getStyledTextParser, getTimeZone, getVariable, getVariablesMap, getVariableValue, getWhenResourceMissingType, hasMasterFormatFactory, hasMasterLocale, hasMasterTimeZone, isBandOverFlowAllowed, isInterrupted, isSubreport, loadStyles, lookupExternalDefaultStyle, newPage, next, registerSubfiller, removePageIdentityDataProvider, resolveBandBoundElements, resolveBoundElements, resolveColumnBoundElements, resolveGroupBoundElements, resolvePageBoundElements, resolveReportBoundElements, setBandOverFlowAllowed, setConnectionParameterValue, setDatasourceParameterValue, setDefaultStyle, setIdentityData, setInterrupted, setParameter, setParameter, setParameters, setSubreportRunner, suspendSubreportRunner, unregisterSubfiller |
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
- Throws:
JRException
JRHorizontalFiller
protected JRHorizontalFiller(JasperReport jasperReport,
JRBaseFiller parentFiller)
throws JRException
- Throws:
JRException
JRHorizontalFiller
protected JRHorizontalFiller(JasperReport jasperReport,
JREvaluator evaluator,
JRBaseFiller parentFiller)
throws JRException
- 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
fillFixedBand
protected void fillFixedBand(JRFillBand band,
byte evaluation,
boolean allowShrinking)
throws JRException
- Throws:
JRException
fillBand
protected void fillBand(JRPrintBand band)
© 2001-2006 JasperSoft Corporation www.jaspersoft.com