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:
- JRParameterDefaultValuesEvaluator.ObjectFactory
public class JRFillObjectFactory
- extends JRAbstractObjectFactory
- Version:
- $Id: JRFillObjectFactory.java 1889 2007-10-09 09:20:33Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Method Summary |
protected void |
checkUnresolvedReferences()
|
protected java.util.Set |
collectRequestedStyles(java.util.List externalStyles)
|
protected void |
collectUsedStyles(JRStyle style,
java.util.Map usedStylesMap,
java.util.Map allStylesMap)
|
JRAreaPlot |
getAreaPlot(JRAreaPlot areaPlot)
|
protected JRFillBand |
getBand(JRBand band)
|
JRBar3DPlot |
getBar3DPlot(JRBar3DPlot barPlot)
|
JRBarPlot |
getBarPlot(JRBarPlot barPlot)
|
JRBubblePlot |
getBubblePlot(JRBubblePlot bubblePlot)
|
JRCandlestickPlot |
getCandlestickPlot(JRCandlestickPlot candlestickPlot)
|
JRCategoryDataset |
getCategoryDataset(JRCategoryDataset categoryDataset)
|
JRCategorySeries |
getCategorySeries(JRCategorySeries categorySeries)
|
JRFillCellContents |
getCell(JRCellContents cell)
|
JRChartAxis |
getChartAxis(JRChartAxis axis)
|
JRConditionalStyle |
getConditionalStyle(JRConditionalStyle conditionalStyle,
JRStyle style)
|
JRFillCrosstabCell |
getCrosstabCell(JRCrosstabCell cell)
|
JRFillCrosstabColumnGroup |
getCrosstabColumnGroup(JRCrosstabColumnGroup group)
|
JRFillCrosstab.JRFillCrosstabDataset |
getCrosstabDataset(JRCrosstabDataset dataset,
JRFillCrosstab fillCrosstab)
|
JRFillCrosstabMeasure |
getCrosstabMeasure(JRCrosstabMeasure measure)
|
JRFillCrosstabParameter |
getCrosstabParameter(JRCrosstabParameter parameter)
|
JRFillCrosstabRowGroup |
getCrosstabRowGroup(JRCrosstabRowGroup group)
|
JRFillDataset |
getDataset(JRDataset dataset)
|
JRFillDatasetRun |
getDatasetRun(JRDatasetRun datasetRun)
|
protected JRFillChartDataset[] |
getDatasets()
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
protected JRFillElementDataset[] |
getElementDatasets(JRDataset dataset)
|
JRExpression |
getExpression(JRExpression expression,
boolean assignNotUsedId)
|
protected JRFillExpressionEvaluator |
getExpressionEvaluator()
|
protected JRFillField |
getField(JRField field)
|
protected JRBaseFiller |
getFiller()
|
protected JRFillGroup |
getGroup(JRGroup group)
|
JRHighLowDataset |
getHighLowDataset(JRHighLowDataset highLowDataset)
|
JRHighLowPlot |
getHighLowPlot(JRHighLowPlot highLowPlot)
|
JRLinePlot |
getLinePlot(JRLinePlot linePlot)
|
JRMeterPlot |
getMeterPlot(JRMeterPlot meterPlot)
|
JRMultiAxisPlot |
getMultiAxisPlot(JRMultiAxisPlot multiAxisPlot)
|
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;
}
/** |
JRPie3DPlot |
getPie3DPlot(JRPie3DPlot pie3DPlot)
|
JRPieDataset |
getPieDataset(JRPieDataset pieDataset)
|
JRPiePlot |
getPiePlot(JRPiePlot piePlot)
|
JRReportFont |
getReportFont(JRReportFont font)
|
JRFillReportTemplate |
getReportTemplate(JRReportTemplate template)
|
JRScatterPlot |
getScatterPlot(JRScatterPlot scatterPlot)
|
JRStyle |
getStyle(JRStyle style)
|
protected JRFillSubreportReturnValue |
getSubreportReturnValue(JRSubreportReturnValue returnValue)
|
JRThermometerPlot |
getThermometerPlot(JRThermometerPlot thermometerPlot)
|
JRTimePeriodDataset |
getTimePeriodDataset(JRTimePeriodDataset timePeriodDataset)
|
JRTimePeriodSeries |
getTimePeriodSeries(JRTimePeriodSeries timePeriodSeries)
|
JRTimeSeries |
getTimeSeries(JRTimeSeries timeSeries)
|
JRTimeSeriesDataset |
getTimeSeriesDataset(JRTimeSeriesDataset timeSeriesDataset)
|
JRTimeSeriesPlot |
getTimeSeriesPlot(JRTimeSeriesPlot plot)
|
JRValueDataset |
getValueDataset(JRValueDataset valueDataset)
|
JRFillVariable |
getVariable(JRVariable variable)
|
JRXyDataset |
getXyDataset(JRXyDataset xyDataset)
|
JRXySeries |
getXySeries(JRXySeries xySeries)
|
JRXyzDataset |
getXyzDataset(JRXyzDataset xyzDataset)
|
JRXyzSeries |
getXyzSeries(JRXyzSeries xyzSeries)
|
void |
registerDelayedStyleSetter(JRStyleSetter delayedSetter,
JRStyleContainer styleContainer)
|
protected void |
registerDelayedStyleSetter(JRStyleSetter delayedSetter,
java.lang.String styleName)
|
protected void |
renameExistingStyle(java.lang.String name)
|
void |
setStyle(JRStyleSetter setter,
JRStyleContainer styleContainer)
Sets a style or a style reference on an object. |
java.util.List |
setStyles(java.util.List styles)
|
protected void |
useDelayedStyle(JRStyle style)
|
void |
visitBreak(JRBreak breakElement)
|
void |
visitChart(JRChart chart)
|
void |
visitCrosstab(JRCrosstab crosstabElement)
|
void |
visitElementGroup(JRElementGroup elementGroup)
|
void |
visitEllipse(JREllipse ellipse)
|
void |
visitFrame(JRFrame frame)
|
void |
visitImage(JRImage image)
|
void |
visitLine(JRLine line)
|
void |
visitRectangle(JRRectangle rectangle)
|
void |
visitStaticText(JRStaticText staticText)
|
void |
visitSubreport(JRSubreport subreport)
|
void |
visitTextField(JRTextField textField)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRFillObjectFactory
protected JRFillObjectFactory(JRBaseFiller filler)
JRFillObjectFactory
public JRFillObjectFactory(JRBaseFiller filler,
JRFillExpressionEvaluator expressionEvaluator)
JRFillObjectFactory
public JRFillObjectFactory(JRFillObjectFactory parent,
JRFillExpressionEvaluator expressionEvaluator)
getExpressionEvaluator
protected JRFillExpressionEvaluator getExpressionEvaluator()
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)
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
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)
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)
getDatasetRun
public JRFillDatasetRun getDatasetRun(JRDatasetRun datasetRun)
getCrosstabParameter
public JRFillCrosstabParameter getCrosstabParameter(JRCrosstabParameter parameter)
getCell
public JRFillCellContents getCell(JRCellContents cell)
getCrosstabRowGroup
public JRFillCrosstabRowGroup getCrosstabRowGroup(JRCrosstabRowGroup group)
getCrosstabColumnGroup
public JRFillCrosstabColumnGroup getCrosstabColumnGroup(JRCrosstabColumnGroup group)
getCrosstabCell
public JRFillCrosstabCell getCrosstabCell(JRCrosstabCell cell)
getCrosstabMeasure
public JRFillCrosstabMeasure getCrosstabMeasure(JRCrosstabMeasure measure)
visitFrame
public void visitFrame(JRFrame frame)
getFiller
protected JRBaseFiller getFiller()
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()
© 2001-2006 JasperSoft Corporation www.jaspersoft.com