Examples of JRDesignPie3DPlot


Examples of net.sf.jasperreports.charts.design.JRDesignPie3DPlot

        dataset = new JRDesignPieDataset(dataset);
        plot = new JRDesignPiePlot(plot, this);
        break;
      case CHART_TYPE_PIE3D:
        dataset = new JRDesignPieDataset(dataset);
        plot = new JRDesignPie3DPlot(plot, this);
        break;
      case CHART_TYPE_SCATTER:
        dataset = new JRDesignXyDataset(dataset);
        plot = new JRDesignScatterPlot(plot, this);
        break;
View Full Code Here

Examples of net.sf.jasperreports.charts.design.JRDesignPie3DPlot

   *
   */
  public Object createObject(Attributes atts)
  {
    JRChart chart = (JRChart) digester.peek();
    JRDesignPie3DPlot pie3DPlot = (JRDesignPie3DPlot)chart.getPlot();
   
    String depthFactor = atts.getValue(ATTRIBUTE_depthFactor);
    if (depthFactor != null && depthFactor.length() > 0)
    {
      pie3DPlot.setDepthFactor(Double.valueOf(depthFactor));
    }
   
    String isCircular = atts.getValue(JRXmlConstants.ATTRIBUTE_isCircular);
    if (isCircular != null && isCircular.length() > 0) {
      pie3DPlot.setCircular(Boolean.valueOf(isCircular));
    }

    pie3DPlot.setLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_labelFormat));
    pie3DPlot.setLegendLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_legendLabelFormat));

    String isShowLabels = atts.getValue( ATTRIBUTE_isShowLabels );
    if( isShowLabels != null && isShowLabels.length() > 0 ){
      pie3DPlot.setShowLabels(Boolean.valueOf(isShowLabels));
    }
    return pie3DPlot;
  }
View Full Code Here

Examples of net.sf.jasperreports.charts.design.JRDesignPie3DPlot

    return depthFactor;
  }
 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignPie3DPlot piePlot = (JRDesignPie3DPlot) plot;
    if (getCircular() != null)
      piePlot.setCircular(getCircular());
    if (getLabelFormat() != null)
      piePlot.setLabelFormat(getLabelFormat());
    if (getLegendLabelFormat() != null)
      piePlot.setLegendLabelFormat(getLegendLabelFormat());
    if (getDepthFactor() != null)
      piePlot.setDepthFactor(getDepthFactor());
  }
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.