/** * */ public JRFillBarPlot( JRBarPlot barPlot, JRFillObjectFactory factory ) { super(barPlot, factory); categoryAxisLabelFont = factory.getFont(barPlot.getChart(), barPlot.getCategoryAxisLabelFont()); categoryAxisLabelColor = barPlot.getOwnCategoryAxisLabelColor(); categoryAxisTickLabelFont = factory.getFont(barPlot.getChart(), barPlot.getCategoryAxisTickLabelFont()); categoryAxisTickLabelColor = barPlot.getOwnCategoryAxisTickLabelColor(); categoryAxisLineColor = barPlot.getOwnCategoryAxisLineColor(); valueAxisLabelFont = factory.getFont(barPlot.getChart(), barPlot.getValueAxisLabelFont()); valueAxisLabelColor = barPlot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(barPlot.getChart(), barPlot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = barPlot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = barPlot.getOwnValueAxisLineColor(); }
/** * */ public JRFillCategoryDataset( JRCategoryDataset categoryDataset, JRFillObjectFactory factory ) { super(categoryDataset, factory); /* */ JRCategorySeries[] srcCategorySeries = categoryDataset.getSeries(); if (srcCategorySeries != null && srcCategorySeries.length > 0) { categorySeries = new JRFillCategorySeries[srcCategorySeries.length]; for(int i = 0; i < categorySeries.length; i++) { categorySeries[i] = (JRFillCategorySeries)factory.getCategorySeries(srcCategorySeries[i]); } } }
/** * */ public JRFillTimePeriodDataset( JRTimePeriodDataset timePeriodDataset, JRFillObjectFactory factory ) { super(timePeriodDataset, factory); JRTimePeriodSeries[] srcTimePeriodSeries = timePeriodDataset.getSeries(); if (srcTimePeriodSeries != null && srcTimePeriodSeries.length > 0) { timePeriodSeries = new JRFillTimePeriodSeries[srcTimePeriodSeries.length]; for (int i = 0; i < timePeriodSeries.length; i++) { timePeriodSeries[i] = (JRFillTimePeriodSeries)factory.getTimePeriodSeries(srcTimePeriodSeries[i]); } } }
/** * */ public JRFillScatterPlot( JRScatterPlot plot, JRFillObjectFactory factory ){ super( plot, factory ); xAxisLabelFont = factory.getFont(plot.getChart(), plot.getXAxisLabelFont()); xAxisLabelColor = plot.getOwnXAxisLabelColor(); xAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getXAxisTickLabelFont()); xAxisTickLabelColor = plot.getOwnXAxisTickLabelColor(); xAxisLineColor = plot.getOwnXAxisLineColor(); yAxisLabelFont = factory.getFont(plot.getChart(), plot.getYAxisLabelFont()); yAxisLabelColor = plot.getOwnYAxisLabelColor(); yAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getYAxisTickLabelFont()); yAxisTickLabelColor = plot.getOwnYAxisTickLabelColor(); yAxisLineColor = plot.getOwnYAxisLineColor(); }
/** * */ public JRFillTimeSeriesPlot( JRTimeSeriesPlot plot, JRFillObjectFactory factory ) { super(plot, factory); timeAxisLabelFont = factory.getFont(plot.getChart(), plot.getTimeAxisLabelFont()); timeAxisLabelColor = plot.getOwnTimeAxisLabelColor(); timeAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getTimeAxisTickLabelFont()); timeAxisTickLabelColor = plot.getOwnTimeAxisTickLabelColor(); timeAxisLineColor = plot.getOwnTimeAxisLineColor(); valueAxisLabelFont = factory.getFont(plot.getChart(), plot.getValueAxisLabelFont()); valueAxisLabelColor = plot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = plot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = plot.getOwnValueAxisTickLabelColor(); }
public JRFillTimeSeriesDataset( JRTimeSeriesDataset timeSeriesDataset, JRFillObjectFactory factory ) { super( timeSeriesDataset, factory ); JRTimeSeries[] srcTimeSeries = timeSeriesDataset.getSeries(); if( srcTimeSeries != null && srcTimeSeries.length > 0) { timeSeries = new JRFillTimeSeries[srcTimeSeries.length]; for (int i = 0; i < timeSeries.length; i++) { timeSeries[i] = (JRFillTimeSeries)factory.getTimeSeries(srcTimeSeries[i]); } } }
/** * */ public JRFillXyDataset( JRXyDataset xyDataset, JRFillObjectFactory factory ) { super(xyDataset, factory); /* */ JRXySeries[] srcXySeries = xyDataset.getSeries(); if (srcXySeries != null && srcXySeries.length > 0) { xySeries = new JRFillXySeries[srcXySeries.length]; for(int i = 0; i < xySeries.length; i++) { xySeries[i] = (JRFillXySeries)factory.getXySeries(srcXySeries[i]); } } }
/** * */ public JRFillHighLowPlot( JRHighLowPlot highLowPlot, JRFillObjectFactory factory ) { super(highLowPlot, factory); timeAxisLabelFont = factory.getFont(highLowPlot.getChart(), highLowPlot.getTimeAxisLabelFont()); timeAxisLabelColor = highLowPlot.getOwnTimeAxisLabelColor(); timeAxisTickLabelFont = factory.getFont(highLowPlot.getChart(), highLowPlot.getTimeAxisTickLabelFont()); timeAxisTickLabelColor = highLowPlot.getOwnTimeAxisTickLabelColor(); timeAxisLineColor = highLowPlot.getOwnTimeAxisLineColor(); valueAxisLabelFont = factory.getFont(highLowPlot.getChart(), highLowPlot.getValueAxisLabelFont()); valueAxisLabelColor = highLowPlot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(highLowPlot.getChart(), highLowPlot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = highLowPlot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = highLowPlot.getOwnValueAxisTickLabelColor(); }
/** * */ public JRFillAreaPlot( JRAreaPlot areaPlot, JRFillObjectFactory factory ) { super( areaPlot, factory ); //FIXME should the font use the fill chart? categoryAxisLabelFont = factory.getFont(areaPlot.getChart(), areaPlot.getCategoryAxisLabelFont()); categoryAxisLabelColor = areaPlot.getOwnCategoryAxisLabelColor(); categoryAxisTickLabelFont = factory.getFont(areaPlot.getChart(), areaPlot.getCategoryAxisTickLabelFont()); categoryAxisTickLabelColor = areaPlot.getOwnCategoryAxisTickLabelColor(); categoryAxisLineColor = areaPlot.getOwnCategoryAxisLineColor(); valueAxisLabelFont = factory.getFont(areaPlot.getChart(), areaPlot.getValueAxisLabelFont()); valueAxisLabelColor = areaPlot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(areaPlot.getChart(), areaPlot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = areaPlot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = areaPlot.getOwnValueAxisLineColor(); }
/** * */ public JRFillBubblePlot( JRBubblePlot bubblePlot, JRFillObjectFactory factory ){ super( bubblePlot, factory ); xAxisLabelFont = factory.getFont(bubblePlot.getChart(), bubblePlot.getXAxisLabelFont()); xAxisLabelColor = bubblePlot.getOwnXAxisLabelColor(); xAxisTickLabelFont = factory.getFont(bubblePlot.getChart(), bubblePlot.getXAxisTickLabelFont()); xAxisTickLabelColor = bubblePlot.getOwnXAxisTickLabelColor(); xAxisLineColor = bubblePlot.getOwnXAxisLineColor(); yAxisLabelFont = factory.getFont(bubblePlot.getChart(), bubblePlot.getYAxisLabelFont()); yAxisLabelColor = bubblePlot.getOwnYAxisLabelColor(); yAxisTickLabelFont = factory.getFont(bubblePlot.getChart(), bubblePlot.getYAxisTickLabelFont()); yAxisTickLabelColor = bubblePlot.getOwnYAxisTickLabelColor(); yAxisLineColor = bubblePlot.getOwnYAxisLineColor(); }
/** * */ public JRFillGanttDataset( JRGanttDataset ganttDataset, JRFillObjectFactory factory ) { super(ganttDataset, factory); /* */ JRGanttSeries[] srcGanttSeries = ganttDataset.getSeries(); if (srcGanttSeries != null && srcGanttSeries.length > 0) { ganttSeries = new JRFillGanttSeries[srcGanttSeries.length]; for(int i = 0; i < ganttSeries.length; i++) { ganttSeries[i] = (JRFillGanttSeries)factory.getGanttSeries(srcGanttSeries[i]); } } }
/** * */ public JRFillCandlestickPlot( JRCandlestickPlot candlestickPlot, JRFillObjectFactory factory ) { super(candlestickPlot, factory); timeAxisLabelFont = factory.getFont(candlestickPlot.getChart(), candlestickPlot.getTimeAxisLabelFont()); timeAxisLabelColor = candlestickPlot.getOwnTimeAxisLabelColor(); timeAxisTickLabelFont = factory.getFont(candlestickPlot.getChart(), candlestickPlot.getTimeAxisTickLabelFont()); timeAxisTickLabelColor = candlestickPlot.getOwnTimeAxisTickLabelColor(); timeAxisLineColor = candlestickPlot.getOwnTimeAxisLineColor(); valueAxisLabelFont = factory.getFont(candlestickPlot.getChart(), candlestickPlot.getValueAxisLabelFont()); valueAxisLabelColor = candlestickPlot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(candlestickPlot.getChart(), candlestickPlot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = candlestickPlot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = candlestickPlot.getOwnValueAxisTickLabelColor(); }
/** * */ public JRFillPieDataset( JRPieDataset pieDataset, JRFillObjectFactory factory ) { super(pieDataset, factory); /* */ JRPieSeries[] srcPieSeries = pieDataset.getSeries(); if (srcPieSeries != null && srcPieSeries.length > 0) { pieSeries = new JRFillPieSeries[srcPieSeries.length]; for(int i = 0; i < pieSeries.length; i++) { pieSeries[i] = (JRFillPieSeries)factory.getPieSeries(srcPieSeries[i]); } } }
/** * */ public JRFillLinePlot( JRLinePlot plot, JRFillObjectFactory factory ) { super( plot, factory ); categoryAxisLabelFont = factory.getFont(plot.getChart(), plot.getCategoryAxisLabelFont()); categoryAxisLabelColor = plot.getOwnCategoryAxisLabelColor(); categoryAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getCategoryAxisTickLabelFont()); categoryAxisTickLabelColor = plot.getOwnCategoryAxisTickLabelColor(); categoryAxisLineColor = plot.getOwnCategoryAxisLineColor(); valueAxisLabelFont = factory.getFont(plot.getChart(), plot.getValueAxisLabelFont()); valueAxisLabelColor = plot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(plot.getChart(), plot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = plot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = plot.getOwnValueAxisLineColor(); }
/** * */ public JRFillBar3DPlot( JRBar3DPlot barPlot, JRFillObjectFactory factory ){ super( barPlot, factory ); categoryAxisLabelFont = factory.getFont(barPlot.getChart(), barPlot.getCategoryAxisLabelFont()); categoryAxisLabelColor = barPlot.getOwnCategoryAxisLabelColor(); categoryAxisTickLabelFont = factory.getFont(barPlot.getChart(), barPlot.getCategoryAxisTickLabelFont()); categoryAxisTickLabelColor = barPlot.getOwnCategoryAxisTickLabelColor(); categoryAxisLineColor = barPlot.getOwnCategoryAxisLineColor(); valueAxisLabelFont = factory.getFont(barPlot.getChart(), barPlot.getValueAxisLabelFont()); valueAxisLabelColor = barPlot.getOwnValueAxisLabelColor(); valueAxisTickLabelFont = factory.getFont(barPlot.getChart(), barPlot.getValueAxisTickLabelFont()); valueAxisTickLabelColor = barPlot.getOwnValueAxisTickLabelColor(); valueAxisLineColor = barPlot.getOwnValueAxisLineColor(); }
public SubreportFillPart(SubreportPartComponent subreportPart, JRFillObjectFactory factory) { this.subreportPart = subreportPart; this.expressionEvaluator = factory.getExpressionEvaluator(); this.returnValues = new FillReturnValues(subreportPart.getReturnValues(), factory, factory.getReportFiller()); this.returnValuesSource = new AbstractVariableReturnValueSourceContext() { @Override public Object getValue(CommonReturnValue returnValue) { return subreportFiller.getVariableValue(((VariableReturnValue)returnValue).getFromVariable()); } @Override public JRVariable getToVariable(String name) { return fillContext.getFiller().getVariable(name); } @Override public JRVariable getFromVariable(String name) { return subreportFiller.getVariable(name); } }; }
public FillPart(JRPart part, JRFillObjectFactory fillFactory) { this.reportPart = part; this.expressionEvaluator = fillFactory.getExpressionEvaluator(); reportFiller = (PartReportFiller) fillFactory.getReportFiller();//FIXMEBOOK ComponentKey componentKey = part.getComponentKey(); PartComponent component = part.getComponent(); JasperReportsContext jasperReportsContext = fillFactory.getReportFiller().getJasperReportsContext(); PartComponentsEnvironment partsEnv = PartComponentsEnvironment.getInstance(jasperReportsContext); PartComponentManager componentManager = partsEnv.getManager(componentKey); PartComponentFillFactory componentFactory = componentManager.getComponentFillFactory(jasperReportsContext); //fillFactory.trackDatasetRuns();FIXMEBOOK this.fillComponent = componentFactory.toFillComponent(component, fillFactory); fillComponent.initialize(new Context()); }
public FillParts(JRSection section, JRFillObjectFactory fillFactory) { JRPart[] sectionParts = section == null ? null : section.getParts(); if (sectionParts == null || sectionParts.length == 0) { parts = Collections.emptyList(); } else { parts = new ArrayList<FillPart>(sectionParts.length); for (JRPart part : sectionParts) { FillPart fillPart = new FillPart(part, fillFactory); parts.add(fillPart); } } }
public MapFillComponent(MapComponent map, JRFillObjectFactory factory) { this.mapComponent = map; this.factory = factory; if(mapComponent.getMarkerDataList() != null){ markerDataList = new ArrayList<FillItemData>(); for(ItemData markerData : mapComponent.getMarkerDataList()) { markerDataList.add(new FillPlaceItemData(this, markerData, factory)); } } if(mapComponent.getPathStyleList() != null){ pathStyleList = new ArrayList<FillItemData>(); for(ItemData pathStyle : mapComponent.getPathStyleList()) { pathStyleList.add(new FillStyleItemData(this, pathStyle, factory)); } } if(mapComponent.getPathDataList() != null){ pathDataList = new ArrayList<FillItemData>(); for(ItemData pathData : mapComponent.getPathDataList()) { pathDataList.add(new FillPlaceItemData(this, pathData, factory)); } } }
/** * */ public FillSpiderDataset( SpiderDataset spiderDataset, JRFillObjectFactory factory ) { super(spiderDataset, factory); /* */ JRCategorySeries[] srcCategorySeries = spiderDataset.getSeries(); if (srcCategorySeries != null && srcCategorySeries.length > 0) { categorySeries = new JRFillCategorySeries[srcCategorySeries.length]; for(int i = 0; i < srcCategorySeries.length; i++) { categorySeries[i] = (JRFillCategorySeries)factory.getCategorySeries(srcCategorySeries[i]); } } }
public HorizontalFillList(ListComponent component, JRFillObjectFactory factory) throws JRException { super(component, factory); ListContents listContents = component.getContents(); this.contentsWidth = listContents.getWidth().intValue(); Boolean listIgnoreWidth = component.getIgnoreWidth(); this.ignoreWidth = listIgnoreWidth != null && listIgnoreWidth.booleanValue(); JRFillObjectFactory datasetFactory = new JRFillObjectFactory(factory, createDatasetExpressionEvaluator()); FillListContents fillContents = new FillListContents( listContents, datasetFactory); this.contentsList = new ArrayList<FillListContents>(); this.contentsList.add(fillContents); }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { try { ListComponent list = (ListComponent) component; FillComponent fillList; PrintOrderEnum printOrder = list.getPrintOrderValue(); if (printOrder == null || printOrder == PrintOrderEnum.VERTICAL) { fillList = new VerticalFillList(list, factory); } else { fillList = new HorizontalFillList(list, factory); } return fillList; } catch (JRException e) { throw new JRRuntimeException(e); } }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { TextInputComponent textInputComponent = (TextInputComponent) component; return new TextInputComponentFill(textInputComponent, factory); }
public FillXYDataset(XYDataset dataset, JRFillObjectFactory factory) { super(dataset, factory); XYSeries[] srcXySeries = dataset.getSeries(); if (srcXySeries != null && srcXySeries.length > 0) { xySeries = new FillXYSeries[srcXySeries.length]; for(int i = 0; i < xySeries.length; i++) { xySeries[i] = new FillXYSeries(srcXySeries[i], factory); } } this.dataset = dataset; }
/** * */ public FillXYSeries( XYSeries xySeries, JRFillObjectFactory factory ) { factory.put(xySeries, this); parent = xySeries; }
public FillBarDataset(BarDataset dataset, JRFillObjectFactory factory) { super(dataset, factory); this.dataset = dataset; List<BarSeries> datasetSeries = dataset.getSeries(); seriesList = new ArrayList<FillBarSeries>(datasetSeries.size()); for (Iterator<BarSeries> it = datasetSeries.iterator(); it.hasNext();) { BarSeries series = it.next(); FillBarSeries fillSeries = new FillBarSeries(series); seriesList.add(fillSeries); } }
@Override public FillComponent toFillComponent(Component component, JRFillObjectFactory factory) { HtmlComponent htmlComponent = (HtmlComponent) component; return new HtmlComponentFill(htmlComponent); }
public JRFillChartAxis(JRChartAxis axis, JRFillObjectFactory factory) { factory.put(axis, this); this.parent = axis; this.fillChart = (JRFillChart)factory.getVisitResult(axis.getChart()); }
public JRFillXyzDataset(JRXyzDataset xyzDataset, JRFillObjectFactory factory) { super( xyzDataset, factory ); JRXyzSeries[] srcXyzSeries = xyzDataset.getSeries(); if(srcXyzSeries != null && srcXyzSeries.length > 0) { xyzSeries = new JRFillXyzSeries[srcXyzSeries.length]; for(int i = 0; i < xyzSeries.length; i++) { xyzSeries[i] = (JRFillXyzSeries)factory.getXyzSeries( srcXyzSeries[i]); } } }
/** * */ public JRFillTimeSeries( JRTimeSeries timeSeries, JRFillObjectFactory factory ) { factory.put(timeSeries, this); parent = timeSeries; }
/** * */ public JRFillItemLabel(JRItemLabel itemLabel, JRFillObjectFactory factory) { factory.put(itemLabel, this); parent = itemLabel; chart = (JRChart)factory.getVisitResult(itemLabel.getChart()); }
/** * */ public JRFillGanttSeries( JRGanttSeries ganttSeries, JRFillObjectFactory factory ) { factory.put(ganttSeries, this); parent = ganttSeries; }
/** * */ public JRFillPieSeries( JRPieSeries pieSeries, JRFillObjectFactory factory ) { factory.put(pieSeries, this); parent = pieSeries; }
/** * */ public JRFillPie3DPlot( JRPie3DPlot pie3DPlot, JRFillObjectFactory factory ) { super(pie3DPlot, factory); }
/** * */ public JRFillCategorySeries( JRCategorySeries categorySeries, JRFillObjectFactory factory ) { factory.put(categorySeries, this); parent = categorySeries; }
/** * */ public JRFillValueDisplay(JRValueDisplay valueDisplay, JRFillObjectFactory factory) { factory.put(valueDisplay, this); parent = valueDisplay; chart = (JRChart)factory.getVisitResult(valueDisplay.getChart()); }
/** * */ public JRFillPiePlot( JRPiePlot piePlot, JRFillObjectFactory factory ) { super(piePlot, factory); }
public JRFillMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, JRFillObjectFactory factory) { super(multiAxisPlot, factory); List<JRChartAxis> parentAxes = multiAxisPlot.getAxes(); this.axes = new ArrayList<JRChartAxis>(parentAxes.size()); Iterator<JRChartAxis> iter = parentAxes.iterator(); while (iter.hasNext()) { JRChartAxis axis = iter.next(); this.axes.add(factory.getChartAxis(axis)); } }
/** * */ public JRFillXySeries( JRXySeries xySeries, JRFillObjectFactory factory ) { factory.put(xySeries, this); parent = xySeries; }
@Override public PartFillComponent toFillComponent(PartComponent component, JRFillObjectFactory factory) { SubreportPartComponent subreportPart = (SubreportPartComponent) component; SubreportFillPart fillSubreport = new SubreportFillPart(subreportPart, factory); return fillSubreport; }