search

Class myphysicslab.sims.layout.StandardGraph1

Provided By
Extends
All Implemented Interfaces

Creates a graph with a single GraphLine. Creates a single SimView and DisplayGraph to show the GraphLine. Adds the SimView to graphCanvas. Creates an AutoScale that modifies the SimView to contain the GraphLine. Creates several controls to modify the graph.

new StandardGraph1( varsList, graphCanvas, div_controls, div_graph, simRun, displayStyle )

Parameters
varsListmyphysicslab.lab.model.VarsList

the VarsList to collect data from

graphCanvasmyphysicslab.lab.view.LabCanvas

the LabCanvas where the graph should appear

div_controlsElement

the HTML div where controls should be added

div_graphElement

the HTML div where the graphCanvas is located

simRunmyphysicslab.lab.app.SimRunner

the SimRunner controlling the overall app

displayStyle(string|undefined)

the CSS display style to use when adding controls

Instance Methods

Instance Properties