CloneSet331


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
38210.995statement_sequence[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
138134
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/demo/BarChartDemo1.java
230120
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/demo/SWTBarChartDemo1.java
Next
Last
Clone Instance
1
Line Count
38
Source Line
134
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/demo/BarChartDemo1.java

// create the chart...
JFreeChart chart = ChartFactory.createBarChart("Bar Chart Demo 1", // chart title
                                                "Category", // domain axis label
                                                "Value", // range axis label
                                                dataset, // data
                                                PlotOrientation.VERTICAL, // orientation
                                                true, // include legend
                                                true, // tooltips?
                                                false // URLs?
                                              );
// NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
// set the background color for the chart...
chart.setBackgroundPaint(Color.white);
// get a reference to the plot for further customisation...
CategoryPlot plot = (CategoryPlot) chart.getPlot();
plot.setBackgroundPaint(Color.lightGray);
plot.setDomainGridlinePaint(Color.white);
plot.setDomainGridlinesVisible(true);
plot.setRangeGridlinePaint(Color.white);
// ******************************************************************
//  More than 150 demo applications are included with the JFreeChart
//  Developer Guide...for more information, see:
//
//  >   http://www.object-refinery.com/jfreechart/guide.html
//
// ******************************************************************
// set the range axis to display integers only...
final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
// disable bar outlines...
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setDrawBarOutline(false);


First
Previous
Clone Instance
2
Line Count
30
Source Line
120
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/demo/SWTBarChartDemo1.java

// create the chart...
JFreeChart chart = ChartFactory.createBarChart("Bar Chart Demo", // chart title
                                                "Category", // domain axis label
                                                "Value", // range axis label
                                                dataset, // data
                                                PlotOrientation.VERTICAL, // orientation
                                                true, // include legend
                                                true, // tooltips?
                                                false // URLs?
                                              );
// NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
// set the background color for the chart...
chart.setBackgroundPaint(Color.white);
// get a reference to the plot for further customisation...
CategoryPlot plot = (CategoryPlot) chart.getPlot();
plot.setBackgroundPaint(Color.lightGray);
plot.setDomainGridlinePaint(Color.white);
plot.setDomainGridlinesVisible(true);
plot.setRangeGridlinePaint(Color.white);
// set the range axis to display integers only...
final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
// disable bar outlines...
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setDrawBarOutline(false);


Clone AbstractionParameter Count: 1Parameter Bindings

// create the chart...
JFreeChart chart = ChartFactory.createBarChart( [[#variable1a91a1c0]], // chart title
                                                "Category", // domain axis label
                                                "Value", // range axis label
                                                dataset, // data
                                                PlotOrientation.VERTICAL, // orientation
                                                true, // include legend
                                                true, // tooltips?
                                                false // URLs?
                                              );
// NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
// set the background color for the chart...
chart.setBackgroundPaint(Color.white);
// get a reference to the plot for further customisation...
CategoryPlot plot = (CategoryPlot) chart.getPlot();
plot.setBackgroundPaint(Color.lightGray);
plot.setDomainGridlinePaint(Color.white);
plot.setDomainGridlinesVisible(true);
plot.setRangeGridlinePaint(Color.white);
// ******************************************************************
//  More than 150 demo applications are included with the JFreeChart
//  Developer Guide...for more information, see:
//
//  >   http://www.object-refinery.com/jfreechart/guide.html
//
// ******************************************************************
// set the range axis to display integers only...
final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
// disable bar outlines...
BarRenderer renderer = (BarRenderer) plot.getRenderer();
renderer.setDrawBarOutline(false);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a91a1c0]]
"Bar Chart Demo 1" 
12[[#1a91a1c0]]
"Bar Chart Demo"