Examples of JRDesignPiePlot


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

        plot = new JRDesignMultiAxisPlot(plot, this);
        dataset = null;
        break;
      case CHART_TYPE_PIE:
        dataset = new JRDesignPieDataset(dataset);
        plot = new JRDesignPiePlot(plot, this);
        break;
      case CHART_TYPE_PIE3D:
        dataset = new JRDesignPieDataset(dataset);
        plot = new JRDesignPie3DPlot(plot, this);
        break;
View Full Code Here

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

   *
   */
  public Object createObject(Attributes atts)
  {
    JRChart chart = (JRChart) digester.peek();
    JRDesignPiePlot piePlot = (JRDesignPiePlot)chart.getPlot();

    String isCircular = atts.getValue(JRXmlConstants.ATTRIBUTE_isCircular);
    if (isCircular != null && isCircular.length() > 0) {
      piePlot.setCircular(Boolean.valueOf(isCircular));
    }
   
    piePlot.setLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_labelFormat));
    piePlot.setLegendLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_legendLabelFormat));

    String isShowLabels = atts.getValue( ATTRIBUTE_isShowLabels );
    if( isShowLabels != null && isShowLabels.length() > 0 ){
      piePlot.setShowLabels(Boolean.valueOf(isShowLabels));
    }

    return piePlot; 
  }
View Full Code Here

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

public class PiePlot extends AbstractPiePlot {
  private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
 
  public void transform(DynamicJasperDesign design, JRChartPlot plot, String name) {
    super.transform(design, plot, name);
    JRDesignPiePlot piePlot = (JRDesignPiePlot) plot;
    if (getCircular() != null)
      piePlot.setCircular(getCircular());
    if (getLabelFormat() != null)
      piePlot.setLabelFormat(getLabelFormat());
    if (getLegendLabelFormat() != null)
      piePlot.setLegendLabelFormat(getLegendLabelFormat());
  }
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.