Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.969 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 44 | Closure/closure/goog/graphics/ext/ellipse.js |
2 | 8 | 44 | Closure/closure/goog/graphics/ext/rectangle.js |
| ||||
/** * Wrapper for a graphics ellipse element. * @param {goog.graphics.ext.Group} group Parent for this element. * @constructor * @extends {goog.graphics.ext.StrokeAndFillElement} */ goog.graphics.ext.Ellipse= function (group){ // Initialize with some stock values. var wrapper= group.getGraphicsImplementation( ).drawEllipse(1, 1, 2, 2, null, null ,group.getWrapper( )); goog.graphics.ext.StrokeAndFillElement.call(this, group, wrapper); } ; goog.inherits(goog.graphics.ext.Ellipse, goog.graphics.ext.StrokeAndFillElement); |
| ||||
/** * Wrapper for a graphics rectangle element. * @param {goog.graphics.ext.Group} group Parent for this element. * @constructor * @extends {goog.graphics.ext.StrokeAndFillElement} */ goog.graphics.ext.Rectangle= function (group){ // Initialize with some stock values. var wrapper= group.getGraphicsImplementation( ).drawRect(0, 0, 1, 1, null, null ,group.getWrapper( )); goog.graphics.ext.StrokeAndFillElement.call(this, group, wrapper); } ; goog.inherits(goog.graphics.ext.Rectangle, goog.graphics.ext.StrokeAndFillElement); |
| |||
/** * Wrapper for a graphics rectangle element. * @param {goog.graphics.ext.Group} group Parent for this element. * @constructor * @extends {goog.graphics.ext.StrokeAndFillElement} */ /** * Wrapper for a graphics ellipse element. * @param {goog.graphics.ext.Group} group Parent for this element. * @constructor * @extends {goog.graphics.ext.StrokeAndFillElement} */ goog.graphics.ext. [[#variable60d0ba00]]= function (group) { // Initialize with some stock values. var wrapper=group.getGraphicsImplementation( ). [[#variable58a7c600]]( [[#variable58a7ce00]], [[#variable58a7ce00]], [[#variable59c356e0]], [[#variable59c356e0]],null,null,group.getWrapper( )); goog.graphics.ext.StrokeAndFillElement.call(this,group,wrapper); } ; goog.inherits(goog.graphics.ext. [[#variable60d0ba00]],goog.graphics.ext.StrokeAndFillElement); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#60d0ba00]] | Rectangle |
1 | 2 | [[#60d0ba00]] | Ellipse |
2 | 1 | [[#58a7c600]] | drawRect |
2 | 2 | [[#58a7c600]] | drawEllipse |
3 | 1 | [[#58a7ce00]] | 0 |
3 | 2 | [[#58a7ce00]] | 1 |
4 | 1 | [[#59c356e0]] | 1 |
4 | 2 | [[#59c356e0]] | 2 |