Package ar.com.fdvs.dj.domain

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


 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignTimeSeriesPlot timeSeriesPlot = (JRDesignTimeSeriesPlot) plot;
   
    StringExpression timeAxisLabelExp = getTimeAxisFormat().getLabelExpression();
    if (timeAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "timeAxisLabel_" + name, timeAxisLabelExp);
      timeSeriesPlot.setTimeAxisLabelExpression(exp);
    }
    if (timeAxisFormat.getTickLabelMask() != null)
      timeSeriesPlot.setTimeAxisTickLabelMask(timeAxisFormat.getTickLabelMask())
    if (timeAxisFormat.getLabelColor() != null)
      timeSeriesPlot.setTimeAxisLabelColor(timeAxisFormat.getLabelColor());
    if (timeAxisFormat.getLabelFont() != null)
      timeSeriesPlot.setTimeAxisLabelFont(timeAxisFormat.getLabelFont().transform());
    if (timeAxisFormat.getLineColor() != null)
      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)
View Full Code Here


 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignScatterPlot scatterPlot = (JRDesignScatterPlot) plot;
   
    StringExpression xAxisLabelExp = getXAxisFormat().getLabelExpression();
    if (xAxisLabelExp != null) {
      JRDesignExpression exp = ExpressionUtils.createAndRegisterExpression(design, "xAxisLabel_" + name, xAxisLabelExp);
      scatterPlot.setXAxisLabelExpression(exp);
    }
    if (xAxisFormat.getTickLabelMask() != null)
      scatterPlot.setXAxisTickLabelMask(xAxisFormat.getTickLabelMask())
    if (xAxisFormat.getLabelColor() != null)
      scatterPlot.setXAxisLabelColor(xAxisFormat.getLabelColor());
    if (xAxisFormat.getLabelFont() != null)
      scatterPlot.setXAxisLabelFont(xAxisFormat.getLabelFont().transform());
    if (xAxisFormat.getLineColor() != null)
      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)
View Full Code Here

TOP

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

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.