Java 类net.sf.jasperreports.engine.base.JRBaseObjectFactory 实例源码

项目:jasperreports    文件:CompiledXYDataset.java   
public CompiledXYDataset(XYDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    XYSeries[] seriesArray = dataset.getSeries();
    if(seriesArray != null && seriesArray.length > 0)
    {
        xySeries = new DesignXYSeries[seriesArray.length];
        for(int i = 0; i < seriesArray.length; i++)
        {
            xySeries[i] = new DesignXYSeries(seriesArray[i], factory);
        }
    }
    else
    {
        xySeries = null;
    }
}
项目:jasperreports    文件:CompiledBarDataset.java   
public CompiledBarDataset(BarDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    List<BarSeries> series = dataset.getSeries();
    seriesList = new ArrayList<BarSeries>(series.size());
    for (Iterator<BarSeries> it = series.iterator(); it.hasNext();)
    {
        BarSeries barSeries = it.next();
        DefaultBarSeries compiledSeries = new DefaultBarSeries();
        compiledSeries.setSeriesExpression(factory.getExpression(barSeries.getSeriesExpression()));
        compiledSeries.setCategoryExpression(factory.getExpression(barSeries.getCategoryExpression()));
        compiledSeries.setValueExpression(factory.getExpression(barSeries.getValueExpression()));
        seriesList.add(compiledSeries);
    }
}
项目:jasperreports    文件:JRBasePieDataset.java   
/**
 *
 */
public JRBasePieDataset(JRPieDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    minPercentage = dataset.getMinPercentage();
    maxCount = dataset.getMaxCount();

    /*   */
    JRPieSeries[] srcPieSeries = dataset.getSeries();
    if (srcPieSeries != null && srcPieSeries.length > 0)
    {
        pieSeries = new JRPieSeries[srcPieSeries.length];
        for(int i = 0; i < pieSeries.length; i++)
        {
            pieSeries[i] = factory.getPieSeries(srcPieSeries[i]);
        }
    }

    otherKeyExpression = factory.getExpression(dataset.getOtherKeyExpression());
    otherLabelExpression = factory.getExpression(dataset.getOtherLabelExpression());
    otherSectionHyperlink = factory.getHyperlink(dataset.getOtherSectionHyperlink());
}
项目:jasperreports    文件:JRBaseThermometerPlot.java   
/**
 * Constructs a new plot that is a copy of an existing one, and registers
 * all expression used by the plot with the specified factory.
 *
 * @param thermoPlot the plot to copy
 * @param factory the factory to register any expressions with
 */
public JRBaseThermometerPlot(JRThermometerPlot thermoPlot, JRBaseObjectFactory factory)
{
    super(thermoPlot, factory);

    dataRange = new JRBaseDataRange(thermoPlot.getDataRange(), factory);

    valueDisplay = new JRBaseValueDisplay(thermoPlot.getValueDisplay(), factory);

    valueLocationObject = thermoPlot.getValueLocationValue();

    mercuryColor = thermoPlot.getMercuryColor();

    if (thermoPlot.getLowRange() != null)
    {
        lowRange = new JRBaseDataRange(thermoPlot.getLowRange(), factory);
    }
    if (thermoPlot.getMediumRange() != null)
    {
        mediumRange = new JRBaseDataRange(thermoPlot.getMediumRange(), factory);
    }
    if (thermoPlot.getHighRange() != null)
    {
        highRange = new JRBaseDataRange(thermoPlot.getHighRange(), factory);
    }
}
项目:jasperreports    文件:StandardItemData.java   
private static List<ItemProperty> getCompiledProperties(List<ItemProperty> properties, JRBaseObjectFactory factory)
{
    if (properties == null)
    {
        return null;
    }

    List<ItemProperty> compiledProperties = new ArrayList<ItemProperty>(properties.size());
    for (Iterator<ItemProperty> it = properties.iterator(); it.hasNext();)
    {
        ItemProperty property = it.next();
        ItemProperty compiledProperty = new StandardItemProperty(property.getName(), property.getValue(), factory.getExpression(property.getValueExpression()));
        compiledProperties.add(compiledProperty);
    }
    return compiledProperties;
}
项目:jasperreports    文件:JRBaseMultiAxisPlot.java   
/**
 * Creates a copy of an existing multiple axis chart plot and registers
 * any expression contained in the plot with the specified factory.  Since
 * the plot contains multiple other charts nested inside of it all of the
 * expressions used by those charts is also registered with the factory.
 *
 * @param multiAxisPlot the plot to copy
 * @param factory the factory to register expressions with
 */
public JRBaseMultiAxisPlot(JRMultiAxisPlot multiAxisPlot, JRBaseObjectFactory factory)
{
    super(multiAxisPlot, factory);

    List<JRChartAxis> origAxes = multiAxisPlot.getAxes();
    axes.clear();
    if (origAxes != null)
    {
        Iterator<JRChartAxis> iter = origAxes.iterator();
        while (iter.hasNext())
        {
            JRChartAxis axis = iter.next();
            axes.add(factory.getChartAxis(axis));
        }
    }
}
项目:jasperreports    文件:JRBaseGanttDataset.java   
/**
 *
 */
public JRBaseGanttDataset(JRGanttDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    /*   */
    JRGanttSeries[] srcGanttSeries = dataset.getSeries();
    if (srcGanttSeries != null && srcGanttSeries.length > 0)
    {
        ganttSeries = new JRGanttSeries[srcGanttSeries.length];
        for(int i = 0; i < ganttSeries.length; i++)
        {
            ganttSeries[i] = factory.getGanttSeries(srcGanttSeries[i]);
        }
    }

}
项目:jasperreports    文件:JRBaseCategoryDataset.java   
/**
 *
 */
public JRBaseCategoryDataset(JRCategoryDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    /*   */
    JRCategorySeries[] srcCategorySeries = dataset.getSeries();
    if (srcCategorySeries != null && srcCategorySeries.length > 0)
    {
        categorySeries = new JRCategorySeries[srcCategorySeries.length];
        for(int i = 0; i < categorySeries.length; i++)
        {
            categorySeries[i] = factory.getCategorySeries(srcCategorySeries[i]);
        }
    }

}
项目:jasperreports    文件:BaseDataLevelBucket.java   
public BaseDataLevelBucket(DataLevelBucket bucket, JRBaseObjectFactory factory)
{
    factory.put(bucket, this);

    this.valueClassName = bucket.getValueClassName();
    this.order = bucket.getOrder();
    this.expression = factory.getExpression(bucket.getExpression());
    this.labelExpression = factory.getExpression(bucket.getLabelExpression());
    this.comparatorExpression = factory.getExpression(bucket.getComparatorExpression());

    List<DataLevelBucketProperty> properties = bucket.getBucketProperties();
    this.bucketProperties = new ArrayList<DataLevelBucketProperty>(properties.size());
    for (DataLevelBucketProperty property : properties)
    {
        this.bucketProperties.add(factory.getDataLevelBucketProperty(property));
    }
}
项目:jasperreports    文件:BaseMultiAxisData.java   
public BaseMultiAxisData(MultiAxisData data, JRBaseObjectFactory factory)
{
    factory.put(data, this);

    this.dataset = factory.getMultiAxisDataset(data.getDataset());

    List<DataAxis> dataAxes = data.getDataAxisList();
    this.axisList = new ArrayList<DataAxis>(dataAxes.size());
    for (DataAxis dataAxis : dataAxes)
    {
        DataAxis axis = factory.getDataAxis(dataAxis);
        this.axisList.add(axis);
        this.axes[axis.getAxis().ordinal()] = axis;
    }

    List<DataMeasure> dataMeasures = data.getMeasures();
    this.measures = new ArrayList<DataMeasure>(dataMeasures.size());
    for (DataMeasure measure : dataMeasures)
    {
        this.measures.add(factory.getDataMeasure(measure));
    }
}
项目:jasperreports    文件:StandardItemData.java   
private static List<Item> getCompiledItems(List<Item> items, JRBaseObjectFactory factory)
{
    if (items == null)
    {
        return null;
    }

    List<Item> compiledItems = new ArrayList<Item>(items.size());
    for (Iterator<Item> it = items.iterator(); it.hasNext();)
    {
        Item item = it.next();
        Item compiledItem = new StandardItem(getCompiledProperties(item.getProperties(), factory));
        compiledItems.add(compiledItem);
    }
    return compiledItems;
}
项目:jasperreports    文件:StandardItemData.java   
private static List<Item> getCompiledItems(List<Item> items, JRBaseObjectFactory factory)
{
    if (items == null)
    {
        return null;
    }

    List<Item> compiledItems = new ArrayList<Item>(items.size());
    for (Iterator<Item> it = items.iterator(); it.hasNext();)
    {
        Item item = it.next();
        Item compiledItem = new StandardItem(getCompiledProperties(item.getProperties(), factory));
        compiledItems.add(compiledItem);
    }
    return compiledItems;
}
项目:jasperreports    文件:StandardItemData.java   
private static List<ItemProperty> getCompiledProperties(List<ItemProperty> properties, JRBaseObjectFactory factory)
{
    if (properties == null)
    {
        return null;
    }

    List<ItemProperty> compiledProperties = new ArrayList<ItemProperty>(properties.size());
    for (Iterator<ItemProperty> it = properties.iterator(); it.hasNext();)
    {
        ItemProperty property = it.next();
        ItemProperty compiledProperty = new StandardItemProperty(property.getName(), property.getValue(), factory.getExpression(property.getValueExpression()));
        compiledProperties.add(compiledProperty);
    }
    return compiledProperties;
}
项目:jasperreports    文件:StandardMarkerDataset.java   
private static List<Marker> getCompiledMarkers(List<Marker> markers, JRBaseObjectFactory factory)
{
    if (markers == null)
    {
        return null;
    }

    List<Marker> compiledMarkers = new ArrayList<Marker>(markers.size());
    for (Iterator<Marker> it = markers.iterator(); it.hasNext();)
    {
        Marker marker = it.next();
        Marker compiledMarker = new StandardMarker(getCompiledProperties(marker.getProperties(), factory));
        compiledMarkers.add(compiledMarker);
    }
    return compiledMarkers;
}
项目:jasperreports    文件:StandardMarkerDataset.java   
private static List<MarkerProperty> getCompiledProperties(List<MarkerProperty> properties, JRBaseObjectFactory factory)
{
    if (properties == null)
    {
        return null;
    }

    List<MarkerProperty> compiledProperties = new ArrayList<MarkerProperty>(properties.size());
    for (Iterator<MarkerProperty> it = properties.iterator(); it.hasNext();)
    {
        MarkerProperty property = it.next();
        MarkerProperty compiledProperty = new StandardMarkerProperty(property.getName(), property.getValue(), factory.getExpression(property.getValueExpression()));
        compiledProperties.add(compiledProperty);
    }
    return compiledProperties;
}
项目:jasperreports    文件:StandardSpiderPlot.java   
/**
 *
 */
public StandardSpiderPlot(SpiderPlot spiderPlot, JRBaseObjectFactory factory)
{
    labelFont = spiderPlot.getLabelFont();
    rotation = spiderPlot.getRotation();
    tableOrder = spiderPlot.getTableOrder();
    webFilled = spiderPlot.getWebFilled();
    startAngle = spiderPlot.getStartAngle();
    headPercent = spiderPlot.getHeadPercent();
    interiorGap = spiderPlot.getInteriorGap();
    axisLineColor = spiderPlot.getAxisLineColor();
    axisLineWidth = spiderPlot.getAxisLineWidth();
    labelGap = spiderPlot.getLabelGap();
    labelColor = spiderPlot.getLabelColor();
    backcolor = spiderPlot.getBackcolor();
    backgroundAlpha = spiderPlot.getBackgroundAlpha();
    foregroundAlpha = spiderPlot.getForegroundAlpha();

    maxValueExpression = factory.getExpression( spiderPlot.getMaxValueExpression() );
}
项目:jasperreports    文件:TextInputComponent.java   
public TextInputComponent(TextInputComponent component, JRBaseObjectFactory objectFactory) 
{
    this.textField = (JRTextField)objectFactory.getVisitResult(component.textField);
    this.multiLine = component.isMultiLine();

    this.context = new BaseComponentContext(component.getContext(), objectFactory);
}
项目:jasperreports    文件:DesignXYSeries.java   
/**
 *
 */
public DesignXYSeries(XYSeries xySeries, JRBaseObjectFactory factory)
{
    factory.put(xySeries, this);

    seriesExpression = factory.getExpression(xySeries.getSeriesExpression());
    xValueExpression = factory.getExpression(xySeries.getXValueExpression());
    yValueExpression = factory.getExpression(xySeries.getYValueExpression());
    colorExpression = factory.getExpression(xySeries.getColorExpression());
}
项目:jasperreports    文件:XYChartComponent.java   
protected XYChartComponent(XYChartComponent chart, JRBaseObjectFactory baseFactory)
{
    this.evaluationTime = chart.getEvaluationTime();
    this.evaluationGroup = chart.getEvaluationGroup();

    this.chartTitleExpression = baseFactory.getExpression(chart.getChartTitleExpression());
    this.xAxisTitleExpression = baseFactory.getExpression(chart.getXAxisTitleExpression());
    this.yAxisTitleExpression = baseFactory.getExpression(chart.getYAxisTitleExpression());
    this.dataset = new CompiledXYDataset(chart.getDataset(), baseFactory);
}
项目:jasperreports    文件:XYChartCompiler.java   
@Override
public Component toCompiledComponent(Component component,
        JRBaseObjectFactory baseFactory)
{
    XYChartComponent chart = (XYChartComponent) component;
    XYChartComponent compiledChart = new XYChartComponent(chart, baseFactory);
    return compiledChart;
}
项目:jasperreports    文件:PieChartComponent.java   
protected PieChartComponent(PieChartComponent chart, JRBaseObjectFactory baseFactory)
{
    this.evaluationTime = chart.getEvaluationTime();
    this.evaluationGroup = chart.getEvaluationGroup();

    this.titleExpression = baseFactory.getExpression(chart.getTitleExpression());
    this.dataset = new CompiledPieDataset(chart.getDataset(), baseFactory);
}
项目:jasperreports    文件:CompiledPieDataset.java   
public CompiledPieDataset(PieDataset dataset, JRBaseObjectFactory factory)
{
    super(dataset, factory);

    keyExpression = factory.getExpression(dataset.getKeyExpression());
    valueExpression = factory.getExpression(dataset.getValueExpression());
}
项目:jasperreports    文件:BarChartCompiler.java   
public Component toCompiledComponent(Component component,
        JRBaseObjectFactory baseFactory)
{
    BarChartComponent chart = (BarChartComponent) component;
    BarChartComponent compiledChart = new BarChartComponent(chart, baseFactory);
    return compiledChart;
}
项目:jasperreports    文件:BarChartComponent.java   
protected BarChartComponent(BarChartComponent chart, JRBaseObjectFactory baseFactory)
{
    this.evaluationTime = chart.getEvaluationTime();
    this.evaluationGroup = chart.getEvaluationGroup();

    this.titleExpression = baseFactory.getExpression(chart.getTitleExpression());
    this.dataset = new CompiledBarDataset(chart.getDataset(), baseFactory);
}
项目:jasperreports    文件:HtmlComponent.java   
public HtmlComponent(HtmlComponent component, JRBaseObjectFactory objectFactory) {
    this.scaleType = component.getScaleType();
    this.horizontalImageAlign = component.getHorizontalImageAlign();
    this.verticalImageAlign = component.getVerticalImageAlign();
    this.htmlContentExpression = objectFactory.getExpression(component.getHtmlContentExpression());
    this.context = new BaseComponentContext(component.getContext(), objectFactory);
    this.evaluationTime= component.getEvaluationTime();
    this.evaluationGroup = component.getEvaluationGroup();
    this.clipOnOverflow = component.getClipOnOverflow();
}
项目:jasperreports    文件:JRBasePie3DPlot.java   
/**
 *
 */
public JRBasePie3DPlot(JRPie3DPlot pie3DPlot, JRBaseObjectFactory factory)
{
    super(pie3DPlot, factory);

    depthFactorDouble = pie3DPlot.getDepthFactorDouble();
    circular = pie3DPlot.getCircular();
    labelFormat = pie3DPlot.getLabelFormat();
    legendLabelFormat = pie3DPlot.getLegendLabelFormat();
    itemLabel = new JRBaseItemLabel(pie3DPlot.getItemLabel(), factory);
    showLabels = pie3DPlot.getShowLabels();
}
项目:jasperreports    文件:JRBaseXyzDataset.java   
public JRBaseXyzDataset( JRXyzDataset dataset, JRBaseObjectFactory factory ){
    super( dataset, factory );

    JRXyzSeries[] srcXyzSeries = dataset.getSeries();

    if( srcXyzSeries != null && srcXyzSeries.length > 0 ){

        xyzSeries = new JRXyzSeries[ srcXyzSeries.length ];
        for( int i = 0; i < srcXyzSeries.length; i++ ){
            xyzSeries[i] = factory.getXyzSeries( srcXyzSeries[i] );
        }
    }
}
项目:jasperreports    文件:JRBaseTimePeriodSeries.java   
public JRBaseTimePeriodSeries( JRTimePeriodSeries timePeriodSeries, JRBaseObjectFactory factory ){
    factory.put( timePeriodSeries, factory );

    seriesExpression = factory.getExpression( timePeriodSeries.getSeriesExpression() );
    startDateExpression = factory.getExpression( timePeriodSeries.getStartDateExpression() );
    endDateExpression = factory.getExpression( timePeriodSeries.getEndDateExpression() );
    valueExpression = factory.getExpression( timePeriodSeries.getValueExpression() );
    labelExpression = factory.getExpression( timePeriodSeries.getLabelExpression() );
    itemHyperlink = factory.getHyperlink(timePeriodSeries.getItemHyperlink());
}
项目:jasperreports    文件:JRBaseBubblePlot.java   
/**
 * 
 */
public JRBaseBubblePlot(JRBubblePlot bubblePlot, JRBaseObjectFactory factory )
{
    super( bubblePlot, factory );

    scaleTypeValue = bubblePlot.getScaleTypeValue();

    xAxisLabelExpression = factory.getExpression( bubblePlot.getXAxisLabelExpression() );
    xAxisLabelFont = factory.getFont(chart, bubblePlot.getXAxisLabelFont());
    xAxisLabelColor = bubblePlot.getOwnXAxisLabelColor();
    xAxisTickLabelFont = factory.getFont(chart, bubblePlot.getXAxisTickLabelFont());
    xAxisTickLabelColor = bubblePlot.getOwnXAxisTickLabelColor();
    xAxisTickLabelMask = bubblePlot.getXAxisTickLabelMask();
    xAxisVerticalTickLabels = bubblePlot.getXAxisVerticalTickLabels();
    xAxisLineColor = bubblePlot.getOwnXAxisLineColor();

    yAxisLabelExpression = factory.getExpression( bubblePlot.getYAxisLabelExpression() );
    yAxisLabelFont = factory.getFont(chart, bubblePlot.getYAxisLabelFont());
    yAxisLabelColor = bubblePlot.getOwnYAxisLabelColor();
    yAxisTickLabelFont = factory.getFont(chart, bubblePlot.getYAxisTickLabelFont());
    yAxisTickLabelColor = bubblePlot.getOwnYAxisTickLabelColor();
    yAxisTickLabelMask = bubblePlot.getYAxisTickLabelMask();
    yAxisVerticalTickLabels = bubblePlot.getYAxisVerticalTickLabels();
    yAxisLineColor = bubblePlot.getOwnYAxisLineColor();

    domainAxisMinValueExpression = factory.getExpression( bubblePlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( bubblePlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( bubblePlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( bubblePlot.getRangeAxisMaxValueExpression() );
}
项目:jasperreports    文件:JRBaseBarPlot.java   
/**
 *
 */
public JRBaseBarPlot(JRBarPlot barPlot, JRBaseObjectFactory factory)
{
    super(barPlot, factory);

    showTickMarks = barPlot.getShowTickMarks();
    showTickLabels = barPlot.getShowTickLabels();
    showLabels = barPlot.getShowLabels();

    categoryAxisLabelExpression = factory.getExpression( barPlot.getCategoryAxisLabelExpression() );
    categoryAxisLabelFont = factory.getFont(chart, barPlot.getCategoryAxisLabelFont());
    categoryAxisLabelColor = barPlot.getOwnCategoryAxisLabelColor();
    categoryAxisTickLabelFont = factory.getFont(chart, barPlot.getCategoryAxisTickLabelFont());
    categoryAxisTickLabelColor = barPlot.getOwnCategoryAxisTickLabelColor();
    categoryAxisTickLabelMask = barPlot.getCategoryAxisTickLabelMask();
    categoryAxisVerticalTickLabels = barPlot.getCategoryAxisVerticalTickLabels();
    categoryAxisLineColor = barPlot.getOwnCategoryAxisLineColor();
    labelRotationDouble = barPlot.getCategoryAxisTickLabelRotation();

    valueAxisLabelExpression = factory.getExpression( barPlot.getValueAxisLabelExpression() );
    domainAxisMinValueExpression = factory.getExpression( barPlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( barPlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( barPlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( barPlot.getRangeAxisMaxValueExpression() );
    valueAxisLabelFont = factory.getFont(chart, barPlot.getValueAxisLabelFont());
    valueAxisLabelColor = barPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = factory.getFont(chart, barPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = barPlot.getOwnValueAxisTickLabelColor();
    valueAxisTickLabelMask = barPlot.getValueAxisTickLabelMask();
    valueAxisVerticalTickLabels = barPlot.getValueAxisVerticalTickLabels();
    valueAxisLineColor = barPlot.getOwnValueAxisLineColor();

    itemLabel = new JRBaseItemLabel(barPlot.getItemLabel(), factory);
}
项目:jasperreports    文件:JRBaseHighLowPlot.java   
/**
 *
 */
public JRBaseHighLowPlot(JRHighLowPlot highLowPlot, JRBaseObjectFactory factory)
{
    super(highLowPlot, factory);

    showOpenTicks = highLowPlot.getShowOpenTicks();
    showCloseTicks = highLowPlot.getShowCloseTicks();

    timeAxisLabelExpression = factory.getExpression( highLowPlot.getTimeAxisLabelExpression() );
    timeAxisLabelFont = factory.getFont(chart, highLowPlot.getTimeAxisLabelFont());
    timeAxisLabelColor = highLowPlot.getOwnTimeAxisLabelColor();
    timeAxisTickLabelFont = factory.getFont(chart, highLowPlot.getTimeAxisTickLabelFont());
    timeAxisTickLabelColor = highLowPlot.getOwnTimeAxisTickLabelColor();
    timeAxisTickLabelMask = highLowPlot.getTimeAxisTickLabelMask();
    timeAxisVerticalTickLabels = highLowPlot.getTimeAxisVerticalTickLabels();
    timeAxisLineColor = highLowPlot.getOwnTimeAxisLineColor();

    valueAxisLabelExpression = factory.getExpression( highLowPlot.getValueAxisLabelExpression() );
    domainAxisMinValueExpression = factory.getExpression( highLowPlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( highLowPlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( highLowPlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( highLowPlot.getRangeAxisMaxValueExpression() );
    valueAxisLabelFont = factory.getFont(chart, highLowPlot.getValueAxisLabelFont());
    valueAxisLabelColor = highLowPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = factory.getFont(chart, highLowPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = highLowPlot.getOwnValueAxisTickLabelColor();
    valueAxisTickLabelMask = highLowPlot.getValueAxisTickLabelMask();
    valueAxisVerticalTickLabels = highLowPlot.getValueAxisVerticalTickLabels();
    valueAxisLineColor = highLowPlot.getOwnValueAxisTickLabelColor();
}
项目:jasperreports    文件:IconLabelComponent.java   
public IconLabelComponent(IconLabelComponent component, JRBaseObjectFactory objectFactory) 
{
    this.lineBox = component.getLineBox().clone(this);
    this.labelTextField = (JRTextField)objectFactory.getVisitResult(component.getLabelTextField());
    this.iconTextField = (JRTextField)objectFactory.getVisitResult(component.getIconTextField());

    this.iconPosition = component.getIconPosition();
    this.labelFill = component.getLabelFill();
    this.horizontalImageAlign = component.getOwnHorizontalImageAlign();
    this.verticalImageAlign = component.getOwnVerticalImageAlign();

    this.context = new BaseComponentContext(component.getContext(), objectFactory);
}
项目:jasperreports    文件:JRBaseGanttSeries.java   
/**
 *
 */
public JRBaseGanttSeries(JRGanttSeries ganttSeries, JRBaseObjectFactory factory)
{
    factory.put(ganttSeries, this);

    seriesExpression = factory.getExpression(ganttSeries.getSeriesExpression());
    taskExpression = factory.getExpression(ganttSeries.getTaskExpression());
    subtaskExpression = factory.getExpression(ganttSeries.getSubtaskExpression());
    startDateExpression = factory.getExpression(ganttSeries.getStartDateExpression());
    endDateExpression = factory.getExpression(ganttSeries.getEndDateExpression());
    percentExpression = factory.getExpression(ganttSeries.getPercentExpression());
    labelExpression = factory.getExpression(ganttSeries.getLabelExpression());
    itemHyperlink = factory.getHyperlink(ganttSeries.getItemHyperlink());
}
项目:jasperreports    文件:JRBasePieSeries.java   
/**
 *
 */
public JRBasePieSeries(JRPieSeries pieSeries, JRBaseObjectFactory factory)
{
    factory.put(pieSeries, this);

    keyExpression = factory.getExpression(pieSeries.getKeyExpression());
    valueExpression = factory.getExpression(pieSeries.getValueExpression());
    labelExpression = factory.getExpression(pieSeries.getLabelExpression());
    sectionHyperlink = factory.getHyperlink(pieSeries.getSectionHyperlink());
}
项目:jasperreports    文件:JRBaseAreaPlot.java   
/**
 * 
 */
public JRBaseAreaPlot( JRAreaPlot areaPlot, JRBaseObjectFactory factory )
{
    super( areaPlot, factory );

    categoryAxisLabelExpression = factory.getExpression( areaPlot.getCategoryAxisLabelExpression() );
    categoryAxisLabelFont = factory.getFont(chart, areaPlot.getCategoryAxisLabelFont()); 
    categoryAxisLabelColor = areaPlot.getOwnCategoryAxisLabelColor();
    categoryAxisTickLabelFont = factory.getFont(chart, areaPlot.getCategoryAxisTickLabelFont());
    categoryAxisTickLabelColor = areaPlot.getOwnCategoryAxisTickLabelColor();
    categoryAxisTickLabelMask = areaPlot.getCategoryAxisTickLabelMask();
    categoryAxisVerticalTickLabels = areaPlot.getCategoryAxisVerticalTickLabels();
    categoryAxisLineColor = areaPlot.getOwnCategoryAxisLineColor();
    labelRotationDouble = areaPlot.getCategoryAxisTickLabelRotation();

    valueAxisLabelExpression = factory.getExpression( areaPlot.getValueAxisLabelExpression() );
    domainAxisMinValueExpression = factory.getExpression( areaPlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( areaPlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( areaPlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( areaPlot.getRangeAxisMaxValueExpression() );
    valueAxisLabelFont = factory.getFont(chart, areaPlot.getValueAxisLabelFont());
    valueAxisLabelColor = areaPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = factory.getFont(chart, areaPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = areaPlot.getOwnValueAxisTickLabelColor();
    valueAxisTickLabelMask = areaPlot.getValueAxisTickLabelMask();
    valueAxisVerticalTickLabels = areaPlot.getValueAxisVerticalTickLabels();
    valueAxisLineColor = areaPlot.getOwnValueAxisLineColor();
}
项目:jasperreports    文件:JRBaseCandlestickPlot.java   
/**
 *
 */
public JRBaseCandlestickPlot(JRCandlestickPlot candlestickPlot, JRBaseObjectFactory factory)
{
    super(candlestickPlot, factory);

    showVolume = candlestickPlot.getShowVolume();

    timeAxisLabelExpression = factory.getExpression( candlestickPlot.getTimeAxisLabelExpression() );
    timeAxisLabelFont = factory.getFont(chart, candlestickPlot.getTimeAxisLabelFont());
    timeAxisLabelColor = candlestickPlot.getOwnTimeAxisLabelColor();
    timeAxisTickLabelFont = factory.getFont(chart, candlestickPlot.getTimeAxisTickLabelFont());
    timeAxisTickLabelColor = candlestickPlot.getOwnTimeAxisTickLabelColor();
    timeAxisTickLabelMask = candlestickPlot.getTimeAxisTickLabelMask();
    timeAxisVerticalTickLabels = candlestickPlot.getTimeAxisVerticalTickLabels();
    timeAxisLineColor = candlestickPlot.getOwnTimeAxisLineColor();

    valueAxisLabelExpression = factory.getExpression( candlestickPlot.getValueAxisLabelExpression() );
    domainAxisMinValueExpression = factory.getExpression( candlestickPlot.getDomainAxisMinValueExpression() );
    domainAxisMaxValueExpression = factory.getExpression( candlestickPlot.getDomainAxisMaxValueExpression() );
    rangeAxisMinValueExpression = factory.getExpression( candlestickPlot.getRangeAxisMinValueExpression() );
    rangeAxisMaxValueExpression = factory.getExpression( candlestickPlot.getRangeAxisMaxValueExpression() );
    valueAxisLabelFont = factory.getFont(chart, candlestickPlot.getValueAxisLabelFont());
    valueAxisLabelColor = candlestickPlot.getOwnValueAxisLabelColor();
    valueAxisTickLabelFont = factory.getFont(chart, candlestickPlot.getValueAxisTickLabelFont());
    valueAxisTickLabelColor = candlestickPlot.getOwnValueAxisTickLabelColor();
    valueAxisTickLabelMask = candlestickPlot.getValueAxisTickLabelMask();
    valueAxisVerticalTickLabels = candlestickPlot.getValueAxisVerticalTickLabels();
    valueAxisLineColor = candlestickPlot.getOwnValueAxisTickLabelColor();
}
项目:jasperreports    文件:TableCompiler.java   
@Override
public Component toCompiledComponent(Component component,
        JRBaseObjectFactory baseFactory)
{
    TableComponent table = (TableComponent) component;
    return new StandardTable(table, baseFactory);
}
项目:jasperreports    文件:JRBaseMeterPlot.java   
/**
 * Constructs a copy of an existing meter and registers all expressions
 * maintained by the meter plot with a factory.
 *
 * @param meterPlot the meter to copy
 * @param factory the factory to register expressions with
 */
public JRBaseMeterPlot(JRMeterPlot meterPlot, JRBaseObjectFactory factory)
{
    super(meterPlot, factory);

    dataRange = new JRBaseDataRange(meterPlot.getDataRange(), factory);
    valueDisplay = new JRBaseValueDisplay(meterPlot.getValueDisplay(), factory);
    shapeValue = meterPlot.getShapeValue();
    List<JRMeterInterval> origIntervals = meterPlot.getIntervals();
    intervals.clear();
    if (origIntervals != null)
    {
        Iterator<JRMeterInterval> iter = origIntervals.iterator();
        while (iter.hasNext())
        {
            JRMeterInterval interval = iter.next();
            intervals.add(new JRMeterInterval(interval, factory));
        }
    }

    meterAngleInteger = meterPlot.getMeterAngleInteger();
    units = meterPlot.getUnits();
    tickIntervalDouble = meterPlot.getTickIntervalDouble();
    tickCount = meterPlot.getTickCount();
    meterBackgroundColor = meterPlot.getMeterBackgroundColor();
    needleColor = meterPlot.getNeedleColor();
    tickColor = meterPlot.getTickColor();
    tickLabelFont = factory.getFont(this.getChart(), meterPlot.getTickLabelFont());
}
项目:jasperreports    文件:StandardTable.java   
public StandardTable(TableComponent table, JRBaseObjectFactory factory)
{
    whenNoDataType = table.getWhenNoDataType();

    datasetRun = factory.getDatasetRun(table.getDatasetRun());

    ColumnFactory columnFactory = new ColumnFactory(factory);
    columns = columnFactory.createColumns(table.getColumns());
}
项目:jasperreports    文件:JRBasePiePlot.java   
/**
 *
 */
public JRBasePiePlot(JRPiePlot piePlot, JRBaseObjectFactory factory)
{
    super(piePlot, factory);
    circular = piePlot.getCircular();
    labelFormat = piePlot.getLabelFormat();
    legendLabelFormat = piePlot.getLegendLabelFormat();
    itemLabel = new JRBaseItemLabel(piePlot.getItemLabel(), factory);
    showLabels = piePlot.getShowLabels();
}