| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 30 | 2 | 6 | 0.959 | SourceElements[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 30 | 257 | Closure/closure/goog/graphics/ext/element.js |
| 2 | 30 | 335 | Closure/closure/goog/graphics/ext/element.js |
| ||||
/**
* Sets the left coordinate of the element. Overwrites any previous value of
* left, center, or right for this element.
* @param {string|number} left The left 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.setLeft= function (left, opt_chain){
this.setPosition_(this.xPosition_,
left,
goog.graphics.ext.Element.PositionType_.START,
opt_chain);
} ;
/**
* @return {number} The right coordinate of the element, in units of the
* parent's coordinate system.
*/
goog.graphics.ext.Element.prototype.getRight= function ( )
{
return this.xPosition_.getEnd( );
} ;
/**
* Sets the right coordinate of the element. Overwrites any previous value of
* left, center, or right for this element.
* @param {string|number} right The right 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.setRight= function (right, opt_chain){
this.setPosition_(this.xPosition_,
right,
goog.graphics.ext.Element.PositionType_.END,
opt_chain);
} ;
|
| ||||
/**
* Sets the top coordinate of the element. Overwrites any previous value of
* top, middle, or bottom for this element.
* @param {string|number} top The top 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.setTop= function (top, opt_chain){
this.setPosition_(this.yPosition_,
top,
goog.graphics.ext.Element.PositionType_.START,
opt_chain);
} ;
/**
* @return {number} The bottom coordinate of the element, in units of the
* parent's coordinate system.
*/
goog.graphics.ext.Element.prototype.getBottom= function ( )
{
return this.yPosition_.getEnd( );
} ;
/**
* Sets the bottom coordinate of the element. Overwrites any previous value of
* top, middle, or bottom for this element.
* @param {string|number} bottom The bottom 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.setBottom= function (bottom, opt_chain){
this.setPosition_(this.yPosition_,
bottom,
goog.graphics.ext.Element.PositionType_.END,
opt_chain);
} ;
|
| |||
/**
* Sets the left coordinate of the element. Overwrites any previous value of
* left, center, or right for this element.
* @param {string|number} left The left 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 top coordinate of the element. Overwrites any previous value of
* top, middle, or bottom for this element.
* @param {string|number} top The top 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. [[#variable574f5d00]]= function ( [[#variable574f5c00]],opt_chain)
{ this.setPosition_(this. [[#variable574f5b20]], [[#variable574f5c00]],goog.graphics.ext.Element.PositionType_.START,opt_chain);
} ;
/**
* @return {number} The right coordinate of the element, in units of the
* parent's coordinate system.
*/
/**
* @return {number} The bottom coordinate of the element, in units of the
* parent's coordinate system.
*/
goog.graphics.ext.Element.prototype. [[#variable574f5ba0]]= function ( )
{ return this. [[#variable574f5b20]].getEnd( );
} ;
/**
* Sets the right coordinate of the element. Overwrites any previous value of
* left, center, or right for this element.
* @param {string|number} right The right 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 bottom coordinate of the element. Overwrites any previous value of
* top, middle, or bottom for this element.
* @param {string|number} bottom The bottom 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. [[#variable574f5ae0]]= function ( [[#variable574f5a80]],opt_chain)
{ this.setPosition_(this. [[#variable574f5b20]], [[#variable574f5a80]],goog.graphics.ext.Element.PositionType_.END,opt_chain);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#574f5d00]] | setLeft |
| 1 | 2 | [[#574f5d00]] | setTop |
| 2 | 1 | [[#574f5c00]] | left |
| 2 | 2 | [[#574f5c00]] | top |
| 3 | 1 | [[#574f5b20]] | xPosition_ |
| 3 | 2 | [[#574f5b20]] | yPosition_ |
| 4 | 1 | [[#574f5ba0]] | getRight |
| 4 | 2 | [[#574f5ba0]] | getBottom |
| 5 | 1 | [[#574f5ae0]] | setRight |
| 5 | 2 | [[#574f5ae0]] | setBottom |
| 6 | 1 | [[#574f5a80]] | right |
| 6 | 2 | [[#574f5a80]] | bottom |