{"size": 1640, "ext": "js", "max_stars_repo_path": "js/focusanddirectrix/view/FocusAndDirectrixScreenView.js", "max_stars_repo_name": "phetsims/graphing-quadratics", "max_stars_repo_stars_event_min_datetime": "2019-09-15T14:10:58.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-15T14:10:58.000Z", "max_issues_repo_path": "js/focusanddirectrix/view/FocusAndDirectrixScreenView.js", "max_issues_repo_name": "phetsims/graphing-quadratics", "max_issues_repo_issues_event_min_datetime": "2018-07-09T20:06:29.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-07T01:03:01.000Z", "max_forks_repo_path": "js/focusanddirectrix/view/FocusAndDirectrixScreenView.js", "max_forks_repo_name": "phetsims/graphing-quadratics", "max_forks_repo_forks_event_min_datetime": "2020-01-04T23:33:54.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-04T23:33:54.000Z"}
{"max_stars_count": 1, "max_issues_count": 174, "max_forks_count": 1, "avg_line_length": 32.8, "max_line_length": 95, "alphanum_fraction": 0.743902439}
// Copyright 2018-2020, University of Colorado Boulder

/**
 * View for the 'Focus and Directrix' screen.
 *
 * @author Chris Malley (PixelZoom, Inc.)
 */

import GQScreenView from '../../common/view/GQScreenView.js';
import graphingQuadratics from '../../graphingQuadratics.js';
import FocusAndDirectrixEquationAccordionBox from './FocusAndDirectrixEquationAccordionBox.js';
import FocusAndDirectrixGraphControlPanel from './FocusAndDirectrixGraphControlPanel.js';
import FocusAndDirectrixGraphNode from './FocusAndDirectrixGraphNode.js';
import FocusAndDirectrixViewProperties from './FocusAndDirectrixViewProperties.js';

class FocusAndDirectrixScreenView extends GQScreenView {

  /**
   * @param {FocusAndDirectrixModel} model
   * @param {Tandem} tandem
   */
  constructor( model, tandem ) {

    const options = {

      // phet-io
      tandem: tandem
    };

    const viewProperties = new FocusAndDirectrixViewProperties( {
      tandem: options.tandem.createTandem( 'viewProperties' )
    } );

    super( model,
      viewProperties,
      new FocusAndDirectrixGraphNode( model, viewProperties, tandem ),
      new FocusAndDirectrixEquationAccordionBox( model, {
        expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
        tandem: options.tandem.createTandem( 'equationAccordionBox' )
      } ),
      new FocusAndDirectrixGraphControlPanel( viewProperties, {
        tandem: options.tandem.createTandem( 'graphControlPanel' )
      } ),
      options
    );
  }
}

graphingQuadratics.register( 'FocusAndDirectrixScreenView', FocusAndDirectrixScreenView );
export default FocusAndDirectrixScreenView;