Package org.pentaho.plugin.jfreereport.reportcharts

Examples of org.pentaho.plugin.jfreereport.reportcharts.MultiPlotChartExpression


      if (chartExpression instanceof MultiPlotChartExpression == false)
      {
        continue;
      }
      final MultiPlotChartExpression multiPlotChartExpression = (MultiPlotChartExpression) chartExpression;

      final Object secondaryDataSourceExpression = element.getAttribute
          (LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.SECONDARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE);
      if (secondaryDataSourceExpression instanceof Expression)
      {
        final Expression datasetExpression = (Expression) secondaryDataSourceExpression;
        final Expression datasetExpressionInstance = datasetExpression.getInstance();
        final String name = AutoGeneratorUtility.generateUniqueExpressionName
            (dataSchema, "::legacy-charts::secondary-dataset::{0}", reportDefinition);
        datasetExpressionInstance.setName(name);
        multiPlotChartExpression.setSecondaryDataSet(name);
        reportDefinition.addExpression(datasetExpressionInstance);
      }
    }
  }
View Full Code Here


      if (chartExpression instanceof MultiPlotChartExpression == false)
      {
        continue;
      }
      final MultiPlotChartExpression multiPlotChartExpression = (MultiPlotChartExpression) chartExpression;

      final Object secondaryDataSourceExpression = element.getAttribute
          (LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.SECONDARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE);
      if (secondaryDataSourceExpression instanceof Expression)
      {
        final Expression datasetExpression = (Expression) secondaryDataSourceExpression;
        final Expression datasetExpressionInstance = datasetExpression.getInstance();
        final String name = AutoGeneratorUtility.generateUniqueExpressionName
            (dataSchema, "::legacy-charts::secondary-dataset::{0}", reportDefinition);
        datasetExpressionInstance.setName(name);
        multiPlotChartExpression.setSecondaryDataSet(name);
        reportDefinition.addExpression(datasetExpressionInstance);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.plugin.jfreereport.reportcharts.MultiPlotChartExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.