CloneSet158


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
45220.982class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
145236
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/ChartFactory.java
245545
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/ChartFactory.java
Next
Last
Clone Instance
1
Line Count
45
Source Line
236
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/ChartFactory.java

/**
 * Creates a pie chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link PiePlot} instance 
 * as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param locale  the locale (<code>null</code> not permitted).
 *
 * @return A pie chart.
 * 
 * @since 1.0.7
 */
public static JFreeChart createPieChart(String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) {
  PiePlot plot = new PiePlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}

/**
 * Creates a pie chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link PiePlot} instance 
 * as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A pie chart.
 */
public static JFreeChart createPieChart(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) {
  PiePlot plot = new PiePlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator());
  }
  if (urls) {
    plot.setURLGenerator(new StandardPieURLGenerator());
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}


First
Previous
Clone Instance
2
Line Count
45
Source Line
545
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/ChartFactory.java

/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot} 
 * instance as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param locale  the locale (<code>null</code> not permitted).
 *
 * @return A ring chart.
 * 
 * @since 1.0.7
 */
public static JFreeChart createRingChart(String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) {
  RingPlot plot = new RingPlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}

/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot} 
 * instance as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A ring chart.
 */
public static JFreeChart createRingChart(String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) {
  RingPlot plot = new RingPlot(dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator());
  }
  if (urls) {
    plot.setURLGenerator(new StandardPieURLGenerator());
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Creates a pie chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link PiePlot} instance 
     * as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param locale  the locale (<code>null</code> not permitted).
     *
     * @return A pie chart.
     * 
     * @since 1.0.7
     */
/**
     * Creates a ring chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link RingPlot} 
     * instance as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param locale  the locale (<code>null</code> not permitted).
     *
     * @return A ring chart.
     * 
     * @since 1.0.7
     */
public static JFreeChart  [[#variable1aaa1100]](String title, PieDataset dataset, boolean legend, boolean tooltips, Locale locale) {
   [[#variable1aaa10a0]] plot = new [[#variable1aaa10a0]](dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}

/**
     * Creates a pie chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link PiePlot} instance 
     * as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @return A pie chart.
     */
/**
     * Creates a ring chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link RingPlot} 
     * instance as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @return A ring chart.
     */
public static JFreeChart  [[#variable1aaa1100]](String title, PieDataset dataset, boolean legend, boolean tooltips, boolean urls) {
   [[#variable1aaa10a0]] plot = new [[#variable1aaa10a0]](dataset);
  plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
  plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
  if (tooltips) {
    plot.setToolTipGenerator(new StandardPieToolTipGenerator());
  }
  if (urls) {
    plot.setURLGenerator(new StandardPieURLGenerator());
  }
  return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aaa1100]]
createPieChart 
12[[#1aaa1100]]
createRingChart 
21[[#1aaa10a0]]
PiePlot 
22[[#1aaa10a0]]
RingPlot