XYPlot plot = (XYPlot) this.subplots.get(i);
PlotRenderingInfo subplotInfo = null;
if (info != null) {
subplotInfo = new PlotRenderingInfo(info.getOwner());
info.addSubplotInfo(subplotInfo);
}
plot.draw(g2, this.subplotAreas[i], anchor, parentState,
subplotInfo);
String tip = "";
if (getToolTipGenerator() != null) {
tip = this.toolTipGenerator.generateToolTip(data, k);
}
// Shape s = g2.getClip();
// if (s.contains(rect) || s.intersects(rect)) {
String url = null;
// if (getURLGenerator() != null) { //dmo: look at this later
// url = getURLGenerator().generateURL(data, series, item);
// }
// Unlike XYItemRenderer, we need to clone entityArea since it
// reused.
ContourEntity entity = new ContourEntity(
(Rectangle2D.Double) entityArea.clone(), tip, url);
entity.setIndex(k);
entities.add(entity);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|
Method name: void contourRenderer(Graphics2D, Rectangle2D, PlotRenderingInfo, ContourPlot, ValueAxis, ValueAxis, ColorBar, ContourDataset, CrosshairState)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 7
|
|
1 | XYPlot plot = (XYPlot) this.subplots.get(i↵ | | 1 | String tip = "";↵
|
| | | 2 | if (getToolTipGenerator() != null) {↵
|
| | | 3 | tip = this.toolTipGenerator.generateToolTip(data, k);↵
|
| | | 4 | }↵
|
2 | );↵ | | 5 | // Shape s = g2.getClip();↵
|
3 | PlotRenderingInfo subplotInfo = null;↵ | | 6 | // ↵
|
4 | if (info != null) {↵ | | 7 | if (s.contains(rect) || s.intersects(rect)) {↵
|
| | | 8 | String url = null;↵
|
| | | 9 | // if (getURLGenerator() != null) { //dmo: look at this later↵
|
5 | subplotInfo = new PlotRenderingInfo(info.getOwner());↵ | | 10 | // url = getURLGener↵
|
6 | info.addSubplotInfo(subplotInfo);↵ | | |
|
7 | }↵ | | |
|
8 | plot.draw(g2, this.subplotAreas[i], anchor, parentState,↵ | | |
|
9 | subplotInfo↵ | | 11 | ator().generateURL(data, series, item);↵
|
| | | 12 | // }↵
|
| | | 13 | // Unlike XYItemRenderer, we need to clone entityArea since it ↵
|
| | | 14 | // reused.↵
|
| | | 15 | ContourEntity entity = new ContourEntity(↵
|
| | | 16 | (Rectangle2D.Double) entityArea.clone(), tip, url);↵
|
| | | 17 | entity.setIndex(k);↵
|
10 | ); | | 18 | entities.add(entity);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |