Package ar.com.fdvs.dj.domain

Examples of ar.com.fdvs.dj.domain.CustomExpression


      scatterPlot.setXAxisLineColor(xAxisFormat.getLineColor());   
    if (xAxisFormat.getTickLabelColor() != null)
      scatterPlot.setXAxisTickLabelColor(xAxisFormat.getTickLabelColor());
    if (xAxisFormat.getTickLabelFont() != null)
      scatterPlot.setXAxisTickLabelFont(xAxisFormat.getTickLabelFont().transform());
    CustomExpression xAxisRangeMinValueExp = getXAxisFormat().getRangeMinValueExpression();
    if (xAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "xAxisRangeMinValue_" + name, xAxisRangeMinValueExp);
      scatterPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression xAxisRangeMaxValueExp = getXAxisFormat().getRangeMaxValueExpression();
    if (xAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "xAxisRangeMaxValue_" + name, xAxisRangeMaxValueExp);
      scatterPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression yAxisLabelExp = getYAxisFormat().getLabelExpression();
    if (yAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "yAxisLabel_" + name, yAxisLabelExp);
      scatterPlot.setYAxisLabelExpression(exp);
    }
    if (yAxisFormat.getTickLabelMask() != null)
      scatterPlot.setYAxisTickLabelMask(yAxisFormat.getTickLabelMask())
    if (yAxisFormat.getLabelColor() != null)
      scatterPlot.setYAxisLabelColor(yAxisFormat.getLabelColor());
    if (yAxisFormat.getLabelFont() != null)
      scatterPlot.setYAxisLabelFont(yAxisFormat.getLabelFont().transform());
    if (yAxisFormat.getLineColor() != null)
      scatterPlot.setYAxisLineColor(yAxisFormat.getLineColor());   
    if (yAxisFormat.getTickLabelColor() != null)
      scatterPlot.setYAxisTickLabelColor(yAxisFormat.getTickLabelColor());
    if (yAxisFormat.getTickLabelFont() != null)
      scatterPlot.setYAxisTickLabelFont(yAxisFormat.getTickLabelFont().transform());
    CustomExpression yAxisRangeMinValueExp = getYAxisFormat().getRangeMinValueExpression();
    if (yAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "yAxisRangeMinValue_" + name, yAxisRangeMinValueExp);
      scatterPlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression yAxisRangeMaxValueExp = getYAxisFormat().getRangeMaxValueExpression();
    if (yAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "yAxisRangeMaxValue_" + name, yAxisRangeMaxValueExp);
      scatterPlot.setRangeAxisMaxValueExpression(exp);
    }
   
View Full Code Here


    group.setGroupFooter(new JRDesignBand());
    group.setGroupHeader(new JRDesignBand());

    JRDesignExpression jrExpression = new JRDesignExpression();
   
    CustomExpression expressionToGroupBy = column.getExpressionToGroupBy();
    if (expressionToGroupBy != null) { //new in 3.0.7-b5
      String expToGroupByName = group.getName() + "_expression_to_group_by";
      registerCustomExpressionParameter(expToGroupByName, expressionToGroupBy);
      String expText = ExpressionUtils.createCustomExpressionInvocationText(expToGroupByName);
      jrExpression.setText(expText);
      log.debug("Expression for CustomExpression = " + expText);
      jrExpression.setValueClassName(expressionToGroupBy.getClassName());
    } else {
      jrExpression.setText(column.getTextForExpression());
      jrExpression.setValueClassName(column.getValueClassNameForExpression());
    }
   
View Full Code Here

TOP

Related Classes of ar.com.fdvs.dj.domain.CustomExpression

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.