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:
- JRFillCrosstabObjectFactory, JRParameterDefaultValuesEvaluator.ObjectFactory
public class JRFillObjectFactory
- extends JRAbstractObjectFactory
A factory used to instantiate fill objects based on compiled report objects.
- Version:
- $Id: JRFillObjectFactory.java 3939 2010-08-20 09:52:00Z teodord $
- Author:
- Teodor Danciu ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filler
protected JRBaseFiller filler
JRFillObjectFactory
protected JRFillObjectFactory(JRBaseFiller filler)
JRFillObjectFactory
public JRFillObjectFactory(JRBaseFiller filler,
JRFillExpressionEvaluator expressionEvaluator)
JRFillObjectFactory
public JRFillObjectFactory(JRFillObjectFactory parent,
JRFillExpressionEvaluator expressionEvaluator)
getExpressionEvaluator
public JRFillExpressionEvaluator getExpressionEvaluator()
- Returns the expression evaluator which is to be used by objects
created by this factory.
- Returns:
- the expression evaluator associated with this factory
getDatasets
protected JRFillChartDataset[] getDatasets()
getElementDatasets
protected JRFillElementDataset[] getElementDatasets(JRDataset dataset)
getReportFont
public JRReportFont getReportFont(JRReportFont font)
- Specified by:
getReportFont
in class JRAbstractObjectFactory
registerDelayedStyleSetter
protected void registerDelayedStyleSetter(JRStyleSetter delayedSetter,
java.lang.String styleName)
registerDelayedStyleSetter
public void registerDelayedStyleSetter(JRStyleSetter delayedSetter,
JRStyleContainer styleContainer)
getStyle
public JRStyle getStyle(JRStyle style)
- Specified by:
getStyle
in class JRAbstractObjectFactory
renameExistingStyle
protected void renameExistingStyle(java.lang.String name)
setStyle
public void setStyle(JRStyleSetter setter,
JRStyleContainer styleContainer)
- Description copied from class:
JRAbstractObjectFactory
- Sets a style or a style reference on an object.
If the container includes a style (see
getStyle()
,
a copy of this style will be created via getStyle(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 (see getStyleNameReference()
.
- Specified by:
setStyle
in class JRAbstractObjectFactory
- Parameters:
setter
- a setter for the object on which the style should be set.styleContainer
- the original style container- See Also:
JRAbstractObjectFactory.getStyle(JRStyle)
getParameter
protected JRFillParameter getParameter(JRParameter parameter)
- protected JRBaseFont getFont(JRFont font)
{
JRBaseFont fillFont = null;
if (font != null)
{
fillFont = (JRBaseFont)get(font);
if (fillFont == null)
{
fillFont =
new JRBaseFont(
filler.getJasperPrint().getDefaultStyleProvider(),
getReportFont(font.getReportFont()),
font
);
put(font, fillFont);
}
}
else
{
if (defaultFont == null)
{
defaultFont = new JRBaseFont();
}
fillFont = getFont(defaultFont);
}
return fillFont;
}
/**
getField
protected JRFillField getField(JRField field)
getVariable
public JRFillVariable getVariable(JRVariable variable)
getGroup
protected JRFillGroup getGroup(JRGroup group)
getSection
protected JRFillSection getSection(JRSection section)
getBand
protected JRFillBand getBand(JRBand band)
visitElementGroup
public void visitElementGroup(JRElementGroup elementGroup)
visitBreak
public void visitBreak(JRBreak breakElement)
visitLine
public void visitLine(JRLine line)
visitRectangle
public void visitRectangle(JRRectangle rectangle)
visitEllipse
public void visitEllipse(JREllipse ellipse)
visitImage
public void visitImage(JRImage image)
visitStaticText
public void visitStaticText(JRStaticText staticText)
visitTextField
public void visitTextField(JRTextField textField)
visitSubreport
public void visitSubreport(JRSubreport subreport)
visitChart
public void visitChart(JRChart chart)
getPieDataset
public JRPieDataset getPieDataset(JRPieDataset pieDataset)
- Specified by:
getPieDataset
in class JRAbstractObjectFactory
getPiePlot
public JRPiePlot getPiePlot(JRPiePlot piePlot)
- Specified by:
getPiePlot
in class JRAbstractObjectFactory
getPie3DPlot
public JRPie3DPlot getPie3DPlot(JRPie3DPlot pie3DPlot)
- Specified by:
getPie3DPlot
in class JRAbstractObjectFactory
getCategoryDataset
public JRCategoryDataset getCategoryDataset(JRCategoryDataset categoryDataset)
- Specified by:
getCategoryDataset
in class JRAbstractObjectFactory
getXyzDataset
public JRXyzDataset getXyzDataset(JRXyzDataset xyzDataset)
- Specified by:
getXyzDataset
in class JRAbstractObjectFactory
getXyDataset
public JRXyDataset getXyDataset(JRXyDataset xyDataset)
getTimeSeriesDataset
public JRTimeSeriesDataset getTimeSeriesDataset(JRTimeSeriesDataset timeSeriesDataset)
- Specified by:
getTimeSeriesDataset
in class JRAbstractObjectFactory
getTimePeriodDataset
public JRTimePeriodDataset getTimePeriodDataset(JRTimePeriodDataset timePeriodDataset)
- Specified by:
getTimePeriodDataset
in class JRAbstractObjectFactory
getGanttDataset
public JRGanttDataset getGanttDataset(JRGanttDataset ganttDataset)
getPieSeries
public JRPieSeries getPieSeries(JRPieSeries pieSeries)
- Specified by:
getPieSeries
in class JRAbstractObjectFactory
getCategorySeries
public JRCategorySeries getCategorySeries(JRCategorySeries categorySeries)
- Specified by:
getCategorySeries
in class JRAbstractObjectFactory
getXyzSeries
public JRXyzSeries getXyzSeries(JRXyzSeries xyzSeries)
- Specified by:
getXyzSeries
in class JRAbstractObjectFactory
getXySeries
public JRXySeries getXySeries(JRXySeries xySeries)
getGanttSeries
public JRGanttSeries getGanttSeries(JRGanttSeries ganttSeries)
getBarPlot
public JRBarPlot getBarPlot(JRBarPlot barPlot)
- Specified by:
getBarPlot
in class JRAbstractObjectFactory
getTimeSeries
public JRTimeSeries getTimeSeries(JRTimeSeries timeSeries)
- Specified by:
getTimeSeries
in class JRAbstractObjectFactory
getTimePeriodSeries
public JRTimePeriodSeries getTimePeriodSeries(JRTimePeriodSeries timePeriodSeries)
- Specified by:
getTimePeriodSeries
in class JRAbstractObjectFactory
getBar3DPlot
public JRBar3DPlot getBar3DPlot(JRBar3DPlot barPlot)
- Specified by:
getBar3DPlot
in class JRAbstractObjectFactory
getLinePlot
public JRLinePlot getLinePlot(JRLinePlot linePlot)
- Specified by:
getLinePlot
in class JRAbstractObjectFactory
getScatterPlot
public JRScatterPlot getScatterPlot(JRScatterPlot scatterPlot)
getAreaPlot
public JRAreaPlot getAreaPlot(JRAreaPlot areaPlot)
- Specified by:
getAreaPlot
in class JRAbstractObjectFactory
getBubblePlot
public JRBubblePlot getBubblePlot(JRBubblePlot bubblePlot)
- Specified by:
getBubblePlot
in class JRAbstractObjectFactory
getHighLowDataset
public JRHighLowDataset getHighLowDataset(JRHighLowDataset highLowDataset)
getHighLowPlot
public JRHighLowPlot getHighLowPlot(JRHighLowPlot highLowPlot)
getCandlestickPlot
public JRCandlestickPlot getCandlestickPlot(JRCandlestickPlot candlestickPlot)
- Specified by:
getCandlestickPlot
in class JRAbstractObjectFactory
getTimeSeriesPlot
public JRTimeSeriesPlot getTimeSeriesPlot(JRTimeSeriesPlot plot)
getValueDataset
public JRValueDataset getValueDataset(JRValueDataset valueDataset)
getMeterPlot
public JRMeterPlot getMeterPlot(JRMeterPlot meterPlot)
getThermometerPlot
public JRThermometerPlot getThermometerPlot(JRThermometerPlot thermometerPlot)
getMultiAxisPlot
public JRMultiAxisPlot getMultiAxisPlot(JRMultiAxisPlot multiAxisPlot)
getSubreportReturnValue
protected JRFillSubreportReturnValue getSubreportReturnValue(JRSubreportReturnValue returnValue)
visitCrosstab
public void visitCrosstab(JRCrosstab crosstabElement)
getCrosstabDataset
public JRFillCrosstab.JRFillCrosstabDataset getCrosstabDataset(JRCrosstabDataset dataset,
JRFillCrosstab fillCrosstab)
getDataset
public JRFillDataset getDataset(JRDataset dataset)
registerElementDataset
public void registerElementDataset(JRFillElementDataset elementDataset)
- 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
getDatasetRun
public JRFillDatasetRun getDatasetRun(JRDatasetRun datasetRun)
getCrosstabParameter
public JRFillCrosstabParameter getCrosstabParameter(JRCrosstabParameter parameter)
visitFrame
public void visitFrame(JRFrame frame)
getFiller
public JRBaseFiller getFiller()
- Returns the current report filler.
- Returns:
- the current report filler
getConditionalStyle
public JRConditionalStyle getConditionalStyle(JRConditionalStyle conditionalStyle,
JRStyle style)
- Specified by:
getConditionalStyle
in class JRAbstractObjectFactory
getExpression
public JRExpression getExpression(JRExpression expression,
boolean assignNotUsedId)
- Specified by:
getExpression
in class JRAbstractObjectFactory
getChartAxis
public JRChartAxis getChartAxis(JRChartAxis axis)
getReportTemplate
public JRFillReportTemplate getReportTemplate(JRReportTemplate template)
setStyles
public java.util.List setStyles(java.util.List styles)
collectRequestedStyles
protected java.util.Set collectRequestedStyles(java.util.List externalStyles)
collectUsedStyles
protected void collectUsedStyles(JRStyle style,
java.util.Map usedStylesMap,
java.util.Map allStylesMap)
useDelayedStyle
protected void useDelayedStyle(JRStyle style)
checkUnresolvedReferences
protected void checkUnresolvedReferences()
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
visitComponentElement
public void visitComponentElement(JRComponentElement componentElement)
- Description copied from interface:
JRVisitor
- Visits a component wrapper element.
- Parameters:
componentElement
- the element to visit
visitGenericElement
public void visitGenericElement(JRGenericElement element)
- Description copied from interface:
JRVisitor
- Visits a generic report element.
- Parameters:
element
- the element to visit
Copyright © 2011. All Rights Reserved.