Package net.sf.jasperreports.engine.fill
Class JRFillObjectFactory
java.lang.Object
net.sf.jasperreports.engine.JRAbstractObjectFactory
net.sf.jasperreports.engine.fill.JRFillObjectFactory
- All Implemented Interfaces:
JRVisitor
- Direct Known Subclasses:
DatasetExecution.ObjectFactory,FillListDatasetFactory,IconLabelFillObjectFactory,JRFillCrosstabObjectFactory
A factory used to instantiate fill objects based on compiled report objects.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected JRBaseFillerprotected BaseReportFillerprotected JRFillObjectFactory.StylesList -
Constructor Summary
ConstructorsModifierConstructorDescriptionJRFillObjectFactory(BaseReportFiller reportFiller) protectedJRFillObjectFactory(JRBaseFiller filler) JRFillObjectFactory(JRBaseFiller filler, JRFillExpressionEvaluator expressionEvaluator) JRFillObjectFactory(JRFillObjectFactory parent, JRFillExpressionEvaluator expressionEvaluator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollectRequestedStyles(List<JRStyle> externalStyles) protected voidcollectUsedStyles(JRStyle style, Map<JRStyle, Object> usedStylesMap, Map<String, JRStyle> allStylesMap) getAreaPlot(JRAreaPlot areaPlot) protected JRFillBandgetBar3DPlot(JRBar3DPlot barPlot) getBarPlot(JRBarPlot barPlot) getBubblePlot(JRBubblePlot bubblePlot) getCandlestickPlot(JRCandlestickPlot candlestickPlot) getCategoryDataset(JRCategoryDataset categoryDataset) getCategorySeries(JRCategorySeries categorySeries) getChartAxis(JRChartAxis axis) getConditionalStyle(JRConditionalStyle conditionalStyle, JRStyle style) getCrosstabDataset(JRCrosstabDataset dataset, JRFillCrosstab fillCrosstab) getCrosstabParameter(JRCrosstabParameter parameter) getDataset(JRDataset dataset) getDatasetRun(JRDatasetRun datasetRun) protected JRFillElementDataset[]getElementDatasets(JRDataset dataset) protected List<JRFillElementDataset>getElementDatasetsList(String datasetName) getExpression(JRExpression expression, boolean assignNotUsedId) Returns the expression evaluator which is to be used by objects created by this factory.protected JRFillFieldReturns the current report filler.getGanttDataset(JRGanttDataset ganttDataset) getGanttSeries(JRGanttSeries ganttSeries) getHighLowDataset(JRHighLowDataset highLowDataset) getHighLowPlot(JRHighLowPlot highLowPlot) getLinePlot(JRLinePlot linePlot) getMeterPlot(JRMeterPlot meterPlot) getMultiAxisPlot(JRMultiAxisPlot multiAxisPlot) protected JRFillParametergetParameter(JRParameter parameter) getPie3DPlot(JRPie3DPlot pie3DPlot) getPieDataset(JRPieDataset pieDataset) getPiePlot(JRPiePlot piePlot) getPieSeries(JRPieSeries pieSeries) getReportTemplate(JRReportTemplate template) protected JRFillExpressionReturnValuegetReturnValue(ExpressionReturnValue returnValue) protected JRFillVariableReturnValuegetReturnValue(VariableReturnValue returnValue) getScatterPlot(JRScatterPlot scatterPlot) protected JRFillSectiongetSection(JRSection section) protected JRFillVariableReturnValuegetSubreportReturnValue(JRSubreportReturnValue returnValue) getThermometerPlot(JRThermometerPlot thermometerPlot) getTimePeriodDataset(JRTimePeriodDataset timePeriodDataset) getTimePeriodSeries(JRTimePeriodSeries timePeriodSeries) getTimeSeries(JRTimeSeries timeSeries) getTimeSeriesDataset(JRTimeSeriesDataset timeSeriesDataset) getValueDataset(JRValueDataset valueDataset) getVariable(JRVariable variable) getXyDataset(JRXyDataset xyDataset) getXySeries(JRXySeries xySeries) getXyzDataset(JRXyzDataset xyzDataset) getXyzSeries(JRXyzSeries xyzSeries) voidregisterDatasetRun(JRFillDatasetRun datasetRun) protected voidregisterDelayedStyleSetter(JRStyleSetter delayedSetter, String styleName) voidregisterDelayedStyleSetter(JRStyleSetter delayedSetter, JRStyleContainer styleContainer) voidregisterElementDataset(JRFillElementDataset elementDataset) Register an element dataset with the report filler.protected voidrenameExistingStyle(String name) voidsetStyle(JRStyleSetter setter, JRStyleContainer styleContainer) Sets a style or a style reference on an object.voidprotected voiduseDelayedStyle(JRStyle style) voidvisitBreak(JRBreak breakElement) voidvisitChart(JRChart chart) voidvisitComponentElement(JRComponentElement componentElement) Visits a component wrapper element.voidvisitCrosstab(JRCrosstab crosstabElement) voidvisitElementGroup(JRElementGroup elementGroup) voidvisitEllipse(JREllipse ellipse) voidvisitFrame(JRFrame frame) voidvisitGenericElement(JRGenericElement element) Visits a generic report element.voidvisitImage(JRImage image) voidvoidvisitRectangle(JRRectangle rectangle) voidvisitStaticText(JRStaticText staticText) voidvisitSubreport(JRSubreport subreport) voidvisitTextField(JRTextField textField) Methods inherited from class net.sf.jasperreports.engine.JRAbstractObjectFactory
get, getExpression, getFont, getVisitResult, put, setVisitResult
-
Field Details
-
EXCEPTION_MESSAGE_KEY_UNRESOLVED_STYLE
- See Also:
-
EXCEPTION_MESSAGE_KEY_STYLE_NOT_FOUND
- See Also:
-
filler
-
reportFiller
-
stylesMap
-
-
Constructor Details
-
JRFillObjectFactory
-
JRFillObjectFactory
-
JRFillObjectFactory
public JRFillObjectFactory(JRFillObjectFactory parent, JRFillExpressionEvaluator expressionEvaluator) -
JRFillObjectFactory
-
-
Method Details
-
getExpressionEvaluator
Returns the expression evaluator which is to be used by objects created by this factory.- Returns:
- the expression evaluator associated with this factory
-
getElementDatasets
-
registerDelayedStyleSetter
-
registerDelayedStyleSetter
public void registerDelayedStyleSetter(JRStyleSetter delayedSetter, JRStyleContainer styleContainer) -
getStyle
- Specified by:
getStylein classJRAbstractObjectFactory
-
renameExistingStyle
-
setStyle
Description copied from class:JRAbstractObjectFactorySets a style or a style reference on an object. If the container includes a style (seegetStyle(), a copy of this style will be created viagetStyle(JRStyle)and set on the object. In addition to this, the implementation needs to handle the case when the container includes an external style reference (seegetStyleNameReference().- Specified by:
setStylein classJRAbstractObjectFactory- Parameters:
setter- a setter for the object on which the style should be set.styleContainer- the original style container- See Also:
-
getParameter
-
getField
-
getVariable
-
getGroup
-
getSection
-
getBand
-
visitElementGroup
-
visitBreak
-
visitLine
-
visitRectangle
-
visitEllipse
-
visitImage
-
visitStaticText
-
visitTextField
-
visitSubreport
-
visitChart
-
getPieDataset
- Specified by:
getPieDatasetin classJRAbstractObjectFactory
-
getPiePlot
- Specified by:
getPiePlotin classJRAbstractObjectFactory
-
getPie3DPlot
- Specified by:
getPie3DPlotin classJRAbstractObjectFactory
-
getCategoryDataset
- Specified by:
getCategoryDatasetin classJRAbstractObjectFactory
-
getXyzDataset
- Specified by:
getXyzDatasetin classJRAbstractObjectFactory
-
getXyDataset
-
getTimeSeriesDataset
- Specified by:
getTimeSeriesDatasetin classJRAbstractObjectFactory
-
getTimePeriodDataset
- Specified by:
getTimePeriodDatasetin classJRAbstractObjectFactory
-
getGanttDataset
-
getPieSeries
- Specified by:
getPieSeriesin classJRAbstractObjectFactory
-
getCategorySeries
- Specified by:
getCategorySeriesin classJRAbstractObjectFactory
-
getXyzSeries
- Specified by:
getXyzSeriesin classJRAbstractObjectFactory
-
getXySeries
-
getGanttSeries
-
getBarPlot
- Specified by:
getBarPlotin classJRAbstractObjectFactory
-
getTimeSeries
- Specified by:
getTimeSeriesin classJRAbstractObjectFactory
-
getTimePeriodSeries
- Specified by:
getTimePeriodSeriesin classJRAbstractObjectFactory
-
getBar3DPlot
- Specified by:
getBar3DPlotin classJRAbstractObjectFactory
-
getLinePlot
- Specified by:
getLinePlotin classJRAbstractObjectFactory
-
getScatterPlot
-
getAreaPlot
- Specified by:
getAreaPlotin classJRAbstractObjectFactory
-
getBubblePlot
- Specified by:
getBubblePlotin classJRAbstractObjectFactory
-
getHighLowDataset
-
getHighLowPlot
-
getCandlestickPlot
- Specified by:
getCandlestickPlotin classJRAbstractObjectFactory
-
getTimeSeriesPlot
-
getValueDataset
-
getMeterPlot
-
getThermometerPlot
-
getMultiAxisPlot
-
getSubreportReturnValue
-
getReturnValue
-
getReturnValue
-
visitCrosstab
-
getCrosstabDataset
public JRFillCrosstab.JRFillCrosstabDataset getCrosstabDataset(JRCrosstabDataset dataset, JRFillCrosstab fillCrosstab) -
getDataset
-
registerElementDataset
Register an element dataset with the report filler.Registration of element datasets is required in order for the filler to increment the datasets when iterating through the datasource.
- Parameters:
elementDataset- the dataset to register
-
getElementDatasetsList
-
trackDatasetRuns
public void trackDatasetRuns() -
registerDatasetRun
-
getTrackedDatasetRuns
-
getDatasetRun
-
getCrosstabParameter
-
visitFrame
-
getReportFiller
-
getFiller
Returns the current report filler.- Returns:
- the current report filler
-
getConditionalStyle
- Specified by:
getConditionalStylein classJRAbstractObjectFactory
-
getExpression
- Specified by:
getExpressionin classJRAbstractObjectFactory
-
getChartAxis
-
getReportTemplate
-
setStyles
-
collectRequestedStyles
-
collectUsedStyles
-
useDelayedStyle
-
checkUnresolvedReferences
protected void checkUnresolvedReferences() -
getDefaultStyleProvider
- Specified by:
getDefaultStyleProviderin classJRAbstractObjectFactory
-
visitComponentElement
Description copied from interface:JRVisitorVisits a component wrapper element.- Parameters:
componentElement- the element to visit
-
visitGenericElement
Description copied from interface:JRVisitorVisits a generic report element.- Parameters:
element- the element to visit
-
getBidimensionalData
-