public void drawDraggedComponent(Component dragIcon, int x, int y) {
Dimension size = dragIcon.getPreferredSize();
treePanel.paintImmediately(previousDragXLocation, previousDragYLocation, size.width, size.height);
this.getLayeredPane().setLayer(dragIcon, 400);
SwingUtilities.paintComponent(treePanel.getGraphics(), dragIcon, treePanel, x, y, size.width, size.height);
previousDragXLocation = x;
previousDragYLocation = y;
public void drawDraggedComponent(Component dragIcon, int x, int y) {
Dimension size = dragIcon.getPreferredSize();
treePanel.paintImmediately(previousDragXLocation, previousDragYLocation, size.width, size.height);
this.getLayeredPane().setLayer(dragIcon, 400);
SwingUtilities.paintComponent(treePanel.getGraphics(), dragIcon, treePanel, x, y, size.width, size.height);
previousDragXLocation = x;
previousDragYLocation = y;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/MainFrame.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/ReportMainFrame.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void drawDraggedComponent(Component dragIcon, int x, int y) {↵ | | 1 | public void drawDraggedComponent(Component dragIcon, int x, int y) {↵
|
2 | Dimension size = dragIcon.getPreferredSize();↵ | | 2 | Dimension size = dragIcon.getPreferredSize();↵
|
3 | treePanel.paintImmediately(previousDragXLocation, previousDragYLocation, size.width, size.height);↵ | | 3 | treePanel.paintImmediately(previousDragXLocation, previousDragYLocation, size.width, size.height);↵
|
4 | this.getLayeredPane().setLayer(dragIcon, 400);↵ | | 4 | this.getLayeredPane().setLayer(dragIcon, 400);↵
|
5 | SwingUtilities.paintComponent(treePanel.getGraphics(), dragIcon, treePanel, x, y, size.width, size.height);↵ | | 5 | SwingUtilities.paintComponent(treePanel.getGraphics(), dragIcon, treePanel, x, y, size.width, size.height);↵
|
6 | previousDragXLocation = x;↵ | | 6 | previousDragXLocation = x;↵
|
7 | previousDragYLocation = y;↵ | | 7 | previousDragYLocation = y;↵
|
8 | | | 8 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |