Skip to content

Commit

Permalink
#63 DeviationsNode renamed into DeviationsPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zelenkov committed Aug 30, 2015
1 parent 7dd9fe0 commit 7dba124
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions js/curve-fitting/view/CurveFittingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define( function( require ) {
var Bounds2 = require( 'DOT/Bounds2' );
var BucketAndGraphAreaNode = require( 'CURVE_FITTING/curve-fitting/view/BucketAndGraphAreaNode' );
var ControlMenuNode = require( 'CURVE_FITTING/curve-fitting/view/ControlMenuNode' );
var DeviationsNode = require( 'CURVE_FITTING/curve-fitting/view/DeviationsNode' );
var DeviationsPanel = require( 'CURVE_FITTING/curve-fitting/view/DeviationsPanel' );
var inherit = require( 'PHET_CORE/inherit' );
var ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' );
var ScreenView = require( 'JOIST/ScreenView' );
Expand All @@ -30,10 +30,10 @@ define( function( require ) {
ScreenView.call( this, { layoutBounds: SIM_BOUNDS } );

// add deviations node
var deviationsNode = new DeviationsNode( curveFittingModel.isDeviationPanelExpandedProperty, curveFittingModel.curve.chiSquareProperty, curveFittingModel.curve.chiFillProperty, curveFittingModel.curve.rSquareProperty );
deviationsNode.centerX = deviationsNode.width / 2 + PADDING_LEFT_RIGHT;
deviationsNode.centerY = deviationsNode.height / 2 + PADDING_TOP_BOTTOM;
this.addChild( deviationsNode );
var deviationsPanel = new DeviationsPanel( curveFittingModel.isDeviationPanelExpandedProperty, curveFittingModel.curve.chiSquareProperty, curveFittingModel.curve.chiFillProperty, curveFittingModel.curve.rSquareProperty );
deviationsPanel.centerX = deviationsPanel.width / 2 + PADDING_LEFT_RIGHT;
deviationsPanel.centerY = deviationsPanel.height / 2 + PADDING_TOP_BOTTOM;
this.addChild( deviationsPanel );

// add control menu node
var controlMenuNode = new ControlMenuNode( curveFittingModel );
Expand Down
6 changes: 3 additions & 3 deletions js/curve-fitting/view/DeviationsNode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2002-2014, University of Colorado Boulder

/**
* Deviations node in 'Curve Fitting' simulation.
* Deviations panel in 'Curve Fitting' simulation.
* Contains X^2 barometer, r^2 barometer and menu dialog.
*
* @author Andrey Zelenkov (Mlearner)
Expand Down Expand Up @@ -69,7 +69,7 @@ define( function( require ) {
* @param {Object} [options] for graph node
* @constructor
*/
function DeviationsNode( isDeviationPanelExpandedProperty, chiSquareProperty, chiFillProperty, rSquareProperty, options ) {
function DeviationsPanel( isDeviationPanelExpandedProperty, chiSquareProperty, chiFillProperty, rSquareProperty, options ) {

// create expand button
var expandCollapseButton = new ExpandCollapseButton( isDeviationPanelExpandedProperty, {
Expand Down Expand Up @@ -184,5 +184,5 @@ define( function( require ) {
Panel.call( this, content, PANEL_OPTIONS );
}

return inherit( Panel, DeviationsNode );
return inherit( Panel, DeviationsPanel );
} );

0 comments on commit 7dba124

Please sign in to comment.