Examples of DJChartOptions


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

    DJChart chart = new DJChart(type.byteValue(),columnsGroup,columns,operation.byteValue(),chartOptions);
    return chart;
  }

  private DJChartOptions createDefaultOptions() {
    DJChartOptions options = new DJChartOptions(true, Color.white, 300, 300, true, DJChartOptions.POSITION_HEADER, 0, 0, true, (byte) 1, DJChartColors.googleAnalytics());
    return options;
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroupChart);
      return chart;
  }

  protected void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered())
      chart.setWidth(getReport().getOptions().getPrintableWidth());
    else
      chart.setWidth(options.getWidth());

    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependent options
    if (djChart.getType() == DJChart.BAR_CHART)
      ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroup);
      return chart;
  }

  private void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered()) chart.setWidth(getReport().getOptions().getPrintableWidth());
    else chart.setWidth(options.getWidth());
    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());
    arrangeBand(djChart, chart);

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependant options
    if (djChart.getType() == DJChart.BAR_CHART) ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

    DJChart chart = new DJChart(type.byteValue(),columnsGroup,column,operation.byteValue(),chartOptions);
    return chart;
  }

  private DJChartOptions createDefaultOptions() {
    DJChartOptions options = new DJChartOptions(true, Color.white, 300, 300, true, DJChartOptions.POSITION_HEADER, 0, 0, true, (byte) 1, DJChartColors.googleAnalytics());
    return options;
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroup);
      return chart;
  }

  private void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered()) chart.setWidth(getReport().getOptions().getPrintableWidth());
    else chart.setWidth(options.getWidth());
    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());
    arrangeBand(djChart, chart);

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependant options
    if (djChart.getType() == DJChart.BAR_CHART) ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroupChart);
      return chart;
  }

  protected void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered())
      chart.setWidth(getReport().getOptions().getPrintableWidth());
    else
      chart.setWidth(options.getWidth());

    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependent options
    if (djChart.getType() == DJChart.BAR_CHART)
      ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroupChart);
      return chart;
  }

  protected void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered())
      chart.setWidth(getReport().getOptions().getPrintableWidth());
    else
      chart.setWidth(options.getWidth());

    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependent options
    if (djChart.getType() == DJChart.BAR_CHART)
      ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

    DJChart chart = new DJChart(type.byteValue(),columnsGroup,columns,operation.byteValue(),chartOptions);
    return chart;
  }

  private DJChartOptions createDefaultOptions() {
    DJChartOptions options = new DJChartOptions(true, Color.white, 300, 300, true, DJChartOptions.POSITION_HEADER, 0, 0, true, (byte) 1, DJChartColors.googleAnalytics());
    return options;
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroupChart);
      return chart;
  }

  protected void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered())
      chart.setWidth(getReport().getOptions().getPrintableWidth());
    else
      chart.setWidth(options.getWidth());

    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependent options
    if (djChart.getType() == DJChart.BAR_CHART)
      ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here

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

      chart.setEvaluationGroup(jrGroupChart);
      return chart;
  }

  protected void interpeterOptions(DJChart djChart, JRDesignChart chart) {
    DJChartOptions options = djChart.getOptions();

    //size
    if (options.isCentered())
      chart.setWidth(getReport().getOptions().getPrintableWidth());
    else
      chart.setWidth(options.getWidth());

    chart.setHeight(options.getHeight());

    //position
    chart.setX(options.getX());
    chart.setPadding(10);
    chart.setY(options.getY());

    //options
    chart.setShowLegend(options.isShowLegend());
    chart.setBackcolor(options.getBackColor());
    chart.setBorder(options.getBorder());

    //colors
    if (options.getColors() != null){
      int i = 1;
      for (Iterator iter = options.getColors().iterator(); iter.hasNext();i++) {
        Color color = (Color) iter.next();
        chart.getPlot().getSeriesColors().add(new JRBaseChartPlot.JRBaseSeriesColor(i, color));
      }
    }
    //Chart-dependent options
    if (djChart.getType() == DJChart.BAR_CHART)
      ((JRDesignBarPlot) chart.getPlot()).setShowTickLabels(options.isShowLabels());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.