| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 2 | 3 | 0.976 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 12 | 1179 | Closure/closure/goog/ui/serverchart.js |
| 2 | 11 | 1207 | Closure/closure/goog/ui/serverchart.js |
| ||||
/**
* Sets the widths of the bars and the spaces between the bars in a bar
* chart.
* NOTE: If the space between groups is specified but the space between
* bars is left undefined, the space between groups will be interpreted
* as the space between bars because this is the behavior exposed
* in the external developers guide.
* @param {number} barWidth The width of a bar in pixels.
* @param {number=} opt_spaceBars The width of the space between
* bars in a group in pixels.
* @param {number=} opt_spaceGroups The width of the space between
* groups.
*/
goog.ui.ServerChart.prototype.setBarSpaceWidths= function (barWidth,
opt_spaceBars,
opt_spaceGroups){
var widths= [barWidth];
if (goog.isDef(opt_spaceBars)) {
widths.push(opt_spaceBars);
}
if (goog.isDef(opt_spaceGroups)) {
widths.push(opt_spaceGroups);
}
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
widths.join(','));
} ;
|
| ||||
/**
* Specifies that the bar width in a bar chart should be calculated
* automatically given the space available in the chart, while optionally
* setting the spaces between the bars.
* NOTE: If the space between groups is specified but the space between
* bars is left undefined, the space between groups will be interpreted
* as the space between bars because this is the behavior exposed
* in the external developers guide.
* @param {number=} opt_spaceBars The width of the space between
* bars in a group in pixels.
* @param {number=} opt_spaceGroups The width of the space between
* groups.
*/
goog.ui.ServerChart.prototype.setAutomaticBarWidth= function (opt_spaceBars,
opt_spaceGroups){
var widths= ['a'];
if (goog.isDef(opt_spaceBars)) {
widths.push(opt_spaceBars);
}
if (goog.isDef(opt_spaceGroups)) {
widths.push(opt_spaceGroups);
}
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,
widths.join(','));
} ;
|
| |||
/**
* Specifies that the bar width in a bar chart should be calculated
* automatically given the space available in the chart, while optionally
* setting the spaces between the bars.
* NOTE: If the space between groups is specified but the space between
* bars is left undefined, the space between groups will be interpreted
* as the space between bars because this is the behavior exposed
* in the external developers guide.
* @param {number=} opt_spaceBars The width of the space between
* bars in a group in pixels.
* @param {number=} opt_spaceGroups The width of the space between
* groups.
*/
/**
* Sets the widths of the bars and the spaces between the bars in a bar
* chart.
* NOTE: If the space between groups is specified but the space between
* bars is left undefined, the space between groups will be interpreted
* as the space between bars because this is the behavior exposed
* in the external developers guide.
* @param {number} barWidth The width of a bar in pixels.
* @param {number=} opt_spaceBars The width of the space between
* bars in a group in pixels.
* @param {number=} opt_spaceGroups The width of the space between
* groups.
*/
goog.ui.ServerChart.prototype. [[#variable5689a340]]= function ( [[#variable5689a2c0]],opt_spaceGroups)
{ var widths=[ [[#variable5689a240]]];
if (goog.isDef(opt_spaceBars))
{ widths.push(opt_spaceBars);
}
if (goog.isDef(opt_spaceGroups))
{ widths.push(opt_spaceGroups);
}
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.BAR_HEIGHT,widths.join(','));
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5689a340]] | setAutomaticBarWidth |
| 1 | 2 | [[#5689a340]] | setBarSpaceWidths |
| 2 | 1 | [[#5689a2c0]] | opt_spaceBars |
| 2 | 2 | [[#5689a2c0]] | barWidth,opt_spaceBars |
| 3 | 1 | [[#5689a240]] | 'a' |
| 3 | 2 | [[#5689a240]] | barWidth |