public JRBasePiePlot(JRPiePlot piePlot, JRBaseObjectFactory factory) {
   super(piePlot, factory);
   circular = piePlot.getCircular();
   labelFormat = piePlot.getLabelFormat();
   legendLabelFormat = piePlot.getLegendLabelFormat();
   itemLabel = new JRBaseItemLabel(piePlot.getItemLabel(), factory);
   showLabels = piePlot.getShowLabels();
 }
  public JRBasePiePlot(JRChartPlot chartPlot, JRChart chart) {
    super(chartPlot, chart);

    JRPiePlot piePlot = chartPlot instanceof JRPiePlot ? (JRPiePlot) chartPlot : null;

    if (piePlot == null) {
      itemLabel = new JRBaseItemLabel(null, chart);
    } else {
      itemLabel = new JRBaseItemLabel(piePlot.getItemLabel(), chart);
    }
  }
示例#3
0
 public JRBasePiePlot(JRPiePlot piePlot, JRBaseObjectFactory factory) {
   super(piePlot, factory);
   isCircular = piePlot.isCircular();
 }