Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 6 | 0.951 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 307 | Closure/closure/goog/graphics/ext/element.js |
2 | 17 | 385 | Closure/closure/goog/graphics/ext/element.js |
| ||||
/** * Sets the center coordinate of the element. Overwrites any previous value of * left, center, or right for this element. * @param {string|number} center The center coordinate. * @param {boolean=} opt_chain Optional flag to specify this function is part * of a chain of calls and therefore transformations should be set as * pending but not yet performed. */ goog.graphics.ext.Element.prototype.setCenter= function (center, opt_chain){ this.setPosition_(this.xPosition_, center, goog.graphics.ext.Element.PositionType_.MIDDLE, opt_chain); } ; // VERTICAL POSITIONING /** * @return {number} The distance from the top edge of this element to the top * edge of its parent, specified in units of the parent's coordinate system. */ goog.graphics.ext.Element.prototype.getTop= function ( ) { return this.yPosition_.getStart( ); } ; |
| ||||
/** * Sets the middle coordinate of the element. Overwrites any previous value of * top, middle, or bottom for this element * @param {string|number} middle The middle coordinate. * @param {boolean=} opt_chain Optional flag to specify this function is part * of a chain of calls and therefore transformations should be set as * pending but not yet performed. */ goog.graphics.ext.Element.prototype.setMiddle= function (middle, opt_chain){ this.setPosition_(this.yPosition_, middle, goog.graphics.ext.Element.PositionType_.MIDDLE, opt_chain); } ; // DIMENSIONS /** * @return {number} The width of the element, in units of the parent's * coordinate system. */ goog.graphics.ext.Element.prototype.getWidth= function ( ) { return this.xPosition_.getSize( ); } ; |
| |||
/** * Sets the center coordinate of the element. Overwrites any previous value of * left, center, or right for this element. * @param {string|number} center The center coordinate. * @param {boolean=} opt_chain Optional flag to specify this function is part * of a chain of calls and therefore transformations should be set as * pending but not yet performed. */ /** * Sets the middle coordinate of the element. Overwrites any previous value of * top, middle, or bottom for this element * @param {string|number} middle The middle coordinate. * @param {boolean=} opt_chain Optional flag to specify this function is part * of a chain of calls and therefore transformations should be set as * pending but not yet performed. */ goog.graphics.ext.Element.prototype. [[#variable404e3a60]]= function ( [[#variable404e3940]],opt_chain) { this.setPosition_(this. [[#variable404e3860]], [[#variable404e3940]],goog.graphics.ext.Element.PositionType_.MIDDLE,opt_chain); } ; // VERTICAL POSITIONING /** * @return {number} The distance from the top edge of this element to the top * edge of its parent, specified in units of the parent's coordinate system. */ // DIMENSIONS /** * @return {number} The width of the element, in units of the parent's * coordinate system. */ goog.graphics.ext.Element.prototype. [[#variable404e38a0]]= function ( ) { return this. [[#variable404e28e0]]. [[#variable404e3980]]( ); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#404e3a60]] | setCenter |
1 | 2 | [[#404e3a60]] | setMiddle |
2 | 1 | [[#404e3940]] | center |
2 | 2 | [[#404e3940]] | middle |
3 | 1 | [[#404e3860]] | xPosition_ |
3 | 2 | [[#404e3860]] | yPosition_ |
4 | 1 | [[#404e38a0]] | getTop |
4 | 2 | [[#404e38a0]] | getWidth |
5 | 1 | [[#404e28e0]] | yPosition_ |
5 | 2 | [[#404e28e0]] | xPosition_ |
6 | 1 | [[#404e3980]] | getStart |
6 | 2 | [[#404e3980]] | getSize |