CloneSet678


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17260.951SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117307
Closure/closure/goog/graphics/ext/element.js
217385
Closure/closure/goog/graphics/ext/element.js
Clone Instance
1
Line Count
17
Source Line
307
Source File
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( );
                                                        } ;


Clone Instance
2
Line Count
17
Source Line
385
Source File
Closure/closure/goog/graphics/ext/element.js

/**
 * 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( );
                                                          } ;


Clone AbstractionParameter Count: 6Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#404e3a60]]
setCenter 
12[[#404e3a60]]
setMiddle 
21[[#404e3940]]
center 
22[[#404e3940]]
middle 
31[[#404e3860]]
xPosition_ 
32[[#404e3860]]
yPosition_ 
41[[#404e38a0]]
getTop 
42[[#404e38a0]]
getWidth 
51[[#404e28e0]]
yPosition_ 
52[[#404e28e0]]
xPosition_ 
61[[#404e3980]]
getStart 
62[[#404e3980]]
getSize