| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 1 | 0.989 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 294 | Closure/closure/goog/graphics/canvaselement.js |
| 2 | 5 | 710 | Closure/closure/goog/graphics/canvaselement.js |
| ||||
/**
* Update the position of the rectangle.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics.CanvasRectElement.prototype.setPosition= function (x, y){
this.x_= x;
this.y_= y;
if (this.drawn_) {
this.getGraphics( ).redraw( );
}
} ;
|
| ||||
/**
* Update the position of the image.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics.CanvasImageElement.prototype.setPosition= function (x, y){
this.x_= x;
this.y_= y;
if (this.drawn_) {
this.getGraphics( ).redraw( );
}
} ;
|
| |||
/**
* Update the position of the image.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
/**
* Update the position of the rectangle.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics. [[#variable3ed75c40]].prototype.setPosition= function (x,y)
{ this.x_=x;
this.y_=y;
if (this.drawn_)
{ this.getGraphics( ).redraw( );
}
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3ed75c40]] | CanvasImageElement |
| 1 | 2 | [[#3ed75c40]] | CanvasRectElement |