Package ar.com.fdvs.dj.domain

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


   *
   * @return
   */
  @SuppressWarnings("serial")
  private CustomExpression getMyRightTypExpression() {
    return new CustomExpression() {

      public Object evaluate(Map fields, Map variables, Map parameters) {

        String result = "";

View Full Code Here


   *
   * @return
   */
  @SuppressWarnings("serial")
  private CustomExpression getMyRightTypExpression() {
    return new CustomExpression() {

      @Override
      public Object evaluate(Map fields, Map variables, Map parameters) {

        String result = "";
View Full Code Here

   * and a 'F' as false.<br>
   *
   * @return
   */
  private CustomExpression getMyBooleanExpression() {
    return new CustomExpression() {

      @Override
      public Object evaluate(Map fields, Map variables, Map parameters) {
        String result = "";

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
      useVariableForCustomExpression(group, jrExpression, expressionToGroupBy);
     
    } else {
      if (column instanceof ExpressionColumn){
        ExpressionColumn col = (ExpressionColumn)column;
        CustomExpression customExpression = col.getExpression();
        useVariableForCustomExpression(group, jrExpression, customExpression);
      } else {
        jrExpression.setText(column.getTextForExpression());
        jrExpression.setValueClassName(column.getValueClassNameForExpression());
      }
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
      useVariableForCustomExpression(group, jrExpression, expressionToGroupBy);
     
    } else {
      if (column instanceof ExpressionColumn){
        ExpressionColumn col = (ExpressionColumn)column;
        CustomExpression customExpression = col.getExpression();
        useVariableForCustomExpression(group, jrExpression, customExpression);
      } else {
        jrExpression.setText(column.getTextForExpression());
        jrExpression.setValueClassName(column.getValueClassNameForExpression());
      }
View Full Code Here

      linePlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      linePlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      linePlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      linePlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      linePlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      linePlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
      linePlot.setValueAxisTickLabelMask(getValueAxisFormat().getTickLabelMask())
    if (getValueAxisFormat().getLabelColor() != null)
      linePlot.setValueAxisLabelColor(getValueAxisFormat().getLabelColor());
    if (getValueAxisFormat().getLabelFont() != null)
      linePlot.setValueAxisLabelFont(getValueAxisFormat().getLabelFont().transform());
    if (getValueAxisFormat().getLineColor() != null)
      linePlot.setValueAxisLineColor(getValueAxisFormat().getLineColor());   
    if (getValueAxisFormat().getTickLabelColor() != null)
      linePlot.setValueAxisTickLabelColor(getValueAxisFormat().getTickLabelColor());
    if (getValueAxisFormat().getTickLabelFont() != null)
      linePlot.setValueAxisTickLabelFont(getValueAxisFormat().getTickLabelFont().transform());
    CustomExpression valueAxisRangeMinValueExp = getValueAxisFormat().getRangeMinValueExpression();
    if (valueAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMinValue_" + name, valueAxisRangeMinValueExp);
      linePlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression valueAxisRangeMaxValueExp = getValueAxisFormat().getRangeMaxValueExpression();
    if (valueAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMaxValue_" + name, valueAxisRangeMaxValueExp);
      linePlot.setRangeAxisMaxValueExpression(exp);
    }
   
View Full Code Here

      barPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      barPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      barPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      barPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      barPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      barPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
      barPlot.setValueAxisTickLabelMask(getValueAxisFormat().getTickLabelMask())
    if (getValueAxisFormat().getLabelColor() != null)
      barPlot.setValueAxisLabelColor(getValueAxisFormat().getLabelColor());
    if (getValueAxisFormat().getLabelFont() != null)
      barPlot.setValueAxisLabelFont(getValueAxisFormat().getLabelFont().transform());
    if (getValueAxisFormat().getLineColor() != null)
      barPlot.setValueAxisLineColor(getValueAxisFormat().getLineColor());   
    if (getValueAxisFormat().getTickLabelColor() != null)
      barPlot.setValueAxisTickLabelColor(getValueAxisFormat().getTickLabelColor());
    if (getValueAxisFormat().getTickLabelFont() != null)
      barPlot.setValueAxisTickLabelFont(getValueAxisFormat().getTickLabelFont().transform());
    CustomExpression valueAxisRangeMinValueExp = getValueAxisFormat().getRangeMinValueExpression();
    if (valueAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMinValue_" + name, valueAxisRangeMinValueExp);
      barPlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression valueAxisRangeMaxValueExp = getValueAxisFormat().getRangeMaxValueExpression();
    if (valueAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMaxValue_" + name, valueAxisRangeMaxValueExp);
      barPlot.setRangeAxisMaxValueExpression(exp);
    }
   
View Full Code Here

      areaPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      areaPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      areaPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      areaPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      areaPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      areaPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
      areaPlot.setValueAxisTickLabelMask(getValueAxisFormat().getTickLabelMask())
    if (getValueAxisFormat().getLabelColor() != null)
      areaPlot.setValueAxisLabelColor(getValueAxisFormat().getLabelColor());
    if (getValueAxisFormat().getLabelFont() != null)
      areaPlot.setValueAxisLabelFont(getValueAxisFormat().getLabelFont().transform());
    if (getValueAxisFormat().getLineColor() != null)
      areaPlot.setValueAxisLineColor(getValueAxisFormat().getLineColor());   
    if (getValueAxisFormat().getTickLabelColor() != null)
      areaPlot.setValueAxisTickLabelColor(getValueAxisFormat().getTickLabelColor());
    if (getValueAxisFormat().getTickLabelFont() != null)
      areaPlot.setValueAxisTickLabelFont(getValueAxisFormat().getTickLabelFont().transform());
    CustomExpression valueAxisRangeMinValueExp = getValueAxisFormat().getRangeMinValueExpression();
    if (valueAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMinValue_" + name, valueAxisRangeMinValueExp);
      areaPlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression valueAxisRangeMaxValueExp = getValueAxisFormat().getRangeMaxValueExpression();
    if (valueAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMaxValue_" + name, valueAxisRangeMaxValueExp);
      areaPlot.setRangeAxisMaxValueExpression(exp);
    }
  }
View Full Code Here

      barPlot.setCategoryAxisLineColor(getCategoryAxisFormat().getLineColor());   
    if (getCategoryAxisFormat().getTickLabelColor() != null)
      barPlot.setCategoryAxisTickLabelColor(getCategoryAxisFormat().getTickLabelColor());
    if (getCategoryAxisFormat().getTickLabelFont() != null)
      barPlot.setCategoryAxisTickLabelFont(getCategoryAxisFormat().getTickLabelFont().transform());
    CustomExpression categoryAxisRangeMinValueExp = getCategoryAxisFormat().getRangeMinValueExpression();
    if (categoryAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMinValue_" + name, categoryAxisRangeMinValueExp);
      barPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression categoryAxisRangeMaxValueExp = getCategoryAxisFormat().getRangeMaxValueExpression();
    if (categoryAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "categoryAxisRangeMaxValue_" + name, categoryAxisRangeMaxValueExp);
      barPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      barPlot.setValueAxisLabelExpression(exp);
    }
    if (getValueAxisFormat().getTickLabelMask() != null)
      barPlot.setValueAxisTickLabelMask(getValueAxisFormat().getTickLabelMask())
    if (getValueAxisFormat().getLabelColor() != null)
      barPlot.setValueAxisLabelColor(getValueAxisFormat().getLabelColor());
    if (getValueAxisFormat().getLabelFont() != null)
      barPlot.setValueAxisLabelFont(getValueAxisFormat().getLabelFont().transform());
    if (getValueAxisFormat().getLineColor() != null)
      barPlot.setValueAxisLineColor(getValueAxisFormat().getLineColor());   
    if (getValueAxisFormat().getTickLabelColor() != null)
      barPlot.setValueAxisTickLabelColor(getValueAxisFormat().getTickLabelColor());
    if (getValueAxisFormat().getTickLabelFont() != null)
      barPlot.setValueAxisTickLabelFont(getValueAxisFormat().getTickLabelFont().transform());
    CustomExpression valueAxisRangeMinValueExp = getValueAxisFormat().getRangeMinValueExpression();
    if (valueAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMinValue_" + name, valueAxisRangeMinValueExp);
      barPlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression valueAxisRangeMaxValueExp = getValueAxisFormat().getRangeMaxValueExpression();
    if (valueAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMaxValue_" + name, valueAxisRangeMaxValueExp);
      barPlot.setRangeAxisMaxValueExpression(exp);
    }
   
View Full Code Here

      timeSeriesPlot.setTimeAxisLineColor(timeAxisFormat.getLineColor());   
    if (timeAxisFormat.getTickLabelColor() != null)
      timeSeriesPlot.setTimeAxisTickLabelColor(timeAxisFormat.getTickLabelColor());
    if (timeAxisFormat.getTickLabelFont() != null)
      timeSeriesPlot.setTimeAxisTickLabelFont(timeAxisFormat.getTickLabelFont().transform());
    CustomExpression timeAxisRangeMinValueExp = getTimeAxisFormat().getRangeMinValueExpression();
    if (timeAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "timeAxisRangeMinValue_" + name, timeAxisRangeMinValueExp);
      timeSeriesPlot.setDomainAxisMinValueExpression(exp);
    }
    CustomExpression timeAxisRangeMaxValueExp = getTimeAxisFormat().getRangeMaxValueExpression();
    if (timeAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "timeAxisRangeMaxValue_" + name, timeAxisRangeMaxValueExp);
      timeSeriesPlot.setDomainAxisMaxValueExpression(exp);
    }
   
    StringExpression valueAxisLabelExp = getValueAxisFormat().getLabelExpression();
    if (valueAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisLabel_" + name, valueAxisLabelExp);
      timeSeriesPlot.setValueAxisLabelExpression(exp);
    }
    if (valueAxisFormat.getTickLabelMask() != null)
      timeSeriesPlot.setValueAxisTickLabelMask(valueAxisFormat.getTickLabelMask())
    if (valueAxisFormat.getLabelColor() != null)
      timeSeriesPlot.setValueAxisLabelColor(valueAxisFormat.getLabelColor());
    if (valueAxisFormat.getLabelFont() != null)
      timeSeriesPlot.setValueAxisLabelFont(valueAxisFormat.getLabelFont().transform());
    if (valueAxisFormat.getLineColor() != null)
      timeSeriesPlot.setValueAxisLineColor(valueAxisFormat.getLineColor());   
    if (valueAxisFormat.getTickLabelColor() != null)
      timeSeriesPlot.setValueAxisTickLabelColor(valueAxisFormat.getTickLabelColor());
    if (valueAxisFormat.getTickLabelFont() != null)
      timeSeriesPlot.setValueAxisTickLabelFont(valueAxisFormat.getTickLabelFont().transform());
    CustomExpression valueAxisRangeMinValueExp = getValueAxisFormat().getRangeMinValueExpression();
    if (valueAxisRangeMinValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMinValue_" + name, valueAxisRangeMinValueExp);
      timeSeriesPlot.setRangeAxisMinValueExpression(exp);
    }
    CustomExpression valueAxisRangeMaxValueExp = getValueAxisFormat().getRangeMaxValueExpression();
    if (valueAxisRangeMaxValueExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "valueAxisRangeMaxValue_" + name, valueAxisRangeMaxValueExp);
      timeSeriesPlot.setRangeAxisMaxValueExpression(exp);
    }
   
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.